Flight Disabled from Armor Set after Armor takes damage

Started by FlooffyAlpaca on Sat, 11/09/2019 - 20:15

Topic category: Help with modding (Java Edition)

Last seen on 17:44, 12. Nov 2019
Joined Nov 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
Flight Disabled from Armor Set after Armor takes damage
Sat, 11/09/2019 - 20:15

Hi people.

Okay so I'm pretty new with MCreator and I managed to make a simple mod where wearing 4 specific pieces of armor grants you Creative Mode Flight.

It works fine until you take damage from anything, you see the durability bar on the armor then the flight no longer works.

Anyone have a fix for this? I've tried using MAX_VALUE and POSITIVE_INFINITY, all it does it make the chestplate indestructible but it doesn't help.

My code is basically "If get item from armor slot <> == <> AND If get item... (rinse and repeat 4 times in total for each armor piece) do allow to fly if true, else dont allow to fly".

Thanks, any help is much appreciated!

Last seen on 21:12, 16. Jun 2020
Joined Apr 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
should error of your code
Sat, 11/09/2019 - 20:31

should error of your code

Last seen on 17:44, 12. Nov 2019
Joined Nov 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
No worries guys, thanks but…
Sat, 11/09/2019 - 21:07

No worries guys, thanks but I managed to get indestructible armor by making 'Maximal damage that armor absorbs' "0".