When fence gates are attached to cobblestone walls, their models are moved down a little bit. However, the texture is only updated when the fence gate is facing south (take a look at the images 1-4). Let me show you the file fence_gate.json
, stored inside assets/minecraft/blockstates
:
fence_gate.json
"facing=south,in_wall=true,open=false": { "model": "oak_wall_gate_closed" },
"facing=west,in_wall=true,open=false": { "model": "oak_wall_gate_closed", "y": 90, "uvlock": true },
"facing=north,in_wall=true,open=false": { "model": "oak_wall_gate_closed", "y": 180, "uvlock": true },
"facing=east,in_wall=true,open=false": { "model": "oak_wall_gate_closed", "y": 270, "uvlock": true },
"facing=south,in_wall=true,open=true": { "model": "oak_wall_gate_open" },
"facing=west,in_wall=true,open=true": { "model": "oak_wall_gate_open", "y": 90, "uvlock": true },
"facing=north,in_wall=true,open=true": { "model": "oak_wall_gate_open", "y": 180, "uvlock": true },
"facing=east,in_wall=true,open=true": { "model": "oak_wall_gate_open", "y": 270, "uvlock": true }
As you can see, since south is the default rotation, it doesn't have the uvlock
tag set to true
. This means it does update the texture UV mapping when the block model is moved, differently from the others, where the texture remains in the same place. If you look at a normal fence gate and a wall one, you can see the lines are aligned, except on south rotation, where they are moved together (see image 5).
The solution to that would be completely removing the uvlock
tag for the in_wall=true
states. It would make the behavior for the non-south ones a little bit different, but it's necessary in order for the bug to be fixed.
I did a resource pack removing the tag and no problems were created by it (see image 6). If you want, you can download and check it here.
Linked issues
is duplicated by 1
Attachments
Comments 6
For next snapshot uvlock is on for all of them. I need to eventually patch uvlock that it takes in account the texture not being at the same place as the cube.
Well, I don't know if this should be closed rather than resolved. As said by Grum above, he still needs to "eventually patch uvlock", which means the process of fixing this issue completely is not done yet. Also, since the texture mapping doesn't follow the model anymore, the fence gate texture changes when it gets open or closed. Should I create a new ticket for this?
Is any moderator able to confirm this?