Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-276731

Items which use entity models will not render another entity model if specified via item model component

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 24w45a
    • 24w37a
    • None
    • Community Consensus
    • Block states, Rendering
    • Normal
    • Platform

      The bug

      If, via commands, one item that renders as an entity has an item model specified that should have it render as a different entity, it will not render as the entity specified for the item model component, instead rendering the one associated with the base item's ID.

      How to reproduce

      1. /give @s chest[item_model="minecraft:stone"]
      2. /give @s shulker_box[item_model="minecraft:stone"]
      3. /give @s chest[item_model="minecraft:shulker_box"]
      4. /give @s shulker_box[item_model="minecraft:chest"]

      Expected results

      In order we'd get: a chest whose item form looks like stone, a shulker box whose item form looks like stone, a chest whose item form looks like a shulker box, and a shulker box whose item form looks like a chest.

      Actual results

      The first two are as expected. However, for the last two, the chest still looks like a chest and the shulker box still looks like a shulker box.

        1. image-2024-09-15-22-00-55-418.png
          image-2024-09-15-22-00-55-418.png
          1.56 MB
        2. 2024-09-15_17.12.15.png
          2024-09-15_17.12.15.png
          140 kB
        3. 2024-09-15_17.12.15_2.png
          2024-09-15_17.12.15_2.png
          140 kB
        4. 2024-09-15_17.12.14.png
          2024-09-15_17.12.14.png
          141 kB
        5. 2024-09-15_17.12.14_2.png
          2024-09-15_17.12.14_2.png
          141 kB

            boq [Mojang] Bartosz Bok
            Awesoman3000 Connor Steppie
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: