#Custom item/tool
17 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
Is gnome broken?
what?
the macro bot
I'm trying to senda wiki link through a macro
Ill post it manually
event.shapeless('9x minecraft:melon_slice', [ // Craft 9 watermelon slices
Item.of('minecraft:diamond_sword').ignoreNBT(), // Diamond sword that ignores damage
'minecraft:melon' // Watermelon block
]).damageIngredient(Item.of('minecraft:diamond_sword').ignoreNBT()) // Damage the sword (also has to ignore damage or only 0 damage will work)
an example I pulled off the legacy wiki that should still work
it uses .damageIngredient
ItemEvents.toolTierRegistry(event => {
event.add('tier_id', tier => {
tier.uses = 250
tier.speed = 6.0
tier.attackDamageBonus = 2.0
tier.level = 2
tier.enchantmentValue = 14
tier.repairIngredient = '#forge:ingots/iron'
})
})
^ Allows you to register a custom tier with a custom durability
just tweak those value
Choose a topic below!
you can also do damageIngredient('minecraft:diamond_sword') or damageIngredient(0)
