mojira.dev
MC-84774

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.

Linked issues

Attachments

Comments 6

Is any moderator able to confirm this?

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.

Bentroen

Erik Broes

Confirmed

JSON, NBT, UV, acacia, alignment, birch, blockstate, change, cobblestone, direction, facing, fence, gate, jungle, lines, model, move, oak, resource, south, spruce, tag, texture, uvlock, wall

Minecraft 1.8.8, Minecraft 15w31c, Minecraft 15w33a, Minecraft 15w33b, Minecraft 15w34a, ..., Minecraft 15w37a, Minecraft 15w39c, Minecraft 15w40a, Minecraft 15w40b, Minecraft 15w43c

Minecraft 15w44b

Retrieved