AnimatedHolo
一款插件,旨在直接在游戏内创建、编辑和基于 TextDisplay 的动画全息图。
它提供可配置的全息图文本、显示设置、悬停检测和简单动画,同时将所有全息图存储在可读的 JSON 配置文件中。
可选插件
- ProtocolLib 5.4.0(或更高版本) - 与 PlaceholderAPI 配合使用时,用于为每个玩家渲染占位符。
- PlaceholderAPI 2.12.2(或更高版本) - 与 ProtocolLib 配合使用时,用于为每个玩家渲染占位符。
支持的平台和版本
推荐版本:Paper 26.1(或更高版本)
尽管 AnimatedHolo 可能可以在其他平台或版本上运行,但我不能保证其稳定性或功能。
安装
创建全息图
/hologram create <name> - 在你当前位置创建一个新的全息图。
/hologram near [distance] - 列出给定距离内的全息图数量。默认为 20。
/hologram move <hologram> - 将现有全息图移动到你当前位置。
/hologram tp <hologram> - 传送至现有全息图。
/hologram delete <hologram> - 删除现有全息图。
别名:/holo, /aholo, /ahologram
文本设置
文本支持 MiniMessage。
如果安装了 PlaceholderAPI 和 ProtocolLib,则按玩家渲染占位符。
/hologram edit <hologram> text addline [lineNum] <text> - 向全息图添加新行。
/hologram edit <hologram> text editline <lineNum> <text> - 替换某一行。
/hologram edit <hologram> text setline <lineNum> <text> - editline 的别名。
/hologram edit <hologram> text removeline <lineNum> - 移除某一行。
/hologram edit <hologram> text deleteline <lineNum> - removeline 的别名。
/hologram edit <hologram> text clear - 清除所有行。
显示设置
/hologram edit <hologram> billboard <billboard> - 设置 TextDisplay 的 billboard 模式。
/hologram edit <hologram> scale <scale> - 设置全息图的缩放比例。限制在 0.01 - 10 之间。
/hologram edit <hologram> textAlign <textAlignment> - 设置文本对齐方式。
/hologram edit <hologram> textShadow <true|false> - 切换文本阴影。
/hologram edit <hologram> backgroundColor <color> - 设置背景颜色。
/hologram edit <hologram> backgroundColor reset - 重置背景颜色。
/hologram edit <hologram> visibilityRange <range> - 设置可见范围。
动画
/hologram edit <hologram> animation <animation> - 设置全息图动画。
/hologram edit <hologram> animation none - 禁用全息图动画。
默认可用:
BobbingAnimation- 使全息图上下浮动。
属性
属性用于修改悬停检测、悬停缩放和动画行为。
/hologram edit <hologram> attribute <attribute> <value> - 设置属性值。
/hologram edit <hologram> attribute <attribute> reset - 将属性重置为其默认值,或者如果没有默认值则将其移除。
可用属性:
HoverScaleAttribute- 控制全息图被悬停时的缩放比例。默认为1.5。HoverTransitionAttribute- 控制悬停过渡速度。默认为3。HoverOffsetAttribute- 偏移射线追踪交互点。HoverMaxInteractionRangeAttribute- 限制可以与全息图交互的最大距离。HoverInteractionRangeMultiplierAttribute- 乘以悬停交互范围。AnimationModifierAttribute- 修改当前动画的强度。
调试
/hologram debug - 切换你自己的全息图射线追踪调试模式。
配置文件
AnimatedHolo 使用配置文件来存储全息图和全局选项。
如果你想手动更改配置,请在服务器停止时编辑 plugins/AnimatedHolo/config.json。
应用配置前请移除注释
{
"_version": 1,
"animations": {
"enabled": true
},
"holograms": [
{
"id": "example",
"position": {
"world": "world",
"x": 0.0,
"y": 64.0,
"z": 0.0,
"yaw": 0.0,
"pitch": 0.0
},
"richLines": [
"<rainbow>Example Hologram"
],
"scale": 1.0,
"visibilityRange": 50.0,
"visible": true,
"billboard": "CENTER",
"backgroundColor": null,
"textAlign": "CENTER",
"textShadow": true
}
]
}
应用配置前请移除注释
开发者 API
AnimatedHolo 包含一个库模块,供其他插件创建和修改全息图。
Maven
<repository>
<id>animated-holo</id>
<url>https://repo.flauschigesalex.at/repository/maven-public/</url>
</repository>
<dependency>
<groupId>at.flauschigesalex.animated-holo</groupId>
<artifactId>animated-holo-lib</artifactId>
<version>VERSION</version>
</dependency>
你是这个资源的作者?登录后可认领此资源。
相似资源
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
自定义你的Minecraft头像!
专为 Velocity 打造的自制聊天插件,功能丰富——支持跨服群组/全局/私聊消息,并集成 LibertyBans 的禁言功能。
一个高度兼容、功能完善且稳定的 TPA 模组
在 Minecraft 中加入“最后一击”、“第二次机会”和“最后喘息”机制!从高处坠落时,你将拥有 0.5 HP 而不是直接死亡;当生命值较低时,增强你的能力。
允许基岩版(Geyser)玩家使用自定义铁砧和锻造台配方。
评论 0
登录后参与评分
还没有评论,来抢沙发吧