Traben-0 / Entity_Model_Features

Other
90 stars 18 forks source link

Tridents Z-fighting #226

Open diskree opened 1 week ago

diskree commented 1 week ago

I've never worked with Optifine before, so please forgive me if I wrote in the wrong place.

I trying make custom entity texture for tridents with specific CustomModelData, but I can't even do it with all tridents. I do this in BlockBench using the CEM Template Loader plugin. Here my exported jem file:

{
    "credit": "Made with Blockbench",
    "textureSize": [32, 32],
    "texture": "trident.png",
    "models": [
        {
            "part": "body",
            "id": "body",
            "attach": false,
            "invertAxis": "xy",
            "translate": [0, -27, 0],
            "boxes": [
                {"coordinates": [-1.5, 25, -0.5, 3, 2, 1], "textureOffset": [4, 0]},
                {"coordinates": [-0.5, 0, -0.5, 1, 25, 1], "textureOffset": [0, 6]},
                {"coordinates": [-0.5, 27, -0.5, 1, 4, 1], "textureOffset": [0, 0]},
                {"coordinates": [1.5, 26, -0.5, 1, 4, 1], "textureOffset": [4, 3]},
                {"coordinates": [-2.5, 26, -0.5, 1, 4, 1], "textureOffset": [4, 3]}
            ]
        }
    ]
}

Texture is just a red square 32x32.

The tip of the trident creates Z-fighting. Moreover, it seems that the central part of the tip does not change at all. And here is screenshot:

javaw_dWj6aJoML2