Started by
willithebig
on
Topic category: Help with MCreator software
hi, i want make a block that whit right click, repair de item in the hand. but i dont know what is the custom code to use... can help me please?
Topic category: Help with MCreator software
hi, i want make a block that whit right click, repair de item in the hand. but i dont know what is the custom code to use... can help me please?
Use the "on block right-click" trigger
And add that block in the procedure :
Deal the provided item damage of amount -X
with X being the amount of repair, don't forget to make it negative or else it'll damage the item! ^^
thank you!
@UnderWaves or you can use in the procedure:
red: "Set the provided items damage to" purple: "-" then place inside it purple: "Get damage of the provided item" and inside it too: "1" to get it work.
So you dont want the block have number of uses?
the 1 can be any number
how do you do this with an entity that when you right click it fixes whatever you're holding?