[Solved] Item not repairing even though it should be

Started by Ima-builder on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
[Solved] Item not repairing even though it should be
Wed, 09/16/2020 - 01:03 (edited)

I am trying to make an item that repairs a little when you crouch and right click with gold in your off hand.

Right now the durability bar goes up for a split second but then goes back down.

Here is the code if it matters.

(as a side note, when I first added it, it worked)

Edited by Ima-builder on Wed, 09/16/2020 - 01:03
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The problem is that I wasn't…
Wed, 09/16/2020 - 01:04

The problem is that I wasn't in survival.

Joined Dec 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
:D I've done that a few…
Wed, 09/16/2020 - 03:27

:D I've done that a few times..

Joined Dec 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
sorry bout double posting…
Wed, 09/16/2020 - 03:28

sorry bout double posting..

doing this a few times led me to add separate stuff to happen if you're in creative mode.