#Custom item/tool

17 messages · Page 1 of 1 (latest)

honest prawn
#

I want to create an item that has a 1561 durability and can be used in a machine from (custom machinery). But instead of the item being consumed, I want with each craft of the machine the item to be damaged

honest craneBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

meager matrix
#

Is gnome broken?

honest prawn
#

what?

meager matrix
#

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

brisk wrenBOT
#

Choose a topic below!

keen sinew
#

works fine for me

keen sinew
#

you can also do damageIngredient('minecraft:diamond_sword') or damageIngredient(0)