I am trying to make a money wars mini-game, and to upgrade the generators, you throw a certain ingot on the generator block, and then it upgrades it. I know you can put:
/testfor @e[type=Item] {Item:{id:whatever id}}
But where would I put the X Y Z coordinates?
Best Answer
This syntax should work:
Where
a
is the x co-ordinate,b
is the y co-ordinate, andc
is the z co-ordinate. Note that ther=1
radius attribute is necessary to detect all items in the 1-block area, instead of only detecting items at that exact co-ordinate.Example: