mojira.dev
MCPE-235789

Voxel shape box validation incorrect

Loading validation of voxel shape boxes are too strict. Boxes are allowed to extend ~30 model units in negative directions but only ~14 model units in positive directions.

Demonstration

The following voxel shape definition box is allowed: {"min": [-29.99, -29.99, -29.99], "max": [0.01, 0.01, 0.01]}. This extends 30 model units in the negative directions outside the block space.

However, this box is disallowed: {"min": [0.01, 0.01, 0.01], "max": [30.01, 30.01, 30.01]}. This box has the same size but only extends 14.01 units outside the block space.

The following content log errors include the validation failure:

Validation Demo.png

Reproduction

These examples are 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. Also included are a valid near-limit definition for the positive directions and an invalid near-limit definition for the negative directions.

Attachments

Comments 0

No comments.

Ciosciaa

(Unassigned)

1558242

Confirmed

Multiple

26.10.21 Preview

Retrieved