Repair Items

Started by willithebig on

Topic category: Help with MCreator software

Active 8 years ago
Joined Dec 2016
Points:
708

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
Repair Items

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?

Active 4 years ago
Joined Jan 2019
Points:
894

User statistics:

  • Modifications: 5
  • Forum topics: 15
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 200
Use the "on block right…
Fri, 12/27/2019 - 12:15

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! ^^

Active 5 years ago
Joined Oct 2018
Points:
676

User statistics:

  • Modifications: 0
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
thank you!
Sun, 02/23/2020 - 13:04

thank you!

Active 1 year ago
Joined Dec 2019
Points:
719

User statistics:

  • Modifications: 1
  • Forum topics: 5
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 84
@UnderWaves or you can use…
Tue, 04/07/2020 - 12:36

@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.

Active 1 year ago
Joined Dec 2019
Points:
719

User statistics:

  • Modifications: 1
  • Forum topics: 5
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 84
So you dont want the block…
Tue, 04/07/2020 - 12:45

So you dont want the block have number of uses?

Active 1 year ago
Joined Dec 2019
Points:
719

User statistics:

  • Modifications: 1
  • Forum topics: 5
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 84
the 1 can be any number
Tue, 04/07/2020 - 12:46

the 1 can be any number

Active 4 years ago
Joined Dec 2019
Points:
965

User statistics:

  • Modifications: 1
  • Forum topics: 36
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 263
how do you do this with an…
Wed, 11/11/2020 - 18:13

how do you do this with an entity that when you right click it fixes whatever you're holding?