The new minecraft:height_difference_filter_feature from Preview 26.30.27 scans from the dimension height bounds instead of from the input y-position. This makes this feature useless in some surface situations, as floating chunks of terrain may be concealing the local slope at the input position. Even worse, this feature will be totally useless in caves, as any validation above the attempted location will cause success.
Demonstration
The attached video demonstrates this issue. Both examples use the following height difference filter feature:
{
"format_version": "1.26.30",
"minecraft:height_difference_filter_feature": {
"description": {"identifier": "bug_filter:height_filter"},
"places_feature": "bug_filter:block",
"max_allowed_downward_height_diff": 2,
"search_radius": 2
}
}The example above yellow and red concrete shows a correct validation (pending the review of MCPE-238744). The blue and green concrete example shows incorrect validation. The height difference check for max_allowed_downward_height_diff should scan from the input position’s y-location (67 in the demo) downward. However, in the blue and green demo, the blocks being scanned are way in the air above the input position. This attempt should fail. Not shown is that the latter example would fail if any block of the cross in the air were removed.
Reproduction
This demo video and code are 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.
The following commands were used in the demonstration:
Above yellow and red concrete:
place feature bug_filter:height_filter -4 67 -4Above blue and green concrete:
place feature bug_filter:height_filter 4 67 -4
Thank you for helping us improve Minecraft! We saved your files: