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

Tripwire model is prone to z-fighting with custom textures

XMLWordPrintable

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

      The bug

      The models for tripwire contains planes which coincide. If a custom texture is applied to tripwire using a resource pack, this can result in z-fighting, which is undesirable.

      How to reproduce

      A debug texture pack is attached to this ticket which changes tripwire's texture to a debug texture.

      1. Create a plus shape by placing five tripwire
      2. Look closely at the very center of this cross

      Expected results

      There would not be any z-fighting visible.

      Actual results

      There is.

      How to fix

      There are two fixes attached to this resource pack - a "discreet fix" and a "pixel consistent fix". See MC-262600 for a description of each fix.

      To fix this issue, the following model files will need to be deleted from the vanilla assets/minecraft/models/block directory:

      • tripwire_n.json
      • tripwire_ne.json
      • tripwire_ns.json
      • tripwire_nse.json
      • tripwire_nsew.json
      • tripwire_attached_n.json
      • tripwire_attached_ne.json
      • tripwire_attached_ns.json
      • tripwire_attached_nse.json
      • tripwire_attached_nsew.json

      The model files included in one of the two resource packs should then be placed into the assets/minecraft/models/block directory, and the tripwire.json in the resource pack's assets/minecraft/blockstates directory should replace Minecraft's current tripwire.json in its assets/minecraft/blockstates directory.

      I give Mojang my full permission, and strong encouragement, to use the assets of whichever of the two fixes it desires in vanilla Minecraft.

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

              Created:
              Updated:
              CHK: