1

Command block, using setblock with colors

hmmcrunchy's Avatar hmmcrunchy5/4/14 1:54 am
1 emeralds 2.1k 2
5/4/2014 10:47 am
galika1080's Avatar galika1080
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's Avatar
hmmcrunchy
Level 67 : High Grandmaster Engineer
93

Create an account or sign in to comment.

2

1
05/04/2014 10:47 am
Level 35 : Artisan Toast
galika1080
galika1080's Avatar
As Bowchicawowza said, just say 95 4 instead of 95:4
1
05/04/2014 10:36 am
Level 1 : New Miner
Bowchicawowza
Bowchicawowza's Avatar
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.
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome