Mineuniverse
Mods
KubeJS Chest Item

KubeJS Chest Item

MOD
Added KubeJS compatibility for Chest Curio Item
by YTGLD82925
Download Claim this project
10 downloads
0 likes
0 followers
Updated Oct 14, 2026
0 hypes
Follow0
Addons API and Library Server Utility
Advertisement Remove ads with Premium →

This mod allows using KubeJS scripts to create some new chest curios.

Supported item types:

  • Normal Curios
StartupEvents.registry('item', event => {
    event.create('item_id', 'chest_item:item_base')
        .displayName('itemName')
        .maxStackSize(1)
        .addAttribute(
            'minecraft:generic.max_health',
            'chest_item:item_max_health',
            0.2,
            'add_multiplied_base'
        )
        .texture('modid:item/texture')
})
  • Shadow Curios
StartupEvents.registry('item', event => {
    event.create('item_id', 'chest_item:item_black_shadow')
        .displayName('itemName')
        .maxStackSize(1)
       .addAttribute(
            'chest_item:shadow_shield',
            'chest_item:item_shadow_shield',
            4,
            'add_value'
        )
        .texture('modid:item/texture')
  • Augments
StartupEvents.registry('item', event => {
    event.create('item_id', 'chest_item:reinforced_item')
        .displayName('itemName')
        .loot(false)  // Should I add it to the loot table
        .valueSan(2)  //Rationality value
        .addAttribute(
            'minecraft:generic.max_health',
            'chest_item:item_shadow_shield',
            -0.1,
            'add_multiplied_total'
        )
        .maxStackSize(1)
        .texture('modid:item/texture')
})
  • Mother Evil Curios
StartupEvents.registry('item', event => {
    event.create('item_id', 'chest_item:evil_mother')
        .displayName('itemName')
        .valueSan(-3)  //Rationality value
        .maxStackSize(1)
        .texture('modid:item/texture')
})
  • Bottles (and associated Faiths)
StartupEvents.registry('item', event => {
    event.create('bottle_id', 'chest_item:memory')
        .displayName('bottle')
        .setMemoryString("kubejs","memory_id")
        .maxStackSize(1)
        .texture('modid:item/texture')
})
//You must create an additional item
//This ID must correspond to the above code
StartupEvents.registry('item', event => {
    event.create('memory_id', 'chest_item:memory_tooltip')
        .displayName('memoryName')
        .setComponent("Large characters")
        .setComponentText("small characters")
        .setColor(0xffffff)
        .maxStackSize(1)
        .texture('modid:item/texture')
})

This mod also adds some predicate methods to check whether the player is wearing the relevant curios, augments or Faiths:

  if (ChestKubeJSHandler.has(player,Item.of('modid:item'))) {
      //Your specific implementation method
  }
  if (ChestKubeJSHandler.hasReinforced(player,Item.of('modid:item'))){
      //Your specific implementation method
  }
  if (ChestKubeJSHandler.hasMemory(player, "modid:item")) {
      //Your specific implementation method
  }
chest_kjs-1.0.0.0.jar
MC Client, 1.21.1, NeoForge, Server
Release 2026-10-13 Get

More from YTGLD82925

Advertisement Remove ads with Premium →

You Might Also Like