mojira.dev
MC-48277

fill command not replacing when filtering for leaves

I need to change a large amount of blocks in a map I'm working on and tried using the fill command to filter for some of the leaf types and replace them with some of the wool colors.
I'm using a WIP resource pack, but I haven't changed the leaves (the block that seems to not be filterable)

I wasn't sure what went wrong because there was no error message, so I tried a few variations with a small area.

This is what didn't work:
/fill -467 91 -461 -466 91 -457 wool 13 replace leaves 3

This did work:
/fill -467 91 -461 -466 91 -457 wool 13 replace wool 14

I also tried the command with leaves 0, leaves 1 ... leaves 7 with no success and no errors.

Linked issues

Attachments

Comments 11

Cannot confirm, see screenshots.
The leaves may change the data value after placing (decay!), see http://minecraft.gamepedia.com/Data_value#Leaves
Used

/fill ~ ~ ~1 ~3 ~3 ~3 leaves 1 
/fill ~ ~ ~1 ~3 ~3 ~3 wool 14 replace leaves 1
/fill ~ ~ ~1 ~3 ~3 ~3 wool 14 replace leaves

for the screenshots.

Solution: Omit the data value of the leaves.

Reopened after handling MC-59624. (At the time of resolving this ticket there was no block / data display in debug screen)

Can confirm some weirdness:

Every second leaves block is replaced with:

/fill ~ ~3 ~ ~3 ~6 ~3 leaves 1
/fill ~ ~3 ~ ~3 ~6 ~3 stone 0 replace leaves 1

and

/fill ~ ~3 ~ ~3 ~6 ~3 leaves 5
/fill ~ ~3 ~ ~3 ~6 ~3 stone 0 replace leaves 5

when checked, every block has data value 1 resp. 5.

But

/fill ~ ~3 ~ ~3 ~6 ~3 leaves 13
/fill ~ ~3 ~ ~3 ~6 ~3 stone 0 replace leaves 13

replaces every leaves block.

Thank you! This will be very important. If something more is needed, I will try to provide. 🙂

Hey, I can confirm this issue in the latest snapshots and 1.8-pre1.

Confirmed for 1.8.

1 more comments

@unknown, you're experiencing [MC-61864]. It's a different bug related with the properties of tile entities. This bug covers issues when replacing leaves due to their decay data.

Confirmed for 1.8.8 and 15w40b.

Is this still an issue in the most recent versions (currently that is 1.10.2, or 16w42a) of Minecraft? If so, please update the affected versions and help us keeping this ticket updated from time to time. If you are the owner/reporter of this ticket, you can modify the affected version(s) yourself.

Can you please try this in 1.13 or the snapshots? Since the damage value syntax is gone I believe it should work exactly fine.

This report is currently missing crucial information. Please take a look at the other comments to find out what we are looking for.
If you added the required information and a moderator sees your comment, they will reopen and update the report. However, if you think your update to this report has been overlooked or you want to make sure that this report is reopened, you can contact the Mojira staff on Discord or Reddit.
-- I am a bot. This action was performed automatically! Please report any issues on Discord or Reddit

Caleb Schieck

(Unassigned)

Confirmed

Minecraft 14w06b, Minecraft 1.8-pre1, Minecraft 1.8, Minecraft 1.8.8, Minecraft 15w40b, Minecraft 1.10.2, Minecraft 16w42a, Minecraft 16w43a

Retrieved