mojira.dev
MCPE-240991

Liquid destruction misreported by scripting engine on some Vanilla blocks

Scripting has 2 APIs for reporting whether a block can be destroyed by liquid spread:

  • Block#canBeDestroyedByLiquidSpread()

  • BlockPermutation#canBeDestroyedByLiquidSpread()

In general, these APIs seem to work reliably well. But a subset of Vanilla blocks incorrectly report being immune to liquid destruction when they actually are susceptible to such:

  • Glow berries (all 3)

  • Pale hanging moss

  • Weeping vines

  • Twisting vines

There may be more; the test was not exhaustive.

Demonstration

The attached video demonstrates this issue. The “Report” command blocks have scripting emit a report on the liquid destructibility of the associated blocks. All reports shown indicate these block types should not be water destructible, but they all are.

Reproduction

This example is taken from the behavior pack in the attached world for convenience. This world can be opened (in Minecraft Preview) for inspection or unzipped to access the code associated with such. Ensure content logs are enabled with at least warn level to see the demo.

Attachments

Comments 3

Thank you for helping us improve Minecraft! We saved your files:

[media][media]

Interestingly, this set of blocks also seems to emit sounds and particles on liquid destruction whereas most (all?) other blocks don’t.

This issue has been reviewed by our team.

Please add new, relevant information if it helps us understand or reproduce the issue. To show that you’re affected, use the vote feature rather than commenting.

If a fix is implemented, it will be listed in our official changelogs.

For major outages or urgent assistance, visit the Minecraft Help Center.

Ciosciaa

(Unassigned)

1688216

Confirmed

Multiple

26.50.20 Preview

Retrieved