All display entities with blocks (in either block displays or item displays)/custom models (in item display entities) when not precisely aligned with the block grid or otherwise scaled, even in whole numbers, have inconsistent pixel sizes which causes mismatching grids and misalignments.
How to reproduce:
Important: the issue may be hard to see without looking closely, i recommend using a spyglass.
Method 1: block display/item display with a block
Use the attached resource pack:
Summon an item display entity or block display entity using either of the following commands:
/summon item_display 0 64 0 {item:{id:"glowstone"}}
/summon block_display -0.0 64.5 -0.0 {block_state:{Name:"glowstone"}}
Place a block directly adjacent to it.
Look closely where the real block and display entity meet.
(Optional) Teleport the entity up or down by 0.5 blocks.
5a. Look closely where the entity and real block meet as you teleport the entity.
Method 2: item display with custom models
Use the attached resource pack like above.
Summon an item display using the following command:
/summon item_display 0 64 0 {item:{id:"stick",components:{"minecraft:custom_model_data":1}}}
This creates a 48x48x48 cube.
Build a pillar of glowstone beside the model, and place slabs of any type below the model.
Look closely where the model and blocks meet, and where the model and slabs meet.
Replace the item with the second model using the following command:
/item replace entity @n[type=minecraft:item_display] container.0 with stick[minecraft:custom_model_data=2]
This creates 3 16x16x16 cubes in a pillar.
Place blocks adjacent to the pillar.
Look closely where the model and blocks meet.
Replace the item with the third model using the following command:
/item replace entity @n[type=minecraft:item_display] container.0 with stick[minecraft:custom_model_data=3]
This creates 3 16x16x16 cubes with the center cube offset by 4 pixels in two directions.
Look closely where the cubes in the model meet.
(Optional) Teleport the display entity up or down by 0.5 blocks.
10a. Look closely at how the alignment changes.
The issue does not require the resource pack but it can make it more obvious.
Observed & expected results:
There are visible misalignments in textures' grids between display entities and real blocks when the entity is not perfectly aligned with the grid, and even between individual parts of custom models. It is expected that block/item display entities would look identical to real blocks when placed next to them even when not in line with the block grid, and that custom models would be aligned regardless of where the elements of the model are placed.
Notes:
Attached are screenshots of my following the steps in the second method, as well as highlighted screenshots showcasing where the misalignments occur. This might not be noticeable to most players but for those of us who try to be precise with custom experiences, it's very discouraging to have all that work go to waste due to simple misalignments in textures.
Attachments
Comments 10
Please provide all commands needed to reproduce this issue.
Ideally I should be able to go from the first step to the last step just by copying the exact actions, including the commands used
i have updated the steps to recreate to include the commands necessary to do so, i can also provide specific tp coordinates to better illustrate where the problems are if need be but they should be obvious just by looking closely
I cannot reproduce this. Looking at your screenshots, it doesn't look like there is anything wrong with the texture alignment. Could you upload some more screenshots where you clearly mark the spots where the problem occurs?
i've added highlighted versions of the three screenshots and a note recommending the use of a spyglass when attempting to reproduce this (also fixed some broken formatting)
i've now also added another optional step to method 1 to make seeing the inconsistencies easier via scaling the display entity up.
I am reluctant to confirm this report considering the robustness of the description. Ideally, reports should be as descriptive yet clear and straight to the point as they can reasonably be. Trying the first method you listed to confirm the report, I did not notice any unusual misalignment.
I would urge you to rewrite the description to be far more clear to understand and follow, so that this report can either be confirmed, or closed. Any unnecessary context should be left out in favor of the core issue. Please refer to the issue template on the mojira guide: https://help.minecraft.net/hc/en-us/articles/4408887473421-Mojang-Bug-Tracker-Guidelines-and-FAQ#h_01FF6B26Q7A5BTZT7RGCBX9WC4
I've rewritten the report as best as i could, removing excess context, commands, and optional steps. Hopefully this is succinct enough despite the 2 methods, i felt i needed to keep the second method because it's the one i used in the reproduction i added screenshots of, and the custom models in the resource pack would go to waste.
edit: i've reworded certain parts as i've discovered the issue oddly does not occur when 16x16 cubes- either blocks or custom models- are aligned perfectly with the block grid. my original steps could have lead to the issue not appearing due to misguided alignment choices in the commands.
Thank you for your report!
After consideration, the issue is being closed as Won't Fix.
Please note that this is not the same as Working as Intended, as this bug report correctly describes behavior in the game that might not be the intended or desirable behavior, but it will not be fixed right now. Sometimes, this is because the issue reported is minor and/or impossible to change without large architectural changes to the code base.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
i have found this bug affects all entities, not just display entities, looking closely at paintings reveals inconsistent pixel aspect ratios causing misaligned grids