ConnectedTexturesMod

ConnectedTexturesMod

110M Downloads

Z-fighting when blockstate rotate "y":90 and "y":270

XiLaiTL opened this issue ยท 0 comments

commented

image
Using yuushya-townscape-2.2.0-1.21.0-neoforge.

mods: https://www.curseforge.com/minecraft/mc-mods/yuushya-townscape
item: yuushya:stairs_a_cherry_blindwall

blockstate file (Without the uvlock, it will happen, too.) :

{
  "variants": {
    "facing=east,half=bottom,shape=inner_left": {
      "model": "yuushya:template/stairs_inner_a_cherry_blindwall",
      "y": 270,
      "uvlock": true
    },
    "facing=east,half=bottom,shape=inner_right": {
      "model": "yuushya:template/stairs_inner_a_cherry_blindwall"
    },
    "facing=east,half=bottom,shape=outer_left": {
      "model": "yuushya:template/stairs_outer_a_cherry_blindwall",
      "y": 270,
      "uvlock": true
    },
    "facing=east,half=bottom,shape=outer_right": {
      "model": "yuushya:template/stairs_outer_a_cherry_blindwall"
    },
    "facing=east,half=bottom,shape=straight": {
      "model": "yuushya:template/stairs_a_cherry_blindwall"
    },
    "facing=east,half=top,shape=inner_left": {
      "model": "yuushya:template/stairs_inner_a_cherry_blindwall",
      "x": 180,
      "uvlock": true
    },
    "facing=east,half=top,shape=inner_right": {
      "model": "yuushya:template/stairs_inner_a_cherry_blindwall",
      "x": 180,
      "y": 90,
      "uvlock": true
    },
    "facing=east,half=top,shape=outer_left": {
      "model": "yuushya:template/stairs_outer_a_cherry_blindwall",
      "x": 180,
      "uvlock": true
    },
    "facing=east,half=top,shape=outer_right": {
      "model": "yuushya:template/stairs_outer_a_cherry_blindwall",
      "x": 180,
      "y": 90,
      "uvlock": true
    },
    "facing=east,half=top,shape=straight": {
      "model": "yuushya:template/stairs_a_cherry_blindwall",
      "x": 180,
      "uvlock": true
    },
    "facing=north,half=bottom,shape=inner_left": {
      "model": "yuushya:template/stairs_inner_a_cherry_blindwall",
      "y": 180,
      "uvlock": true
    },
    "facing=north,half=bottom,shape=inner_right": {
      "model": "yuushya:template/stairs_inner_a_cherry_blindwall",
      "y": 270,
      "uvlock": true
    },
    "facing=north,half=bottom,shape=outer_left": {
      "model": "yuushya:template/stairs_outer_a_cherry_blindwall",
      "y": 180,
      "uvlock": true
    },
    "facing=north,half=bottom,shape=outer_right": {
      "model": "yuushya:template/stairs_outer_a_cherry_blindwall",
      "y": 270,
      "uvlock": true
    },
    "facing=north,half=bottom,shape=straight": {
      "model": "yuushya:template/stairs_a_cherry_blindwall",
      "y": 270,
      "uvlock": true
    },
    "facing=north,half=top,shape=inner_left": {
      "model": "yuushya:template/stairs_inner_a_cherry_blindwall",
      "x": 180,
      "y": 270,
      "uvlock": true
    },
    "facing=north,half=top,shape=inner_right": {
      "model": "yuushya:template/stairs_inner_a_cherry_blindwall",
      "x": 180,
      "uvlock": true
    },
    "facing=north,half=top,shape=outer_left": {
      "model": "yuushya:template/stairs_outer_a_cherry_blindwall",
      "x": 180,
      "y": 270,
      "uvlock": true
    },
    "facing=north,half=top,shape=outer_right": {
      "model": "yuushya:template/stairs_outer_a_cherry_blindwall",
      "x": 180,
      "uvlock": true
    },
    "facing=north,half=top,shape=straight": {
      "model": "yuushya:template/stairs_a_cherry_blindwall",
      "x": 180,
      "y": 270,
      "uvlock": true
    },
    "facing=south,half=bottom,shape=inner_left": {
      "model": "yuushya:template/stairs_inner_a_cherry_blindwall"
    },
    "facing=south,half=bottom,shape=inner_right": {
      "model": "yuushya:template/stairs_inner_a_cherry_blindwall",
      "y": 90,
      "uvlock": true
    },
    "facing=south,half=bottom,shape=outer_left": {
      "model": "yuushya:template/stairs_outer_a_cherry_blindwall"
    },
    "facing=south,half=bottom,shape=outer_right": {
      "model": "yuushya:template/stairs_outer_a_cherry_blindwall",
      "y": 90,
      "uvlock": true
    },
    "facing=south,half=bottom,shape=straight": {
      "model": "yuushya:template/stairs_a_cherry_blindwall",
      "y": 90,
      "uvlock": true
    },
    "facing=south,half=top,shape=inner_left": {
      "model": "yuushya:template/stairs_inner_a_cherry_blindwall",
      "x": 180,
      "y": 90,
      "uvlock": true
    },
    "facing=south,half=top,shape=inner_right": {
      "model": "yuushya:template/stairs_inner_a_cherry_blindwall",
      "x": 180,
      "y": 180,
      "uvlock": true
    },
    "facing=south,half=top,shape=outer_left": {
      "model": "yuushya:template/stairs_outer_a_cherry_blindwall",
      "x": 180,
      "y": 90,
      "uvlock": true
    },
    "facing=south,half=top,shape=outer_right": {
      "model": "yuushya:template/stairs_outer_a_cherry_blindwall",
      "x": 180,
      "y": 180,
      "uvlock": true
    },
    "facing=south,half=top,shape=straight": {
      "model": "yuushya:template/stairs_a_cherry_blindwall",
      "x": 180,
      "y": 90,
      "uvlock": true
    },
    "facing=west,half=bottom,shape=inner_left": {
      "model": "yuushya:template/stairs_inner_a_cherry_blindwall",
      "y": 90,
      "uvlock": true
    },
    "facing=west,half=bottom,shape=inner_right": {
      "model": "yuushya:template/stairs_inner_a_cherry_blindwall",
      "y": 180,
      "uvlock": true
    },
    "facing=west,half=bottom,shape=outer_left": {
      "model": "yuushya:template/stairs_outer_a_cherry_blindwall",
      "y": 90,
      "uvlock": true
    },
    "facing=west,half=bottom,shape=outer_right": {
      "model": "yuushya:template/stairs_outer_a_cherry_blindwall",
      "y": 180,
      "uvlock": true
    },
    "facing=west,half=bottom,shape=straight": {
      "model": "yuushya:template/stairs_a_cherry_blindwall",
      "y": 180,
      "uvlock": true
    },
    "facing=west,half=top,shape=inner_left": {
      "model": "yuushya:template/stairs_inner_a_cherry_blindwall",
      "x": 180,
      "y": 180,
      "uvlock": true
    },
    "facing=west,half=top,shape=inner_right": {
      "model": "yuushya:template/stairs_inner_a_cherry_blindwall",
      "x": 180,
      "y": 270,
      "uvlock": true
    },
    "facing=west,half=top,shape=outer_left": {
      "model": "yuushya:template/stairs_outer_a_cherry_blindwall",
      "x": 180,
      "y": 180,
      "uvlock": true
    },
    "facing=west,half=top,shape=outer_right": {
      "model": "yuushya:template/stairs_outer_a_cherry_blindwall",
      "x": 180,
      "y": 270,
      "uvlock": true
    },
    "facing=west,half=top,shape=straight": {
      "model": "yuushya:template/stairs_a_cherry_blindwall",
      "x": 180,
      "y": 180,
      "uvlock": true
    }
  }
}

