跳到正文

JadeJS

作者:strong214356

this is an API layer between Jade and you KubeJS scripts

收藏

介绍

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

JadeJS

Jade extension for KubeJS. Customise the Jade block tooltip from KubeJS scripts.

Requirements

NeoForge, KubeJS and Jade (all required).

Features

  • Client-side event JadeEvents.blockTooltip, fired whenever Jade builds a block tooltip
  • Add text lines or Jade elements at the end of the tooltip or at a given index
  • Tag your lines and remove tooltip entries by tag
  • Replace the harvest tool display with your own list of items or item tags, with a valid/invalid mark
  • Jade binding: theme box styles, sprite boxes, color palettes, fluid objects, progress styles
  • JadeElements binding: text, spacer, item, fluid, progress bar, box and sprite elements

Example

Put this in kubejs/client_scripts/:

JadeEvents.blockTooltip(event => {
    if (event.blockId === 'minecraft:furnace') {
        event.addComponent(Text.of('Custom line'))
    }
})

Links

Source and issues: https://github.com/PalsFreniers/JadeJS

Link to KubeJS: https://www.curseforge.com/minecraft/mc-mods/kubejs

Link to Jade: https://www.curseforge.com/minecraft/mc-mods/jade

常见问题

JadeJS 支持哪些 Minecraft 版本?

JadeJS 支持 Minecraft Java 版 1.21.1,可用的加载器:NeoForge。下载时注意选择和你游戏版本一致的文件。

JadeJS 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分