kzooy Posted March 10, 2021 Share Posted March 10, 2021 hello, i was just wondering how do i apply potion effects when the player is whereing certain armour Link to comment Share on other sites More sharing options...
0 Jackson85 Posted March 10, 2021 Share Posted March 10, 2021 I don’t know a whole lot about command blocks so I googled a solution and I found that this should work. execute as @a[nbt={Inventory:[{Slot:100b,id:"minecraft:diamond_boots"}]}] run effect give @s minecraft:jump_boost 1 0 true If you want to change the effect, just modify the name. If you want to modify the armor piece, change the armor name in the command and change the spot where it says 100 to 101 for leggings, 102 for chest plate, and 103 for helmet. I don’t want to take credit for this so I’ll attach the original post below for extra help. https://www.reddit.com/r/Minecraft/comments/coirnd/potion_effects_on_armor/ewiu5fc/ Joined on January 17th 2016 VIP since April 5 2017 - August 1st 2019 JrMod since August 1st Mod since October 1st SrMod since November 2nd - 2/7/21 Patron since February 8 - 3/7/21 Mod since March 8 2021 Retired since idk when If I helped or entertained you at all today, please react with a heart. Link to comment Share on other sites More sharing options...
0 kzooy Posted March 12, 2021 Author Share Posted March 12, 2021 On 3/10/2021 at 11:36 PM, Jackson85 said: I don’t know a whole lot about command blocks so I googled a solution and I found that this should work. execute as @a[nbt={Inventory:[{Slot:100b,id:"minecraft:diamond_boots"}]}] run effect give @s minecraft:jump_boost 1 0 true If you want to change the effect, just modify the name. If you want to modify the armor piece, change the armor name in the command and change the spot where it says 100 to 101 for leggings, 102 for chest plate, and 103 for helmet. I don’t want to take credit for this so I’ll attach the original post below for extra help. https://www.reddit.com/r/Minecraft/comments/coirnd/potion_effects_on_armor/ewiu5fc/ thanks, but i know that i need to do this on named items like: execute as @a[nbt={Inventory:[{Slot:100b,id:"minecraft:diamond_boots" named "supa speed boots"}]}] run effect give @s minecraft:jump_boost 1 0 true would this work? Link to comment Share on other sites More sharing options...
Question
kzooy
hello, i was just wondering
how do i apply potion effects when the player is whereing certain armour
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now