mojira.dev
MCPE-201813

Water still flows even when flowing block is deleted by script

In the scripting API I’ve tried setting water to air to prevent it from spreading into a land claim, yet it still continues flowing even after being removed.

Attachments

Comments 3

The water is only being set to air along the sides of the claim

Observed Result:
Water continues to flow outwards after being set to air.

Expected Result:

Water stops spreading after being removed.

Please attach a sample addon or world save that we can use to reproduce the issue.

The underlying issue may be that the water blocks create a pending tick to place water in neighboring blocks in the same tick in which they are placed, and when you replace the water it does not delete the pending tick that is scheduled for the neighboring blocks.

While waiting for Mojang to address this issue, you may be able to work around it by setting water to air in a 2-block wide strip instead of a 1-block wide strip. Or, it may require something more elaborate like replacing one row with air and the next with barrier blocks.

Noah Davis

(Unassigned)

Unconfirmed

Windows

Windows 11

1.21.71 Hotfix

Retrieved