Flight Disabled from Armor Set after Armor takes damage

Started by FlooffyAlpaca on

Topic category: Help with modding (Java Edition)

Last seen on 18:07, 25. Feb 2022
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Flight Disabled from Armor Set after Armor takes damage

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 11:46, 14. Apr 2021
Joined Apr 2018
Points:

User statistics:

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

should error of your code

Last seen on 18:07, 25. Feb 2022
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • 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".