mojira.dev
MCPE-242119

World generation biome queries not usable outside conditional list features

World generation contexts support 6 queries across the domain. 3 of them concern biomes:

  • query.has_biome_tag

  • query.has_all_biome_tags

  • query.has_any_biome_tags

These 3 queries are not usable anywhere other than conditional list features.

Demonstration

The attached video demonstrate this issue. Alternating are attempts at placing the following 2 feature definitions:

{
	"format_version": "1.26.50",
	"minecraft:conditional_list": {
		"description": {"identifier": "bug_features:conditional_list_feature"},
		
		"conditional_features": [
			{
				"condition": "query.has_all_biome_tags('ocean')",
				"places_feature": "bug_features:single_block_feature"
			}
		],
		"early_out_scheme": "condition_success"
	}
}
{
	"format_version": "1.26.50",
	"minecraft:scatter_feature": {
		"description": {"identifier": "bug_features:scatter_feature"},
		
		"places_feature": "bug_features:single_block_feature",
		"distribution": {
			"iterations": "query.has_all_biome_tags('ocean')",
			"x": 0, "z": 0, "y": 0
		}
	}
}

Both of these merely gate placement of a glowstone block (the single block feature) by the Molang query.has_all_biome_tags('ocean’). In the demo, this only works when above an ocean with the conditional list feature. It should also work with the scatter feature (or any other world generation context).

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