mojira.dev
MC-113380

Concrete powder won't turn into concrete when replacing water

The bug

What should happen:

The falling powder entity turns into concrete block when it attach to water.

[media]

What happened instead:
It destroyed all water blocks below.

[media]

Code analysis

Based on 17w06a decompiled using JD GUI and cfr

The entity falling_block with concrete_powder as block replaces water if it touches it with the concrete powder block. This relies on a method of the concrete powder block to then turn it to concrete (amo.e). This method will however only turn the concrete powder to concrete if it finds water in the horizontal directions or above. Therefor the concrete powder will start falling again.

This could maybe be solved by having a method like getStateForPlacement for block states which is called in general before a block is placed naturally (player, falling block,... but not /setblock). This method could then detect that there is water at the position and therefor return the respective concrete block to be placed.

Linked issues

Attachments

Comments 4

This also happens when there aren't any entities in the water.

Edit: noob Minecrafter lol

It does that even without any entities in the water. Apparently there has to be at least one block of water next to the other water block.

I'd say it works as intended. You replace the water with it, it doesn't come in contact

i've had this same problem, drop concrete powder in a 1x#x1 hole filled with water, the water disappears, and the concrete powder remains at the bottom of the hole

Frank D. George

Jens Bergensten

Confirmed

concrete, concrete_powder, water

Minecraft 17w06a, Minecraft 17w16b

Minecraft 1.12 Pre-Release 1

Retrieved