mojira.dev
MCPE-242117

Snap-to-surface feature “random_horizontal” target name incorrect

Snap-to-surface features require a surface property. This property’s value is an enumeration. Values supported are ceiling, floor, random_horizontal, and wall. The 3rd, random_horizontal, is poorly named. The name implies a random lateral surface is attempted. This is not the case; instead, one of ceiling or floor is selected. This value should be renamed to random_vertical.

Demonstration

The attached video demonstrate this issue. A command is run to place a snap-to-surface feature that itself places glowstone. The following is the entire code of the snap-to-surface feature in question:

{
	"format_version": "1.26.50",
	"minecraft:snap_to_surface_feature": {
		"description": {"identifier": "bug_features:snap_to_surface_feature"},
		
		"feature_to_snap": "bug_features:single_block_feature",
		"surface": "random_horizontal", "search_range": 32
	}
}

The video shows that the glowstone is only ever placed above or below the player, not on any wall sides.

Reproduction

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

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