Exclude default UVs for Minecraft model faces

Post ideas to make Cubik Studio even better.
Post Reply

Exclude default UVs for Minecraft model faces

Post by ChloeDawn » 26 May 2019, 13:25

If the UVs are the default for a face in a Minecraft model (relative to world coordinates), they could be excluded from the export, as the game infers these when the models are baked, and therefore explicit declaration in the JSON is not necessary. For example, see vanilla's cube.json:

Code: Select all

{
    "parent": "block/block",
    "elements": [
        {   "from": [ 0, 0, 0 ],
            "to": [ 16, 16, 16 ],
            "faces": {
                "down":  { "texture": "#down", "cullface": "down" },
                "up":    { "texture": "#up", "cullface": "up" },
                "north": { "texture": "#north", "cullface": "north" },
                "south": { "texture": "#south", "cullface": "south" },
                "west":  { "texture": "#west", "cullface": "west" },
                "east":  { "texture": "#east", "cullface": "east" }
            }
        }
    ]
}
x
User avatar
ChloeDawn
Supporter
Posts: 2
Joined: 27 Nov 2016, 01:53

Return to “Suggestions”