mojira.dev
MC-124028

/fill and /particle commands not working with command blocks

/fill and /particle commands that work in chat do not work with command blocks

/fill example:

/fill ~ ~2 ~   ~ ~2 ~ stone

when executed from chat places a stone block directly overhead, as expected. The same command executed by a command block does nothing. Nothing at all. No error message. Nothing.

Command variants don't work either, such as:

/fill ~ ~2 ~   ~ ~2 ~  stone 0
/fill ~ ~2 ~   ~ ~2 ~  minecraft:stone
/fill ~ ~2 ~   ~ ~2 ~  minecraft:stone 0
fill ~ ~2 ~   ~ ~2 ~  stone
fill ~ ~2 ~   ~ ~2 ~  stone 0
fill ~ ~2 ~   ~ ~2 ~  minecraft:stone
fill ~ ~2 ~   ~ ~2 ~  minecraft:stone 0
/fill ~ ~2 ~   ~ ~2 ~ stone 0 replace air
fill ~ ~2 ~   ~ ~2 ~ stone 0 replace air

/particle example:

/particle flame ~2 ~1 ~2  1 1 0  0  100

produces flames in chat. As with /fill, nothing happens when executed by a command block.

Comments 5

You have double spaces, which aren't valid in commands; chat messages (including chat send commands) remove duplicate spaces.

Removed the double spaces. No change. Still does not work with command blocks.

Cannot reproduce. Works fine here with the command block (and the removed spaces).

fill ~ ~2 ~ ~ ~2 ~ stone

works, and that’s intentional, multiple spaces in a row are read as 1 space in the chat but not command blocks.

Thanks. Got it working. I used multiple spaces to make things a bit more readable.

Just curious, do chat and command blocks use separate command parsers?

Phoenix Williams

(Unassigned)

Unconfirmed

Minecraft 1.12.2

Retrieved