1

Command block, using setblock with colors

hmmcrunchy 5/4/14 1:54 am
2.2k
5/4/2014 10:47 am
Hello all

Quick query. I'm designing a map and need to use a testfor command block to set some other blocks

The blocks I'm trying to set are colored wool and colored stained glass, I can use setblock x y z 95 ok that's working but when I try and setblock x y z 95:4 it doesn't recognise the block

Do I have to specify the color another way?

Thanks.
Posted by
hmmcrunchy
Level 67 : High Grandmaster System
96

  Have something to say?

JoinSign in

2

galika1080
05/04/2014 10:47 am
Level 35 : Artisan Toast
As Bowchicawowza said, just say 95 4 instead of 95:4
1
Bowchicawowza
05/04/2014 10:36 am
Level 1 : New Miner
The syntax for the setblock command is:
/setblock <x> <y> <z> <TileName> [dataValue] [oldBlockHandling] [dataTag]

If the tile name is 95 (aka. stained_glass) the argument for changing the colour is the data value.
So all you need to do is replace the ":" with a " " then it'll work.
Hope that helped.
1

Welcome