1

/setblock help

TSchweibz 3/17/15 5:19 pm
276
3/17/2015 8:26 pm
Is there any way to /setbolck a certain type of block like pink clay with a mob spawner for a certain radius?
Posted by
TSchweibz
Level 2 : Apprentice Miner
0

  Have something to say?

JoinSign in

9

Willed3083
03/17/2015 8:22 pm
Level 31 : Artisan System
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.
1
Jmal116
03/17/2015 8:26 pm
Level 34 : Artisan System
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.
1
inPigglet
03/17/2015 8:00 pm
Level 14 : Journeyman Pig
I cannot compare it #ShyProblems *facepalm*
1
TSchweibz
03/17/2015 7:29 pm
Level 2 : Apprentice Miner
Ok thanks!
1
Jmal116
03/17/2015 7:17 pm
Level 34 : Artisan System
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: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.
1
PixelCrash_
03/17/2015 7:56 pm
Level 62 : High Grandmaster Pixel Puncher
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.
1
TSchweibz
03/17/2015 7:13 pm
Level 2 : Apprentice Miner
Any ideas, is this possible?
1
TSchweibz
03/17/2015 6:27 pm
Level 2 : Apprentice Miner
no like it replaces any pink clay blocks with a spawner
1
YTCereal
03/17/2015 5:26 pm
Level 22 : Expert Network
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
1

Welcome