Started by
MadMagic
on
Topic category: Help with Minecraft modding (Java Edition)
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:
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, 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.
https://ibb.co/mydbFsN
It's not working for me. pls help
https://ibb.co/mydbFsN
It's not working for me. pls help
armor slot 0=boots, 1=leggings, 2=chestplate, 3=helmet