So the new 1.14 update seems to have changed a lot of commands (again). All I'm trying to do is detect when the player breaks a spawner in a specific location. Say for example the spawner is at -200 20 10, how can I check if that spawner is broken and run a command?
I've tried the command /execute if block -217 64 -220 #minecraft:spawner run say hello
as a test in a repeating command block, and for some reason, it won't check for one. I've even tried entity, but the only option is checking for a minecart spawner. I've looked everywhere but can't seem to find the answer.
Best Answer
If you know there is a spawner at certain coordinates, you can test if there's air there instead of testing if there's a spawner. Logically, there will be air in the place of the spawner when it breaks, so we don't need to identify spawners using commands at all.
Here's what the command looks like if there's a spawner at coordinates
x:0 y:70 z:0
:By the way, the following command worked for me: