[Solved] Item not repairing even though it should be

Started by Ima-builder on Tue, 09/15/2020 - 23:29

Topic category: Help with modding (Java Edition)

Last seen on 06:40, 26. May 2022
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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
Last seen on 06:40, 26. May 2022
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.

Last seen on 06:55, 27. Apr 2021
Joined Dec 2017
Points:

User statistics:

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

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

Last seen on 06:55, 27. Apr 2021
Joined Dec 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.