mojira.dev
MC-278325

Item particles do not react to dynamic model changes

When an items model is dynamically changed via the item model definition, the particles do not respect this change and use the default model state for the particle texture.

 

(assets/minecraft/items/cooked_beef.json)
{
  "model": {
    "type": "minecraft:condition",
    "property": "minecraft:using_item",
    "on_false": {
      "type": "minecraft:model",
      "model": "minecraft:item/cooked_beef"
    },    "on_true": {
      "type": "minecraft:model",
      "model": "minecraft:item/cooked_beef_eat"
    }
  }
}

In this case, the model for cooked_beef is swapped to one with a red particle texture (minecraft:item/cooked_beef_eat) when using the item. This shows correctly in the gui and hand, but the eating particles instead use the minecraft:item/cooked_beef model instead of the _eat one as I would expect.

 

I've attached an example resourcepack that replicates this issue. With the resourcepack active, do the following:

  • Give yourself a cooked_beef and start eating it.

  • Notice how the particles use the normal beef texture instead of the red one from the minecraft:item/cooked_beef_eat model.

Attachments

Comments 2

This is because the item particles take a copy of the item data, and that copy isn't being used as being used; use duration, being cast, and a few other options are not saved to item/particle data.

Thank you for your report!
After consideration, the issue is being closed as Invalid.

You have posted a feature request or a suggestion. This site is for bug reports only.
For suggestions, please visit The official Minecraft feedback site or visit the Minecraft Feedback Discord server.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

Enchanted_Games

(Unassigned)

Confirmed

(Unassigned)

item-model

24w46a

Retrieved