1

JSON | How to check what does player have in a hand?

Aresak's Avatar Aresak9/6/14 12:08 pm
1 emeralds 275 5
9/6/2014 2:52 pm
Aresak's Avatar Aresak
Hello,

my question is what's the way to see what does the player have in the hand.

Example:

testfor @p[r=10] {SelectedItem:stone}
Posted by Aresak's Avatar
Aresak
Level 7 : Apprentice Crafter
6

Create an account or sign in to comment.

5

ValleyDew
09/06/2014 12:44 pm
Level 14 : Journeyman Warrior
ValleyDew's Avatar
lol ikr
1
Tabbin
09/06/2014 12:38 pm
Level 64 : High Grandmaster Batman
Tabbin's Avatar
You know there is a edit button?
1
Aresak
09/06/2014 2:52 pm
Level 7 : Apprentice Crafter
Aresak's Avatar
Of course I do.
This was Question & Answer...
1
Aresak
09/06/2014 12:29 pm
Level 7 : Apprentice Crafter
Aresak's Avatar
This is what do I have currently - Not working:

testfor @p[r=5] {SelectedItem:{id:torch}}
1
Aresak
09/06/2014 12:33 pm
Level 7 : Apprentice Crafter
Aresak's Avatar
Solution:
{SelectedItem:{id:minecraft:torch}}
1
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome