promotional bannermobile promotional banner

Item Stage JS

Unlisted
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 Team

profile avatar
Owner
  • 3
    Projects
  • 8.6K
    Downloads

More from gu_meng