model file for "facing=south,half=bottom,shape=straight"

{
  "parent": "yuushya:template/stairs",
  "textures": {
    "all": "yuushya:block_/blindwall/cherry_blindwall",
    "top": "yuushya:block_/blindwall/cherry_blindwall",
    "sides": "yuushya:block_/blindwall/cherry_blindwall"
  }
}

model file of "yuushya:template/stairs"

{
	"credit": "Yuushya",
	"textures": {
		"particle": "#all",
		"all": "yuushya:block_/template"
	},
	"elements": [
		{
			"from": [0, 0, 0],
			"to": [16, 8, 16],
			"rotation": {"angle": 0, "axis": "y", "origin": [13, 8, 13]},
			"faces": {
				"north": {"uv": [0, 8, 16, 16], "texture": "#all"},
				"east": {"uv": [0, 8, 16, 16], "texture": "#all"},
				"south": {"uv": [0, 8, 16, 16], "texture": "#all"},
				"west": {"uv": [0, 8, 16, 16], "texture": "#all"},
				"up": {"uv": [0, 0, 16, 16], "texture": "#all"},
				"down": {"uv": [0, 0, 16, 16], "texture": "#all"}
			}
		},
		{
			"from": [8, 8, 0],
			"to": [16, 16, 16],
			"faces": {
				"north": {"uv": [0, 0, 8, 8], "texture": "#all"},
				"east": {"uv": [0, 0, 16, 8], "texture": "#all"},
				"south": {"uv": [8, 0, 16, 8], "texture": "#all"},
				"west": {"uv": [0, 0, 16, 8], "texture": "#all"},
				"up": {"uv": [8, 0, 16, 16], "texture": "#all"},
				"down": {"uv": [8, 0, 16, 16], "texture": "#all"}
			}
		}
	],
	"display": {
		"thirdperson_righthand": {
			"scale": [0.5, 0.5, 0.5]
		},
		"thirdperson_lefthand": {
			"scale": [0.5, 0.5, 0.5]
		},
		"firstperson_righthand": {
			"rotation": [0, 45, 0],
			"scale": [0.5, 0.5, 0.5]
		},
		"firstperson_lefthand": {
			"rotation": [0, 45, 0],
			"translation": [4, 0, 0],
			"scale": [0.5, 0.5, 0.5]
		},
		"ground": {
			"scale": [0.4, 0.4, 0.4]
		},
		"gui": {
			"rotation": [22.5, 135, 0],
			"translation": [0, -0.75, 0],
			"scale": [0.65, 0.65, 0.65]
		},
		"fixed": {
			"translation": [0, 0, 38],
			"scale": [2, 2, 2]
		}
	}
}

texture meta file

{
    "ctm":{
        "ctm_version": 1,
        "type":"CTM",
        "textures":[
            "yuushya:block_/blindwall/cherry_blindwall_ctm"
        ]
    }
}