How to add X Y Z coordinates to /testfor commands
//ads -- adsterra.com -- native banner
?>
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?
Pictures about "How to add X Y Z coordinates to /testfor commands"



How do you do command Testfor?
How to Enter the CommandWhat replaced the Testfor command in Minecraft?
The /testfor command became obsolete in Minecraft 1.13, and has been replaced by the /execute command*. It will do the same as typing /testfor @e {SelectedItem:{id:"<item>"}} and then putting a comparator to the command block with the command, and then running the command which you wanna run.Minecraft Redstone Tutorial | How to use testfor commands in MCPE!
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Anna Shvets, Klaus Nielsen, Klaus Nielsen, Klaus Nielsen
