AnimatedHolo

插件

· 作者 FlauschigesAlex

通过动画、悬停事件等增强你的全息图!

0 本站下载 0 关注 更新于 2 个月前

最新 1.0.0 · 26.3 · Paper / Purpur

一键开服(送7天)

AnimatedHolo

一款插件,旨在直接在游戏内创建、编辑和基于 TextDisplay 的动画全息图。
它提供可配置的全息图文本、显示设置、悬停检测和简单动画,同时将所有全息图存储在可读的 JSON 配置文件中。

可选插件

支持的平台和版本

推荐版本: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>

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源