Flight Disabled from Armor Set after Armor takes damage

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

Topic category: Help with MCreator modding

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

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
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!

0Upvote this forum topic
Last seen on 21:55, 6. Dec 2019
Joined Apr 2018
User points:

Statistics:

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

should error of your code

0Upvote this forum topic
Last seen on 17:44, 12. Nov 2019
Joined Nov 2019
User points:

Statistics:

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

0Upvote this forum topic