1

[Solved] 1.9 Command for execute detect spawner

RageLokiCat 11/3/15 5:27 pm
461
11/3/2015 8:52 pm
What command would I use to do a /execute detect and find a blaze spawner specifically, and not other kinds of spawners?
Posted by
RageLokiCat
Level 21 : Expert Pony
20

  Have something to say?

JoinSign in

3

Jmal116
11/03/2015 8:52 pm
Level 34 : Artisan System
You should be able to run it like this: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.
1
Jmal116
11/03/2015 6:15 pm
Level 34 : Artisan System
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).
1
RageLokiCat
11/03/2015 7:37 pm
Level 21 : Expert Pony
Alright, what would a testforblock for that look like then?
1

Welcome