[SOLVED] Reapir items

Started by Noxvern on

Topic category: Help with modding (Java Edition)

Last seen on 00:25, 3. Sep 2022
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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 07:36, 20. Apr 2023
Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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 19:36, 13. Nov 2022
Joined Nov 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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 00:25, 3. Sep 2022
Joined Jun 2020
Points:

User statistics:

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

Thnx! Works like a charm~ :D