get item from armor slot not working

Started by MadMagic on Thu, 07/11/2019 - 19:04

Topic category: Help with MCreator modding

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

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
get item from armor slot not working
Thu, 07/11/2019 - 19:04

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?

 

Last seen on 19:53, 18. Aug 2019
Joined Aug 2016
User points:

Statistics:

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