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

Fence item texture mapping is wrong

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.19.4, 1.20 Pre-release 1
    • Confirmed
    • Textures and models

      The bug

      The way in which textures are applied to fences in item form is not reflective of how the texture is applied to placed fences.

      How to reproduce

      A resource pack is attached to this ticket which changes the oak planks texture so that the outer edge is replaced with blue.

      1. Download and apply the attached resource pack oak-mapping-test-1.20pre1-v1.0.zip
      2. Obtain an oak fence
      3. Inspect it as an item
      4. Place it
      5. Inspect it as a block

      Expected results

      As the horizontal edges of a single fence post do not have any blue on them when placed, this would be the case for the item model as well.

      Actual results

      It is not the case - the left of one of the posts and right of the other have blue pixels running from the top to the bottom.

      How to fix

      A resource pack that fixes this issue entirely is attached. It builds upon an earlier fix to MC-182716, so this fixes two issues with the fence item model in one go.

      To fix this issue in vanilla Minecraft, replace the "fence_inventory.json" model file currently used in vanilla with the one attached. Mojang has my full permission (and strong encouragement) to use this model to fix this issue.

        1. 2023-05-12_22.58.44.png
          2023-05-12_22.58.44.png
          140 kB
        2. 2023-05-12_22.59.02.png
          2023-05-12_22.59.02.png
          142 kB
        3. 2023-05-12_23.16.14.png
          2023-05-12_23.16.14.png
          85 kB
        4. fence_inventory.json
          2 kB
        5. fence-item-fix-1.20pre1-v1.0.zip
          1 kB
        6. oak-mapping-test-1.20pre1-v1.0.zip
          1 kB

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

              Created:
              Updated:
              CHK: