mojira.dev
MCPE-242132

Feature conditions do not reliably resolve through search feature buffers

Search features provide a temporary buffer for their sub-feature to write to until search constraints are met. Not all child features’ conditions properly consult this buffer. Single-block enforce_placement_rules/enforce_survivability_rules is known not to consult the buffer, while may_attach_to/may_replace seemingly do consult such. It is unknown what all conditions across the totality of feature types fail to consult the buffer.

Demonstration

The attached video demonstrates this issue. A composite feature that would typically place a grass block and a dandelion above it is created with an aggregate feature. The dandelion single-block feature uses "enforce_placement_rules": true and "enforce_survivability_rules": true. This works when running just the aggregate feature, but it fails silently when wrapping such in a search feature. Note the missing dandelion in the search feature-targeting /place attempt. The single-block feature is seemingly only consulting the world for placement/survivability rules checks instead of also consulting the buffer.

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