The Meaning of Life, the Universe, and Everything.
Join Date:
3/1/2015
Posts:
46
Minecraft:
TheMathGeek_314
Member Details
Is there a way I could give apply a full set of armor and a potion effect to any player holding a specific item? I know how to find the item in an inventory, and i know how to give armor and potion effects, but how do i give the armor/effects only to the player holding the item? Also, for every player NOT holding the item, I want to give them a sword and a different potion effect. I'm assuming this would be a similar command.
Is there a way I could give apply a full set of armor and a potion effect to any player holding a specific item? I know how to find the item in an inventory, and i know how to give armor and potion effects, but how do i give the armor/effects only to the player holding the item? Also, for every player NOT holding the item, I want to give them a sword and a different potion effect. I'm assuming this would be a similar command.
Use these following commands:
/scoreboard objectives add Item dummy
/scoreboard players set @a Item 0
/scoreboard players set @a Item 1 {<Item Detection>}
/replaceitem entity @a[score_Item_min=1] slot.armor.XX minecraft:XX
/effect @a[score_Item_min=1] speed X X true
/effect @a[score_Item=0] speed X X true
/give @a[score_Item=0] minecraft:iron_sword 1 0
The rest depends on the time, you want to give the players the items.
My projects: https://blockbench.net/hub
He has already told you.
I'll try this, but I have no experience with scoreboards
....
Okay, I'm confused