介绍
This KubeJS plugin allows modpack developers to easily create custom structure-locating eyes, similar to those seen in Cataclysm. (The eyes are not consumed on use, have a cooldown of 3 seconds, and cannot be burned in fire)
How to use it:
In a startup script, you can register custom eyes like any other item, using the custom “structure_eye” builder.
- The “structures” field (required) is a list of both structures and structure tags, entries being strings and tags beginning with # symbols. Thrown eyes lead toward whichever listed structure/tag is closest. Invalid entries leave a warning in the log.
- The “trailColor” field (defaults to white) is a hex value (0x000000 format) that determines the color of the particle trail left behind by thrown eyes.
Below is a minimal example, locating a single structure, with a green colored trail:
StartupEvents.registry('item', event => {
event.create('pillager_eye', 'eyejs:structure_eye')
.displayName('Eye of Pillager')
.texture('kubejs:item/pillager_eye')
.structures('minecraft:pillager_outpost')
.trailColor(0x1FCC4D)
})
Below is another example, locating a mix of structures and tags, with a gray trail:
StartupEvents.registry('item', event => {
event.create('ruins_eye', 'eyejs:structure_eye')
.displayName('Eye of Ruins')
.texture('kubejs:item/ruins_eye')
.structures(
'minecraft:ancient_city',
'minecraft:trail_ruins',
'#minecraft:ocean_ruin',
'#minecraft:ruined_portal'
)
.trailColor(0x9C9C9C)
})
常见问题
EyeJS: KubeJS Addon 支持哪些 Minecraft 版本?
EyeJS: KubeJS Addon 支持 Minecraft Java 版 1.20.1–1.21.1,共 2 个版本,可用的加载器:Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。
EyeJS: KubeJS Addon 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Forge / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。
GamesOfLife 的其他作品
查看全部 →Cataclysm x YUNG’s Better Nether Fortresses Compat
Cataclysm 的 Ignited Berserker 现在可以在击败 Ignis 后于 YUNG's Better Nether Fortresses 中生成
Terramity Chthonian Void Fix
大幅减少渲染 Terramity 的 Chthonian Void 方块时的卡顿。
Just Hatch Already!
Hatch Sniffer Eggs by jumping on them
评论
登录后评论和评分