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

Missing texture when eating items with certain template models

XMLWordPrintable

    • Icon: Bug 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.

        1. 2024-09-15_18.20.28.png
          2024-09-15_18.20.28.png
          240 kB
        2. 2024-09-15_18.20.42.png
          2024-09-15_18.20.42.png
          363 kB
        3. 2024-09-15_18.20.43.png
          2024-09-15_18.20.43.png
          363 kB
        4. 2024-09-15_18.20.44.png
          2024-09-15_18.20.44.png
          362 kB
        5. 2024-09-15_18.20.45.png
          2024-09-15_18.20.45.png
          356 kB
        6. 2024-09-15_18.21.08.png
          2024-09-15_18.21.08.png
          404 kB
        7. 2024-09-15_18.22.22.png
          2024-09-15_18.22.22.png
          333 kB
        8. 2024-09-15_18.22.31.png
          2024-09-15_18.22.31.png
          343 kB
        9. 2024-09-15_19.11.39.png
          2024-09-15_19.11.39.png
          306 kB
        10. 2024-09-15_19.11.43.png
          2024-09-15_19.11.43.png
          245 kB
        11. fix-missing-particle-textures-24w37a-v1.0.zip
          3 kB
        12. image-2024-09-15-21-53-54-595.png
          image-2024-09-15-21-53-54-595.png
          1.34 MB

            Unassigned Unassigned
            Awesoman3000 Connor Steppie
            Votes:
            3 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: