mojira.dev
MC-276725

Missing texture when eating an item with the air model

The bug

If an item which can be eaten is given the model of air via commands, the particles produced upon eating it will be that of the missing texture.

The missing texture should only appear if there is an issue with the currently active resource pack, so the fact that it can arise here without the need of any resource packs is a problem.

How to reproduce

  1. /give @s cookie[item_model="minecraft:air"]
  2. Bon appetit

Expected results

Eating this would either produce no particles at all, or produce particles not associated with the missing texture.

Actual results

Eating this produces particles from the missing texture.

How to fix

A resource pack that fixes this issue entirely is attached to this ticket. I give Mojang full permission to use any assets from this resource pack to fix this issue if such permission is required. This pack also fixes MC-270529, which arises for much the same reason.

Related issues

Attachments

Comments

migrated
[media][media][media][media]

muzikbike

(Unassigned)

Confirmed

Platform

Low

Commands, Items, Textures and models

24w37a, 24w38a, 24w45a, 1.21.4

Retrieved