mojira.dev
MCPE-242130

Search features misbehave when bound minimums are greater than corresponding bound maximums

Search features use min and max tuples to configure the search bounds. When min values are greater than their corresponding max values, search features behave in strange ways.

Either the corresponding values should be normalized (with or without a warning) or the feature should fail to load.

Demonstration

The attached video demonstrates this issue. The incorrect attempt uses "min": [7, 7, 7], "max": [0, 0, 0] while the correct attempt uses "min": [0, 0, 0], "max": [7, 7, 7]. In the appropriate case, the search zone is supposed to form an 8-size cube. As seen, the incorrect attempt extends in a line.

Reproduction

The demo video 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.

Attachments

Comments 1

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

[media][media]

Ciosciaa

(Unassigned)

Unconfirmed

Multiple

26.50.27 Preview

Retrieved