SethBling / cbscript

CBScript for Minecraft
1.14k stars 27 forks source link

Add Item Modifier definition #21

Closed CesarGpe closed 5 months ago

CesarGpe commented 6 months ago

I've been using a separate datapack for item modifiers since you can't define them in CBScript.

The syntax could look similar to this, as the advancement/loot table/block tag/predicate defines already use the JSON-ish format.

item_modifier repair_tool {
    function: 'set_damage',
    damage: 1,
    add: false
}
CesarGpe commented 5 months ago

Seth added it!