Heracles Embeds

模组

· 作者 pr1xv3e.jar

让你能在 Heracles(奥德赛任务)的任务 JSON 描述中嵌入物品、生物和配方

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

最新 1.0.0 · 1.20.1 · Forge

一键开服(送7天)

Heracles Embeds

Heracles Embeds 是适用于 Minecraft 1.20.1 的 Heracles/Odyssey Quests 客户端附加组件。它为任务 JSON 文件的 display.description 字段添加了丰富的内容标签。

它不使用 JEI、REI 或 EMI。配方数据来自 Minecraft 客户端的 RecipeManager,在玩家加入时由服务器同步。

描述标签

每个标签必须独占一行描述。由于描述内容是 JSON,标签内部的双引号必须转义为 \"。

"description": [
  "Bring three diamonds:",
  "<embed-item id=\"minecraft:diamond\" count=\"3\" show-name=\"true\"/>",
  "<embed-entity type=\"minecraft:armor_stand\" scale=\"1.2\"/>",
  "<embed-mob type=\"minecraft:zombie\"/>",
  "<embed-recipe id=\"minecraft:diamond_pickaxe\"/>"
]

该附加组件也支持较短的别名 item、entity、entity-model、mob、recipe 和 crafting-recipe。

物品

<embed-item id="minecraft:diamond" count="3" scale="1.5" show-name="true"/>

支持的属性:id、count、scale、align、show-name、label、tooltip、tag 和 nbt。对齐方式可以是 left、middle 或 right。默认启用物品提示(tooltip)。

实体模型与生物

<embed-entity type="minecraft:armor_stand" scale="1.2" show-name="true"/>
<embed-mob type="minecraft:creeper" scale="1.0"/>

这两个标签都会渲染一个跟随光标的实时 LivingEntity 模型。embed-mob 默认显示实体名称,而 embed-entity 不显示。支持的属性:type、scale、align、show-name、label、tag/nbt、width、height 和 vshift。

配方

<embed-recipe id="minecraft:diamond_pickaxe" grid-width="3" show-name="true"/>

渲染器与配方类型无关:它会显示任何由 Minecraft 注册并同步的配方所暴露的材料和结果,包括模组添加的配方。可选材料每秒轮换一次。支持的属性:id、grid-width、align、show-name 和 label。

JSON/XML 中的 NBT

简单的 SNBT 不需要嵌套引号:

"<embed-item id=\"minecraft:diamond_sword\" nbt=\"{Damage:10}\"/>"

对于包含带引号字符串的 SNBT,请将内部引号进行 XML 编码为 &quot;:

"<embed-mob type=\"minecraft:zombie\" nbt=\"{CustomName:'{&quot;text&quot;:&quot;Bob&quot;}'}\"/>"

构建

需要 Java 17。

./gradlew build

重映射后的 jar 文件将写入 fabric/build/libs 和 forge/build/libs。

该项目基于官方 Heracles 1.1.10 Maven 工件进行编译,并针对 1.1.10 至 1.1.13 的运行版本。Heracles 1.1.13 是推荐的运行版本。

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

评论 0

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

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源