Jump to content
  • 0

apply atributes with armour


kzooy

Question

2 answers to this question

Recommended Posts

  • 0

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

 

    [IMG]    button.png?t=Appeal&f=Calibri-Bold&ts=26&tc=fff&tshs=1&tshc=000&hp=20&vp=8&c=10&bgt=gradient&bgc=1d0dea&ebgc=1a0855&be=1 button.png?t=Rules&f=Calibri-Bold&ts=26&tc=fff&tshs=1&tshc=000&hp=20&vp=8&c=10&bgt=gradient&bgc=1d0dea&ebgc=1a0855&be=1  

If I helped or entertained you at all today, please react with a heart.

Link to comment
Share on other sites

  • 0
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...