Started by ivan122 on Tue, 07/07/2020 - 09:30 Topic category: Help with Minecraft modding (Java Edition) I need to change a variable when armor is equipped or unequipped Jump to top I need more information. Are you talking about any type of armor or specific armor? Jump to top Permalink Log in or register to post comments The one I'm trying to create Jump to top Permalink Log in or register to post comments Like, when part of a set is equipped, x variable gets +200; unequipped means -200 Jump to top Permalink Log in or register to post comments Sorry i took so long to respond i had allot going on but this took me like 5 secs to make very simple what it will do is compare all armor slots in vanilla to item you have set to. I would put it on (Global trigger) On player tick update. Jump to top Permalink Log in or register to post comments your procedure will do the "do" section on every player tick, probably not what op wants. i think he wants it to do something once when put on or taken off. Jump to top Permalink Log in or register to post comments This code/procedure will work for you it enables 1 time when it's put on and disables 1 time after taken off. Remember to put this in a procedure with (Global Trigger) On Player Tick Update. The send message to entity is just so you get the idea, it's NOT needed for this. Jump to top Permalink Log in or register to post comments Thank you! Jump to top Permalink Log in or register to post comments could you post the image again, it is no longer availibile, thank you! Jump to top Permalink Log in or register to post comments the imagine is gone xD Jump to top Permalink Log in or register to post comments bruh that image Jump to top Permalink Log in or register to post comments What I need according to the idea .. but the screenshot is lost .. And I don’t understand how to do it Jump to top Permalink Log in or register to post comments
I need more information. Are you talking about any type of armor or specific armor? Jump to top Permalink Log in or register to post comments
Like, when part of a set is equipped, x variable gets +200; unequipped means -200 Jump to top Permalink Log in or register to post comments
Sorry i took so long to respond i had allot going on but this took me like 5 secs to make very simple what it will do is compare all armor slots in vanilla to item you have set to. I would put it on (Global trigger) On player tick update. Jump to top Permalink Log in or register to post comments
your procedure will do the "do" section on every player tick, probably not what op wants. i think he wants it to do something once when put on or taken off. Jump to top Permalink Log in or register to post comments
This code/procedure will work for you it enables 1 time when it's put on and disables 1 time after taken off. Remember to put this in a procedure with (Global Trigger) On Player Tick Update. The send message to entity is just so you get the idea, it's NOT needed for this. Jump to top Permalink Log in or register to post comments
could you post the image again, it is no longer availibile, thank you! Jump to top Permalink Log in or register to post comments
What I need according to the idea .. but the screenshot is lost .. And I don’t understand how to do it Jump to top Permalink Log in or register to post comments
I need more information. Are you talking about any type of armor or specific armor?
The one I'm trying to create
Like, when part of a set is equipped, x variable gets +200; unequipped means -200
Sorry i took so long to respond i had allot going on but this took me like 5 secs to make very simple what it will do is compare
all armor slots in vanilla to item you have set to. I would put it on (Global trigger) On player tick update.
your procedure will do the "do" section on every player tick, probably not what op wants. i think he wants it to do something once when put on or taken off.
This code/procedure will work for you it enables 1 time when it's put on and disables 1 time after taken off.
Remember to put this in a procedure with (Global Trigger) On Player Tick Update.
The send message to entity is just so you get the idea, it's NOT needed for this.
Thank you!
could you post the image again, it is no longer availibile, thank you!
the imagine is gone xD
bruh that image
What I need according to the idea .. but the screenshot is lost .. And I don’t understand how to do it