#make custom item support enchantment
9 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
pretty sure everything supports fortune by default
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
loottables just check if you hold an item with the enchantment in your main hand
i mean my tool item, no it does not support fortune. The defaults you are thinking of that is supported by everything that has durability is unbreaking and mending
Did not work
e.create('iron_chisel').maxDamage(80).maxStackSize(1).tag('kubejs:chisels').tool('pickaxe', {level: 1,speed: 2,damage: 1})
also did not work
e.create('iron_chisel').maxDamage(80).maxStackSize(1).tag('kubejs:chisels').canApplyAtEnchantingTable((stack, enchantment) => enchantment.id === 'minecraft:fortune')
Is this not possible with base kubejs, and therefore requires enchantjs? If so, how would I do it using that?