Cobblestone wall fence gate facing south has different texture mapping (uvlock tag issue)
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:
"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.
Environment
Windows 8.1
Java 8u25
Linked Issues
Created Issue:
Cobblestone wall fence gate facing south has different texture mapping (uvlock tag issue)
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.
Environment
Windows 8.1
Java 8u25
relates to
is duplicated by
Affects fences and fence gates as well. Probably also related to the fix of MC-84774, since it caused a directional texture change in the fence gate when attached to a cobblestone wall. Since the fix for it involved changing the uvlock for all states (not only for the wall ones), it might be related.






Is any moderator able to confirm this?
Confirmed.
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.
Mods, this is fixed as of 15w44a. I think Grum forgot to change the resolution
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?
Reopened. Please create a new ticket and reference this ticket in the description. I don't understand Grum's intentions for when textures are supposed to move and when they are not supposed to move 100% so it will be up to him to decide.