get item from armor slot not working

Started by MadMagic on

Topic category: Help with modding (Java Edition)

Last seen on 11:23, 24. Jul 2019
Joined Jul 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
get item from armor slot not working

so i want to make it when you have a full set of armor i added equipped you get the ability to fly, so i tried:

image

just to test first before i would do the entire set, but then whenever i load the game it just crashes, is it because i used the wonrg slot, when i put the slot to 4  or anny other value it just crashes but when i remove the get item from armor slot and use annything else like if the weather is rainy it will work. so what am i doing wrong here?

 

it's only because in coding,…
Fri, 07/12/2019 - 23:58

it's only because in coding, the 1 is the 0, the 2 is the 1, the 3 is the 2, etc, so the game don't have 5 or 104 armor slot, so the game don't understand. Just put (If get item from armor slot 0 of player == yourhelmet AND get item from armor slot 1 of player == yourchestplate, and the same thing for the leggins and the boots) do what you have done.

You have also to put Player tick event.

 

Try this, and if it's not working re ask help.

Last seen on 05:29, 31. Jan 2022
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
armor slot 0=boots, 1…
Wed, 02/05/2020 - 13:14

armor slot 0=boots, 1=leggings, 2=chestplate, 3=helmet