3
HELP! ARMOR + EFFECTS!
HEY!
Does ANYONE know how to apply status effects to pieces of armor?? ANYONE?? PLEASE HELP!!
Does ANYONE know how to apply status effects to pieces of armor?? ANYONE?? PLEASE HELP!!
Create an account or sign in to comment.
8
1
What are you even using this for
1
Using status effect-infused armors for? A map!
2
Theres two ways. The first one is the easiest and could suit your purpose:
First way is with attribute armor: here'ss an example and analysis:
/give @p minecraft:golden_boots 1 0 {AttributeModifiers:[{Operation:0,UUIDLeast:1,UUIDMost:1,Amount:1.0,AttributeName:generic.movementSpeed,Name:Boots}],display:{Name:"Boots of Speed"}}
So as you see, you must use the give command
There's only 3 things you can change here:
-the armor piece (minecraft:xxx)
-the attribute name
-the display name (at end of command)
the attribute is the most important thing here, and a list of of can be found here:
https://minecraft.gamepedia.com/Attribute
As for literal potion (status) effects when you have armor on, that would require a command block that would testfor the armor being worn on the player in the armor slots, and a comparator extending from that command block to a different command block that would apply the effect on the player. To look up what the armor slot #'s are for the testfor command (which should be looping) you can probably find that on the wiki or in a video.
I hope this helps! If you're interested in commandblock and redstone stuff, be sure to check out my projects :P
First way is with attribute armor: here'ss an example and analysis:
/give @p minecraft:golden_boots 1 0 {AttributeModifiers:[{Operation:0,UUIDLeast:1,UUIDMost:1,Amount:1.0,AttributeName:generic.movementSpeed,Name:Boots}],display:{Name:"Boots of Speed"}}
So as you see, you must use the give command
There's only 3 things you can change here:
-the armor piece (minecraft:xxx)
-the attribute name
-the display name (at end of command)
the attribute is the most important thing here, and a list of of can be found here:
https://minecraft.gamepedia.com/Attribute
As for literal potion (status) effects when you have armor on, that would require a command block that would testfor the armor being worn on the player in the armor slots, and a comparator extending from that command block to a different command block that would apply the effect on the player. To look up what the armor slot #'s are for the testfor command (which should be looping) you can probably find that on the wiki or in a video.
I hope this helps! If you're interested in commandblock and redstone stuff, be sure to check out my projects :P
1
About the potion effect part. It is better to scoreboard tag the player if they wear the armor and then use /effect on the players with that tag. This is multiplayer compatible, while your method is not.
An example (in a repeating command chain):
scoreboard players tag @a[tag=SpecialArmor] remove SpecialArmor
scoreboard players tag @a[tag=!SpecialArmor] add SpecialArmor {Inventory:[{Slot:100b,id:"minecraft:diamond_helmet",tag:{display:{Name:"Special Helmet"}}}]}
effect @a[tag=SpecialArmor] minecraft:resistance 1 0
An example (in a repeating command chain):
scoreboard players tag @a[tag=SpecialArmor] remove SpecialArmor
scoreboard players tag @a[tag=!SpecialArmor] add SpecialArmor {Inventory:[{Slot:100b,id:"minecraft:diamond_helmet",tag:{display:{Name:"Special Helmet"}}}]}
effect @a[tag=SpecialArmor] minecraft:resistance 1 0
1
Comment to come back. - This is helpful, thank you.
2
sheep
2
...that doesn't help, but OK!
1
srry, i actually know!!!!
JK MAGIC
JK MAGIC