Topic category: Help with modding (Java Edition)
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!