-
Bug
-
Resolution: Won't Fix
-
None
-
24w37a, 24w38a
-
None
-
Community Consensus
-
Commands, Particles, Textures and models
-
Low
-
Platform
The bug
If, through components, an edible item is given one of several template models, missing texture particles will be produced when it is eaten.
This is an issue since the missing texture should never be visible in vanilla unless a broken resource pack is applied.
This is very, very easy to fix.
How to reproduce
Use one of the following commands, and eat the resulting (invisible) item.
/give @s cookie[item_model="minecraft:generated"]
/give @s cookie[item_model="minecraft:handheld"]
/give @s cookie[item_model="minecraft:handheld_rod"]
/give @s cookie[item_model="minecraft:handheld_mace"]
/give @s cookie[item_model="minecraft:template_bed"]
/give @s cookie[item_model="minecraft:template_shulker_box"]
Expected results
Either no particles at all, or particles that didn't use the missing texture.
Actual results
We see the missing texture.
How to fix
The six model files mentioned above simply don't specify a particle texture, so we simply add three lines to each affected model to specify this.
"handheld", "handheld_rod" and "handheld_mace" all point to "generated", so only "generated" needs to have a particle specified as this particle specification will carry over to all three models.
I've attached a resource pack that fixes this to this ticket - Mojang have my full permission to use this to fix this issue and have all the rights to the included assets.
I've introduced a dedicated "placeholder" texture graphic which "generated" points to in this resource pack, which should cause light blue particles to be produced instead of the unwanted missing texture particles.
For template_bed and template_shulker_box, we simply point to the oak planks texture and shulker box textures respectively. All of the models that reference these two will overwrite the particle texture with their own anyway.
This resource pack also fixes MC-270529 and MC-276725 using much the same methods.
- relates to
-
MC-276725 Missing texture when eating an item with the air model
- Open
-
MC-206684 Spyglass particles have no associated texture
- Resolved
-
MC-270529 Air's model does not define a particle texture, causing issues
- Resolved
-
MC-276671 Missing model when giving an item with an invalid model
- Resolved
-
MC-276673 Missing texture when giving an item with an invalid tooltip style
- Resolved
-
MC-276768 Missing texture when throwing eggs with the air model
- Resolved
- testing discovered
-
MC-276733 Inconsistency: Bed items produce wool particles, but bed blocks produce planks particles
- Open