mojira.dev
MCPE-234648

Waterlogged liquids may not update to flow when containing block is destroyed

The minecraft:liquid_detection component allows blocks to prevent liquid from flowing in or out of them from specified directions. This is used by, for example, waterlogged bottom slabs to prevent liquid from flowing from their down direction. stops_liquid_flowing_from_direction handles this behavior.

Unfortunately, this feature is bugged. When a waterlogged block using this feature is destroyed, liquid will not flow to available directions specified by stops_liquid_flowing_from_direction.

Demonstration

The following video showcases this bug affecting the down direction of a custom block. There is nothing blocking liquid from flowing in the down direction, yet breaking the block does not allow flow.

This bug also affects Vanilla blocks using this feature:

All liquid prevention directions affected

Although this demo only shows this bug occurring with the down direction, all directions given by stops_liquid_flowing_from_direction are affected. For example, if it only listed east, liquid would not flow to the east direction when the block would be destroyed.

Reproduction

This bug can be reproduced with the following block definition:

{
	"format_version": "1.26.0",
	"minecraft:block": {
		"description": {"identifier": "bug_liquids:custom_block"},
		
		"components": {
			"minecraft:geometry": "minecraft:geometry.cross",
			"minecraft:material_instances": {
				"*": {"texture": "planks"}
			},
			
			"minecraft:liquid_detection": {
				"detection_rules": [
					{
						"can_contain_liquid": true,
						"stops_liquid_flowing_from_direction": ["east"]
					}
				]
			}
		}
	}
}

This example is taken from the behavior pack in the following world attached for convenience:

[media]

This world can be opened (in Minecraft Preview) for inspection or unzipped to access the code associated with such. Buttons are available in-world for quick reconstruction of each separate demo.

Linked issues

Attachments

Comments 1

We're tracking this issue at MCPE-34237, so I will resolve and link this report as a duplicate.

If you have new information to share, please leave a comment on the linked report. If not, add a vote to the report to show that you are affected.

If you haven't already, please make sure to search before creating a report to see if the issue has already been reported. See the Bug Tracker Guidelines for tips on searching for issues.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

Ciosciaa

(Unassigned)

Unconfirmed

Multiple

26.0.26 Preview

Retrieved