The Meaning of Life, the Universe, and Everything.
Location:
Nh
Join Date:
6/7/2017
Posts:
152
Minecraft:
Daiginn
Xbox:
Daiginn
Discord:
Daiginn#3827
Member Details
How do u test if the player has a tag on them? I want to teleport a player that is tagged? Not an item tagged but the player is himself tagged.
Rollback Post to RevisionRollBack
Welcome to Hells Gate!!
Your tour on Pandora starts here!!
As you just wake up from hypersleep, you realize
You got rudely awakened by the sounds of players fighting and screaming ahead! You realize this is no fairy tale! Players are fighting everywhere! Where do you go from here? How will you survive? Pandora will :poop: you out! Come to the discord and learn what it takes to Level up, Power up, and Conquer Pandora!!
Before Minecraft 1.13 the way I would give a player a tag when they held an item was by using these commands...
Command to test for an item in the mainhand:
scoreboard players tag @a add GUN1 {SelectedItem:{tag:{gun:1b}}}
Command to test for an item in the offhand:
scoreboard players tag @a add GUN1 {Inventory:[{Slot:-106b,tag:{gun:1b}}]}
But now in minecraft 1.13 they added the new "/tag" command and it is structured like this...
/tag @a add "Name"
How do I make it so the command adds the tag if the player is holding a specific item like the old commands?
Nevermind I found out how to do it after some testing here is the command...
/tag @a[nbt={SelectedItem:{tag:{gun:1b}}}] add GUN1
How do u test if the player has a tag on them? I want to teleport a player that is tagged? Not an item tagged but the player is himself tagged.
Welcome to Hells Gate!!
Your tour on Pandora starts here!!
As you just wake up from hypersleep, you realize
You got rudely awakened by the sounds of players fighting and screaming ahead! You realize this is no fairy tale! Players are fighting everywhere! Where do you go from here? How will you survive? Pandora will :poop: you out! Come to the discord and learn what it takes to Level up, Power up, and Conquer Pandora!!
https://discord.gg/DvN9T7F
Command block engineer // Developer // #TeamTrees