1
[Solved] 1.9 Command for execute detect spawner
What command would I use to do a /execute detect and find a blaze spawner specifically, and not other kinds of spawners?
3
You should be able to run it like this:
I don't do much with spawners, and don't know how they work. I'd suggest going into mcedit or something and try to figure out which tag you should use for the spawner.
Also of course the player selector and coordinates can be changed to your needs, this one will find any spawner one block below a player.
execute @a ~ ~ ~ testforblock ~ ~-1 ~ mob_spawner -1 {NBT}I don't do much with spawners, and don't know how they work. I'd suggest going into mcedit or something and try to figure out which tag you should use for the spawner.
Also of course the player selector and coordinates can be changed to your needs, this one will find any spawner one block below a player.
You cannot do an execute detect with a block that requires a certain NBT structure. You will have to separately run a /testforblock command executed off the player, and then funnel the output of that through another command. If you're in 1.9 you could do this with a conditional command. If you're in 1.8 you could either just use a comparator (not instant) or command stats to pull the SuccessCount of the command (instant, but weird to set up).
Alright, what would a testforblock for that look like then?
