The minecraft:placement_filter allowed_faces values do not rotate to accommodate the minecraft:transformation component’s rotation. This causes inconsistencies with the transformation component’s behavior elsewhere and leads to (sometimes tremendously) inflated file size.
Demonstration
The attached screenshot shows the bug at play. Note that the glowstone face is defined as the east material instance in the material instances declaration but has been rotated to face north in the image.
In game, the custom block can only attach to the east side of the dirt. However, its configuration is as follows:
"minecraft:transformation": {"rotation": [0, 90, 0]},
"minecraft:placement_filter": {
"conditions": [
{
"block_filter": ["minecraft:dirt"],
"allowed_faces": ["east"]
}
]
}With this transformation definition, the block should only have survivability on the north face.
Reproduction
This demo screenshot 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.
Thank you for helping us improve Minecraft! We saved your files: