1
Command block, using setblock with colors
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.
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.
Create an account or sign in to comment.
2
1
As Bowchicawowza said, just say 95 4 instead of 95:4
1
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.
/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.