跳到正文

Item Stage JS

作者:gu_meng

Use the KubeJS mod to set usage restrictions for items and blocks.

收藏

介绍

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

This mod requires KubeJS.

Items assigned to stages will have their texture replaced with the Arcane Item texture and cannot be picked up normally. They can only be collected using an Arcane Item Chest and will be stored inside it. Once the corresponding stage is unlocked, the items return to normal.

Blocks assigned to stages can be configured to be replaced with other blocks. When broken normally, the replaced block will drop. After unlocking the corresponding stage, the block reverts to its original state.

Use the Arcane Item Chest from this mod to retrieve your staged items for stages you have unlocked.

Script Example

ItemStageJS.item(event=>{
    event.addItemStage("testStage1","stick")
    event.addStage("testStage2",'#minecraft:logs')
    event.addStage("testStage3","@minecraft")
})

ItemStageJS.block(event=>{
    event.addBlockStage("blockStage1","stone",Blocks.DIAMOND_BLOCK.defaultBlockState())
    event.addBlockStage("blockStage2",'minecraft:oak_log',Blocks.TNT.defaultBlockState())
    event.addBlockStage("blockStage3",'minecraft:birch_log',Blocks.OBSIDIAN.defaultBlockState())
})

ItemStageJS.stageChange("add",event => {
    console.log(event.getType())
    console.log(event.getStage())
})

ItemStageJS.stageChange("remove",event => {
    console.log(event.getType())
    console.log(event.getStage())
})

ItemStageJS.stageChange(event => {
    console.log(event.getType())
    console.log(event.getStage())
})

常见问题

Item Stage JS 支持哪些 Minecraft 版本?

Item Stage JS 支持 Minecraft Java 版 1.20.1–26.1.2,共 2 个版本,可用的加载器:Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。

Item Stage JS 怎么安装?

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

评论

登录后评论和评分

gu_meng 的其他作品

查看全部 →