Started by
FlooffyAlpaca
on
Topic category: Help with Minecraft modding (Java Edition)
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!
should error of your code
No worries guys, thanks but I managed to get indestructible armor by making 'Maximal damage that armor absorbs' "0".