Is there any way to /setbolck a certain type of block like pink clay with a mob spawner for a certain radius?
9
It is easier to use a fill command. /fill only works for 4096 blocks but its a big enough radius. Just attach any clock of any timer to the following command:
execute @a ~ ~ ~ fill ~-10 ~5 ~-10 ~10 -5 ~10 mob_spawner 0 replace stained_hardened_clay 6
You can use data tags to change the type of spawner but I will not go into detail here.
execute @a ~ ~ ~ fill ~-10 ~5 ~-10 ~10 -5 ~10 mob_spawner 0 replace stained_hardened_clay 6
You can use data tags to change the type of spawner but I will not go into detail here.
Again, this version of fill command does not work with spawners because they're tile entities and carry extra data. As soon as the game sees that, it attempts to go into normal fill mode and throws an error because you didn't put a correct data structure. It is a bug, and hopefully they fix it soon so we can do something like this.
I cannot compare it #ShyProblems *facepalm*
Ok thanks!
Usually I would say use the replace syntax for /fill, however there's currently a bug that won't let you use blocks with data tags like spawners. Because of that, there really is no easy way for you to do it. The fastest way I can think of to do this (if the radius isn't too larger) is to summon an armor stand on every block in the radius, and then run something like this:
Obviously that has the potential to be a lot of armor stands, a lot of command blocks, and a lot of lag. But unless they've fixed that bug and I don't know about it, it's probably your best shot.
execute @e[type=ArmorStand] ~ ~ ~ detect ~ ~-1 ~ stained_hardened_clay 6 setblock ~ ~-1 ~ <rest of spawner stuff>Obviously that has the potential to be a lot of armor stands, a lot of command blocks, and a lot of lag. But unless they've fixed that bug and I don't know about it, it's probably your best shot.
Hopefully they'll fix this bug in 1.8.4. Also, I've always wondered how to execute commands at only certain types of blocks, so thanks for the help.
Any ideas, is this possible?
no like it replaces any pink clay blocks with a spawner
idk , Huge Spawner In 1 Command Block
Stack Everything On it..
or u mean like Make the Spawner in Center
and all other blocks near it
Stack Everything On it..
or u mean like Make the Spawner in Center
and all other blocks near it
