[SOLVED] Reapir items

Started by Noxvern on Wed, 07/28/2021 - 14:28

Topic category: Help with modding (Java Edition)

Last seen on 07:06, 17. Sep 2021
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
[SOLVED] Reapir items
Sun, 09/05/2021 - 22:15 (edited)

I want to do a wand and when you right click, the item in the shield-hand will be restored.

Can you guys help me to do that?

Just replacing the item or just changing the durability will be fine, but I don't know how to do it...

Edited by Noxvern on Sun, 09/05/2021 - 22:15
Last seen on 16:18, 17. Sep 2021
Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Replacing it with the same…
Thu, 08/19/2021 - 21:08

Replacing it with the same item is fine. Just like this https://imgur.com/v9ttWO0

Last seen on 12:06, 18. Sep 2021
Joined Nov 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
There's a code block in the…
Fri, 08/20/2021 - 00:04

There's a code block in the Item Procedures section labelled "Set damage of _ to _". Replace the Itemstack selector with "Get item in offhand" block, and set the number to 0, as this value is how much damage the item has received, so setting it to 0 should restore the item.

Last seen on 07:06, 17. Sep 2021
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Thnx! Works like a charm~ :D
Fri, 08/20/2021 - 16:37

Thnx! Works like a charm~ :D