mojira.dev
MC-122049

/setblock and /fill don't place colored blocks

When using 'setblock' and 'fill', I can't set a colored block anymore.

Here's what happens in 1.12.2:
/setblock ~ ~ ~ wool 4
places a yellow wool block at your feet.
/fill ~ ~ ~ ~1 ~1 ~1 wool 4
fills in an area with yellow wool.

Here's what happens in 17w46a:
/setblock ~ ~ ~ wool 4
returns an error "Incorrect argument for command at position 20: ... ~ ~ wool <-- [HERE]"
/fill ~ ~ ~ ~1 ~1 ~1 wool 4
returns an error "Incorrect argument for command at position 25: ...1 ~1 wool <-- [HERE]"

It appears that I can't place blocks with color values down anymore. I tried a bunch of other arguments with these commands and all it does is generate an error or place a white wool block. Is this a bug?

Comments 3

You no longer can use metadata, as metadata is in the process of being phased out. Instead, use block states, as part of the block itself: /setblock ~ ~ ~ minecraft:wool[color=cyan]. (A similar syntax is available in 1.12.2: /setblock ~ ~ ~ minecraft:wool color=cyan)

Note that in future versions, it will be cyan_wool in that example, but the precedent holds for other states 😉

Ah cool, thanks for the info! Hopefully there will be comprehensive documentation for these new commands, along with examples that include the implementation of block states and nbt data. Thanks again, and sorry about posting a bogus bug.

Jay Eff

(Unassigned)

Unconfirmed

Minecraft 17w45b, Minecraft 17w46a

Retrieved