Code for checking armor

Started by xDiamondFox on

Topic category: Help with modding (Java Edition)

Last seen on 14:56, 26. Jan 2020
Joined Jan 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Code for checking armor

How would one make a code for checking for certain armor pieces in the armor slots of a player

Last seen on 14:56, 26. Jan 2020
Joined Jan 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
nvm figured it out
Mon, 02/04/2019 - 15:35

nvm figured it out

Last seen on 14:56, 26. Jan 2020
Joined Jan 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
actually is there a way to…
Mon, 02/04/2019 - 15:53

actually is there a way to check if one has a a certain piece of armor in each of the slots, and checking it all at once then giving an outcome if you have all equiped, and if they don't something happens. 

what I'm trying to do is when you enter a certain biome that's extremly cold it starts freezing you to death if you don't have "fur" armor on. then if you remove the one piece of the armor you start taking damage.