mojira.dev
MC-278140

The "/fill" command doesn't work properly with the directional states of several blocks placed adjacent to one another

The Bug:

The "/fill" command doesn't work properly with the directional states of several blocks placed adjacent to one another.

Steps to Reproduce:

  1. Attempt to place some fences that are all facing north by using the command provided below.

    /fill ~1 ~ ~1 ~5 ~ ~5 minecraft:oak_fence[north=true]
  2. Observe if the fences have block states other than "north" set to "true".

Observed Behavior:

The said blocks do not follow the specified block states properly.

Expected Behavior:

The said blocks would follow the specified block states properly.

Linked issues

Attachments

Comments 7

Can confirm.

You're not defining any other states... Your command ensures north=true, and nothing else. Set other direction states to false in the command.

Same thing happens when using the following command:

/fill ~1 ~ ~1 ~5 ~ ~5 minecraft:oak_fence[north=true,south=true,west=true,east=true]

Um, you're setting everything to true now, which works fine. I think you wanted to check setting those values to false...

The command doesn't execute as expected even when setting one directional state to true, and the rest to false:

[media]

[media]

Ok, just tested now, can confirm. Forcing a connection to be present works, forcing one to *not* exist does not.

This issue has been fixed in 25w02a with the addition of the new "strict" option.

Avoma

(Unassigned)

Confirmed

Platform

Low

Block states, Commands

24w45a, 1.21.4 Release Candidate 1, 1.21.4

25w02a

Retrieved