mojira.dev
MCPE-234585

Custom blocks anchored incorrectly in flower pots

Custom blocks using the minecraft:flower_pottable block component render incorrectly when inside Vanilla flower pots. Specifically, the anchoring position is set to the pot’s top center; it should be set to the dirt layer’s center.

Workaround possible
It’s possible to work around this issue by creating an offset custom model and attaching it via the minecraft:embedded_visual component, but this should not be necessary. The behavior described in this report should be considered a bug.

Demonstration

Below is a Vanilla flower set inside a Vanilla flower pot. Note that the base of the flower is aligned with the dirt layer.

Vanilla Flower.jpeg

From the same angle, here’s a custom block flower inside a Vanilla flower pot. Note that its base is aligned with the top of the pot instead of the dirt layer.

Custom Block.jpeg

In fact, all Vanilla pottable blocks align correctly with the dirt layer. Custom blocks should automatically do so, too. This issue exists whether or not the related minecraft:embedded_visual component is provided.

Reproduction

This bug can be reproduced by using the flower-typical cross model minecraft:geometry.cross alongside the flower pottable component. Here is an example block demonstrating such:

{
	"format_version": "1.26.0",
	"minecraft:block": {
		"description": {"identifier": "bug_pottability:basic_rendered_custom_block"},
		
		"components": {
			"minecraft:geometry": "minecraft:geometry.cross",
			"minecraft:material_instances": {
				"*": {
					"render_method": "alpha_test_single_sided",
					"texture": "dandelion",
					"face_dimming": false,
					"ambient_occlusion": false
				}
			},
			
			"minecraft:flower_pottable": {}
		}
	}
}

This example is taken from the behavior pack in the following world attached for convenience:

[media]

This world can be opened (in Minecraft Preview) for inspection or unzipped to access the code associated with such. Also included is a demonstration of the same behavior when the minecraft:embedded_visual component is used.

Attachments

Comments 0

No comments.

Ciosciaa

(Unassigned)

Unconfirmed

Multiple

26.0.26 Preview

Retrieved