Created and tested UVLLoader
Created and tested UVLLoader. Yes, it may not conform to code standarts, but this will be fixed later.
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"variants": {
|
||||
"normal": { "model": "UVLightmapJsonTest:uvlblock.uvl" }
|
||||
}
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1,86 @@
|
||||
{
|
||||
"textures": {
|
||||
"0": "blocks/obsidian",
|
||||
"1": "uvlightmapjsontest:blocks/BlockControllerLights"
|
||||
},
|
||||
"elements": [
|
||||
{
|
||||
"name": "LL",
|
||||
"from": [ 4.0, 0.0, 7.0 ],
|
||||
"to": [ 6.0, 16.0, 9.0 ],
|
||||
"faces": {
|
||||
"north": { "texture": "#0", "uv": [ 1.0, 0.0, 15.0, 16.0 ] },
|
||||
"east": { "texture": "#0", "uv": [ 1.0, 0.0, 15.0, 16.0 ] },
|
||||
"south": { "texture": "#0", "uv": [ 1.0, 0.0, 15.0, 16.0] },
|
||||
"west": { "texture": "#0", "uv": [ 1.0, 0.0, 15.0, 16.0 ] },
|
||||
"up": { "texture": "#0", "uv": [ 0.0, 0.0, 2.0, 2.0 ] },
|
||||
"down": { "texture": "#0", "uv": [ 0.0, 0.0, 2.0, 2.0 ] }
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "RL",
|
||||
"from": [ 10.0, 0.0, 7.0 ],
|
||||
"to": [ 12.0, 16.0, 9.0 ],
|
||||
"faces": {
|
||||
"north": { "texture": "#0", "uv": [ 1.0, 0.0, 15.0, 16.0 ] },
|
||||
"east": { "texture": "#0", "uv": [ 1.0, 0.0, 15.0, 16.0 ] },
|
||||
"south": { "texture": "#0", "uv": [ 1.0, 0.0, 15.0, 16.0 ] },
|
||||
"west": { "texture": "#0", "uv": [ 1.0, 0.0, 15.0, 16.0 ] },
|
||||
"up": { "texture": "#0", "uv": [ 0.0, 0.0, 2.0, 2.0 ] },
|
||||
"down": { "texture": "#0", "uv": [ 0.0, 0.0, 2.0, 2.0 ] }
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "B",
|
||||
"from": [ 6.0, 7.0, 7.0 ],
|
||||
"to": [ 10.0, 9.0, 9.0 ],
|
||||
"faces": {
|
||||
"north": { "texture": "#0", "uv": [ 0.0, 1.0, 16.0, 3.0 ] },
|
||||
"east": { "texture": "#0", "uv": [ 1.0, 1.0, 3.0, 3.0 ] },
|
||||
"south": { "texture": "#0", "uv": [ 0.0, 1.0, 16.0, 3.0 ] },
|
||||
"west": { "texture": "#0", "uv": [ 1.0, 1.0, 3.0, 3.0 ] },
|
||||
"up": { "texture": "#0", "uv": [ 0.0, 1.0, 16.0, 3.0 ] },
|
||||
"down": { "texture": "#0", "uv": [ 0.0, 1.0, 16.0, 3.0 ] }
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "LLO",
|
||||
"from": [ 4.0, 0.0, 7.0 ],
|
||||
"to": [ 6.0, 16.0, 9.0 ],
|
||||
"faces": {
|
||||
"north": { "texture": "#1", "uv": [ 2.0, 0.0, 4.0, 16.0 ], "uvlightmap": { "sky": 0.007, "block": 0.007 } },
|
||||
"east": { "texture": "#1", "uv": [ 5.0, 0.0, 7.0, 16.0 ], "uvlightmap": { "sky": 0.007, "block": 0.007 } },
|
||||
"south": { "texture": "#1", "uv": [ 8.0, 0.0, 10.0, 16.0 ], "uvlightmap": { "sky": 0.007, "block": 0.007 } },
|
||||
"west": { "texture": "#1", "uv": [ 11.0, 0.0, 13.0, 16.0 ], "uvlightmap": { "sky": 0.007, "block": 0.007 } },
|
||||
"up": { "texture": "#1", "uv": [ 6.0, 6.0, 8.0, 8.0 ], "uvlightmap": { "sky": 0.007, "block": 0.007 } },
|
||||
"down": { "texture": "#1", "uv": [ 8.0, 8.0, 10.0, 10.0 ], "uvlightmap": { "sky": 0.007, "block": 0.007 } }
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "RLO",
|
||||
"from": [ 10.0, 0.0, 7.0 ],
|
||||
"to": [ 12.0, 16.0, 9.0 ],
|
||||
"faces": {
|
||||
"north": { "texture": "#1", "uv": [ 3.0, 0.0, 5.0, 16.0 ], "uvlightmap": { "sky": 0.007, "block": 0.007 } },
|
||||
"east": { "texture": "#1", "uv": [ 5.0, 0.0, 7.0, 16.0 ], "uvlightmap": { "sky": 0.007, "block": 0.007 } },
|
||||
"south": { "texture": "#1", "uv": [ 7.0, 0.0, 9.0, 16.0 ], "uvlightmap": { "sky": 0.007, "block": 0.007 } },
|
||||
"west": { "texture": "#1", "uv": [ 10.0, 0.0, 12.0, 16.0 ], "uvlightmap": { "sky": 0.007, "block": 0.007 } },
|
||||
"up": { "texture": "#1", "uv": [ 6.0, 6.0, 8.0, 8.0 ], "uvlightmap": { "sky": 0.007, "block": 0.007 } },
|
||||
"down": { "texture": "#1", "uv": [ 7.0, 8.0, 9.0, 10.0 ], "uvlightmap": { "sky": 0.007, "block": 0.007 } }
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "BO",
|
||||
"from": [ 6.0, 7.0, 7.0 ],
|
||||
"to": [ 10.0, 9.0, 9.0 ],
|
||||
"faces": {
|
||||
"north": { "texture": "#1", "uv": [ 5.0, 6.0, 9.0, 8.0 ], "uvlightmap": { "sky": 0.007, "block": 0.007 } },
|
||||
"east": { "texture": "#1", "uv": [ 0.0, 0.0, 2.0, 2.0 ], "uvlightmap": { "sky": 0.007, "block": 0.007 } },
|
||||
"south": { "texture": "#1", "uv": [ 5.0, 7.0, 9.0, 9.0 ], "uvlightmap": { "sky": 0.007, "block": 0.007 } },
|
||||
"west": { "texture": "#1", "uv": [ 5.0, 3.0, 7.0, 5.0 ], "uvlightmap": { "sky": 0.007, "block": 0.007 } },
|
||||
"up": { "texture": "#1", "uv": [ 4.0, 10.0, 8.0, 12.0 ], "uvlightmap": { "sky": 0.007, "block": 0.007 } },
|
||||
"down": { "texture": "#1", "uv": [ 8.0, 8.0, 12.0, 10.0 ], "uvlightmap": { "sky": 0.007, "block": 0.007 } }
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"parent": "uvlightmapjsontest:block/uvlblock.uvl"
|
||||
}
|
||||
BIN
Binary file not shown.
|
After Width: | Height: | Size: 1.4 KiB |
+19
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"animation": {
|
||||
"frametime": 3,
|
||||
"frames": [
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5,
|
||||
6,
|
||||
7,
|
||||
8,
|
||||
9,
|
||||
10,
|
||||
11
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user