跳到正文

EyeJS: KubeJS Addon

作者:GamesOfLife

Create custom structure-locating eyes with KubeJS

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

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 的其他作品

查看全部 →