[Feature] Furniture API

This commit is contained in:
Frank 2023-06-10 23:35:39 +02:00
parent 6b87c96839
commit ad74c71c01
15 changed files with 1475 additions and 0 deletions

View file

@ -0,0 +1,162 @@
{
"__comment": "Designed by Paulevs with Cubik Studio - https://cubik.studio",
"parent": "block/block",
"textures": {
"particle": "#texture"
},
"elements": [
{
"__comment": "Box1",
"from": [ 4, 13, 5 ],
"to": [ 12, 15, 11 ],
"faces": {
"down": { "uv": [ 4, 5, 12, 11 ], "texture": "#texture" },
"up": { "uv": [ 4, 5, 12, 11 ], "texture": "#texture" },
"north": { "uv": [ 4, 1, 12, 3 ], "texture": "#texture" },
"south": { "uv": [ 4, 1, 12, 3 ], "texture": "#texture" },
"west": { "uv": [ 5, 1, 11, 3 ], "texture": "#texture" },
"east": { "uv": [ 5, 1, 11, 3 ], "texture": "#texture" }
}
},
{
"__comment": "Box1",
"from": [ 5, 13, 4 ],
"to": [ 11, 15, 5 ],
"faces": {
"down": { "uv": [ 5, 11, 11, 12 ], "texture": "#texture" },
"up": { "uv": [ 5, 4, 11, 5 ], "texture": "#texture" },
"north": { "uv": [ 5, 1, 11, 3 ], "texture": "#texture" },
"west": { "uv": [ 4, 1, 5, 3 ], "texture": "#texture" },
"east": { "uv": [ 11, 1, 12, 3 ], "texture": "#texture" }
}
},
{
"__comment": "Box1",
"from": [ 5, 13, 11 ],
"to": [ 11, 15, 12 ],
"faces": {
"down": { "uv": [ 5, 4, 11, 5 ], "texture": "#texture" },
"up": { "uv": [ 5, 11, 11, 12 ], "texture": "#texture" },
"south": { "uv": [ 5, 1, 11, 3 ], "texture": "#texture" },
"west": { "uv": [ 11, 1, 12, 3 ], "texture": "#texture" },
"east": { "uv": [ 4, 1, 5, 3 ], "texture": "#texture" }
}
},
{
"__comment": "Box1",
"from": [ 5, 15, 5 ],
"to": [ 11, 16, 11 ],
"faces": {
"up": { "uv": [ 5, 5, 11, 11 ], "texture": "#cloth" },
"north": { "uv": [ 5, 0, 11, 1 ], "texture": "#cloth" },
"south": { "uv": [ 5, 0, 11, 1 ], "texture": "#cloth" },
"west": { "uv": [ 5, 0, 11, 1 ], "texture": "#cloth" },
"east": { "uv": [ 5, 0, 11, 1 ], "texture": "#cloth" }
}
},
{
"__comment": "Box5",
"from": [ 5.5, 12, 5.5 ],
"to": [ 10.5, 13, 10.5 ],
"faces": {
"down": { "uv": [ 5.5, 5.5, 10.5, 10.5 ], "texture": "#texture" },
"north": { "uv": [ 5.5, 3, 10.5, 4 ], "texture": "#texture" },
"south": { "uv": [ 5.5, 3, 10.5, 4 ], "texture": "#texture" },
"west": { "uv": [ 5.5, 3, 10.5, 4 ], "texture": "#texture" },
"east": { "uv": [ 5.5, 3, 10.5, 4 ], "texture": "#texture" }
}
},
{
"__comment": "Box5",
"from": [ 5, 0, 5 ],
"to": [ 6, 13, 6 ],
"faces": {
"down": { "uv": [ 5, 10, 6, 11 ], "texture": "#texture", "cullface": "down" },
"north": { "uv": [ 1, 5, 14, 6 ], "texture": "#texture", "rotation": 90 },
"south": { "uv": [ 2, 9, 15, 10 ], "texture": "#texture", "rotation": 90 },
"west": { "uv": [ 1, 13, 14, 14 ], "texture": "#texture", "rotation": 90 },
"east": { "uv": [ 2, 9, 15, 10 ], "texture": "#texture", "rotation": 90 }
}
},
{
"__comment": "Box5",
"from": [ 5, 0, 10 ],
"to": [ 6, 13, 11 ],
"faces": {
"down": { "uv": [ 5, 5, 6, 6 ], "texture": "#texture", "cullface": "down" },
"north": { "uv": [ 3, 9, 16, 10 ], "texture": "#texture", "rotation": 90 },
"south": { "uv": [ 3, 13, 16, 14 ], "texture": "#texture", "rotation": 90 },
"west": { "uv": [ 3, 13, 16, 14 ], "texture": "#texture", "rotation": 90 },
"east": { "uv": [ 3, 1, 16, 2 ], "texture": "#texture", "rotation": 90 }
}
},
{
"__comment": "Box5",
"from": [ 10, 0, 10 ],
"to": [ 11, 13, 11 ],
"faces": {
"down": { "uv": [ 10, 5, 11, 6 ], "texture": "#texture", "cullface": "down" },
"north": { "uv": [ 3, 1, 16, 2 ], "texture": "#texture", "rotation": 90 },
"south": { "uv": [ 3, 5, 16, 6 ], "texture": "#texture", "rotation": 90 },
"west": { "uv": [ 3, 13, 16, 14 ], "texture": "#texture", "rotation": 90 },
"east": { "uv": [ 3, 9, 16, 10 ], "texture": "#texture", "rotation": 90 }
}
},
{
"__comment": "Box5",
"from": [ 10, 0, 5 ],
"to": [ 11, 13, 6 ],
"faces": {
"down": { "uv": [ 10, 10, 11, 11 ], "texture": "#texture", "cullface": "down" },
"north": { "uv": [ 3, 13, 16, 14 ], "texture": "#texture", "rotation": 90 },
"south": { "uv": [ 0, 9, 13, 10 ], "texture": "#texture", "rotation": 90 },
"west": { "uv": [ 3, 5, 16, 6 ], "texture": "#texture", "rotation": 90 },
"east": { "uv": [ 0, 1, 13, 2 ], "texture": "#texture", "rotation": 90 }
}
},
{
"__comment": "Box5",
"from": [ 10, 5, 6 ],
"to": [ 11, 6, 10 ],
"faces": {
"down": { "uv": [ 7, 9, 11, 10 ], "texture": "#texture", "rotation": 90 },
"up": { "uv": [ 3, 9, 7, 10 ], "texture": "#texture", "rotation": 90 },
"west": { "uv": [ 3, 5, 7, 6 ], "texture": "#texture" },
"east": { "uv": [ 3, 5, 7, 6 ], "texture": "#texture" }
}
},
{
"__comment": "Box5",
"from": [ 6, 7, 5 ],
"to": [ 10, 8, 6 ],
"faces": {
"down": { "uv": [ 6.5, 9, 10.5, 10 ], "texture": "#texture" },
"up": { "uv": [ 4, 9, 8, 10 ], "texture": "#texture" },
"north": { "uv": [ 2, 9, 6, 10 ], "texture": "#texture" },
"south": { "uv": [ 7, 9, 11, 10 ], "texture": "#texture" }
}
},
{
"__comment": "Box5",
"from": [ 6, 7, 10 ],
"to": [ 10, 8, 11 ],
"faces": {
"down": { "uv": [ 4, 5, 8, 6 ], "texture": "#texture" },
"up": { "uv": [ 6, 9, 10, 10 ], "texture": "#texture" },
"north": { "uv": [ 4, 9, 8, 10 ], "texture": "#texture" },
"south": { "uv": [ 5, 9, 9, 10 ], "texture": "#texture" }
}
},
{
"__comment": "Box5",
"from": [ 5, 5, 6 ],
"to": [ 6, 6, 10 ],
"faces": {
"down": { "uv": [ 7, 9, 11, 10 ], "texture": "#texture", "rotation": 90 },
"up": { "uv": [ 3, 9, 7, 10 ], "texture": "#texture", "rotation": 90 },
"west": { "uv": [ 3, 5, 7, 6 ], "texture": "#texture" },
"east": { "uv": [ 3, 5, 7, 6 ], "texture": "#texture" }
}
}
]
}

View file

@ -0,0 +1,200 @@
{
"__comment": "Designed by Paulevs with Cubik Studio - https://cubik.studio",
"parent": "block/block",
"textures": {
"particle": "#texture"
},
"elements": [
{
"__comment": "Box1",
"from": [ 3, 9, 3 ],
"to": [ 13, 10, 13 ],
"faces": {
"down": { "uv": [ 3, 3, 13, 13 ], "texture": "#texture" },
"up": { "uv": [ 3, 3, 13, 13 ], "texture": "#texture" },
"north": { "uv": [ 3, 6, 13, 7 ], "texture": "#texture" },
"south": { "uv": [ 3, 6, 13, 7 ], "texture": "#texture" },
"west": { "uv": [ 3, 6, 13, 7 ], "texture": "#texture" },
"east": { "uv": [ 3, 6, 13, 7 ], "texture": "#texture" }
}
},
{
"__comment": "Box1",
"from": [ 3, 0, 3 ],
"to": [ 5, 9, 5 ],
"faces": {
"down": { "uv": [ 3, 11, 5, 13 ], "texture": "#texture" },
"north": { "uv": [ 11, 7, 13, 16 ], "texture": "#texture" },
"south": { "uv": [ 3, 7, 5, 16 ], "texture": "#texture" },
"west": { "uv": [ 3, 7, 5, 16 ], "texture": "#texture" },
"east": { "uv": [ 11, 7, 13, 16 ], "texture": "#texture" }
}
},
{
"__comment": "Box1",
"from": [ 3, 16, 3 ],
"to": [ 5, 21, 5 ],
"faces": {
"up": { "uv": [ 3, 3, 5, 5 ], "texture": "#texture" },
"north": { "uv": [ 11, 11, 13, 16 ], "texture": "#texture" },
"west": { "uv": [ 3, 11, 5, 16 ], "texture": "#texture" },
"east": { "uv": [ 11, 11, 13, 16 ], "texture": "#texture" }
}
},
{
"__comment": "Box1",
"from": [ 11, 0, 3 ],
"to": [ 13, 9, 5 ],
"faces": {
"down": { "uv": [ 11, 11, 13, 13 ], "texture": "#texture" },
"north": { "uv": [ 3, 7, 5, 16 ], "texture": "#texture" },
"south": { "uv": [ 11, 7, 13, 16 ], "texture": "#texture" },
"west": { "uv": [ 3, 7, 5, 16 ], "texture": "#texture" },
"east": { "uv": [ 11, 7, 13, 16 ], "texture": "#texture" }
}
},
{
"__comment": "Box1",
"from": [ 11, 16, 3 ],
"to": [ 13, 21, 5 ],
"faces": {
"up": { "uv": [ 11, 3, 13, 5 ], "texture": "#texture" },
"north": { "uv": [ 3, 11, 5, 16 ], "texture": "#texture" },
"west": { "uv": [ 3, 11, 5, 16 ], "texture": "#texture" },
"east": { "uv": [ 11, 11, 13, 16 ], "texture": "#texture" }
}
},
{
"__comment": "Box1",
"from": [ 11, 10, 3 ],
"to": [ 13, 16, 5 ],
"faces": {
"north": { "uv": [ 3, 0, 5, 6 ], "texture": "#texture" },
"south": { "uv": [ 11, 0, 13, 6 ], "texture": "#texture" },
"west": { "uv": [ 3, 0, 5, 6 ], "texture": "#texture" },
"east": { "uv": [ 11, 0, 13, 6 ], "texture": "#texture" }
}
},
{
"__comment": "Box1",
"from": [ 3, 10, 3 ],
"to": [ 5, 16, 5 ],
"faces": {
"north": { "uv": [ 11, 0, 13, 6 ], "texture": "#texture" },
"south": { "uv": [ 3, 0, 5, 6 ], "texture": "#texture" },
"west": { "uv": [ 3, 0, 5, 6 ], "texture": "#texture" },
"east": { "uv": [ 11, 0, 13, 6 ], "texture": "#texture" }
}
},
{
"__comment": "Box1",
"from": [ 3, 0, 11 ],
"to": [ 5, 9, 13 ],
"faces": {
"down": { "uv": [ 3, 3, 5, 5 ], "texture": "#texture" },
"north": { "uv": [ 11, 7, 13, 16 ], "texture": "#texture" },
"south": { "uv": [ 3, 7, 5, 16 ], "texture": "#texture" },
"west": { "uv": [ 11, 7, 13, 16 ], "texture": "#texture" },
"east": { "uv": [ 3, 7, 5, 16 ], "texture": "#texture" }
}
},
{
"__comment": "Box1",
"from": [ 11, 0, 11 ],
"to": [ 13, 9, 13 ],
"faces": {
"down": { "uv": [ 11, 3, 13, 5 ], "texture": "#texture" },
"north": { "uv": [ 3, 7, 5, 16 ], "texture": "#texture" },
"south": { "uv": [ 11, 7, 13, 16 ], "texture": "#texture" },
"west": { "uv": [ 11, 7, 13, 16 ], "texture": "#texture" },
"east": { "uv": [ 3, 7, 5, 16 ], "texture": "#texture" }
}
},
{
"__comment": "Box1",
"from": [ 3, 14, 4 ],
"to": [ 13, 16, 5 ],
"faces": {
"down": { "uv": [ 3, 11, 13, 12 ], "texture": "#texture" },
"north": { "uv": [ 3, 0, 13, 2 ], "texture": "#texture" },
"south": { "uv": [ 3, 0, 13, 2 ], "texture": "#texture" }
}
},
{
"__comment": "Box1",
"from": [ 4, 21, 3 ],
"to": [ 12, 22, 5 ],
"faces": {
"down": { "uv": [ 4, 11, 12, 13 ], "texture": "#texture" },
"up": { "uv": [ 4, 3, 12, 5 ], "texture": "#texture" },
"north": { "uv": [ 4, 10, 12, 11 ], "texture": "#texture" },
"south": { "uv": [ 4, 10, 12, 11 ], "texture": "#texture" },
"west": { "uv": [ 3, 10, 5, 11 ], "texture": "#texture" },
"east": { "uv": [ 11, 10, 13, 11 ], "texture": "#texture" }
}
},
{
"__comment": "Box1",
"from": [ 3, 16, 4 ],
"to": [ 13, 21, 5 ],
"faces": {
"up": { "uv": [ 3, 4, 13, 5 ], "texture": "#texture" },
"north": { "uv": [ 3, 11, 13, 16 ], "texture": "#texture" },
"south": { "uv": [ 3, 11, 13, 16 ], "texture": "#texture" }
}
},
{
"__comment": "Box1",
"from": [ 4, 8, 4 ],
"to": [ 12, 9, 12 ],
"faces": {
"down": { "uv": [ 4, 4, 12, 12 ], "texture": "#texture" },
"north": { "uv": [ 4, 7, 12, 8 ], "texture": "#texture" },
"south": { "uv": [ 4, 7, 12, 8 ], "texture": "#texture" },
"west": { "uv": [ 4, 7, 12, 8 ], "texture": "#texture" },
"east": { "uv": [ 4, 7, 12, 8 ], "texture": "#texture" }
}
},
{
"__comment": "Box1",
"from": [ 5, 20, 3 ],
"to": [ 11, 21, 4 ],
"faces": {
"down": { "uv": [ 5, 12, 11, 13 ], "texture": "#texture" },
"north": { "uv": [ 5, 11, 11, 12 ], "texture": "#texture" }
}
},
{
"__comment": "Box1",
"from": [ 5, 14, 3 ],
"to": [ 11, 16, 4 ],
"faces": {
"down": { "uv": [ 5, 12, 11, 13 ], "texture": "#texture" },
"up": { "uv": [ 5, 3, 11, 4 ], "texture": "#texture" },
"north": { "uv": [ 5, 0, 11, 2 ], "texture": "#texture" }
}
},
{
"__comment": "Box1",
"from": [ 4, 4, 5 ],
"to": [ 5, 5, 11 ],
"faces": {
"down": { "uv": [ 4, 5, 5, 11 ], "texture": "#texture" },
"up": { "uv": [ 4, 5, 5, 11 ], "texture": "#texture" },
"west": { "uv": [ 5, 11, 11, 12 ], "texture": "#texture" },
"east": { "uv": [ 5, 11, 11, 12 ], "texture": "#texture" }
}
},
{
"__comment": "Box1",
"from": [ 11, 4, 5 ],
"to": [ 12, 5, 11 ],
"faces": {
"down": { "uv": [ 11, 5, 12, 11 ], "texture": "#texture" },
"up": { "uv": [ 11, 5, 12, 11 ], "texture": "#texture" },
"west": { "uv": [ 5, 11, 11, 12 ], "texture": "#texture" },
"east": { "uv": [ 5, 11, 11, 12 ], "texture": "#texture" }
}
}
]
}

View file

@ -0,0 +1,433 @@
{
"__comment": "Designed by Paulevs with Cubik Studio - https://cubik.studio",
"parent": "block/block",
"textures": {
"particle": "#texture",
"top": "#texture"
},
"elements": [
{
"__comment": "Box1",
"from": [
2,
8,
2
],
"to": [
14,
10,
14
],
"faces": {
"down": {
"uv": [
2,
2,
14,
14
],
"texture": "#top"
},
"up": {
"uv": [
2,
2,
14,
14
],
"texture": "#top"
},
"north": {
"uv": [
2,
6,
14,
8
],
"texture": "#texture"
},
"south": {
"uv": [
2,
6,
14,
8
],
"texture": "#texture"
},
"west": {
"uv": [
2,
6,
14,
8
],
"texture": "#texture"
},
"east": {
"uv": [
2,
6,
14,
8
],
"texture": "#texture"
}
}
},
{
"__comment": "Box1",
"from": [
3,
0,
3
],
"to": [
5,
8,
5
],
"faces": {
"down": {
"uv": [
3,
11,
5,
13
],
"texture": "#texture",
"cullface": "down"
},
"north": {
"uv": [
11,
8,
13,
16
],
"texture": "#texture"
},
"south": {
"uv": [
3,
8,
5,
16
],
"texture": "#texture"
},
"west": {
"uv": [
3,
8,
5,
16
],
"texture": "#texture"
},
"east": {
"uv": [
11,
8,
13,
16
],
"texture": "#texture"
}
}
},
{
"__comment": "Box1",
"from": [
11,
0,
3
],
"to": [
13,
8,
5
],
"faces": {
"down": {
"uv": [
11,
11,
13,
13
],
"texture": "#texture",
"cullface": "down"
},
"north": {
"uv": [
3,
8,
5,
16
],
"texture": "#texture"
},
"south": {
"uv": [
11,
8,
13,
16
],
"texture": "#texture"
},
"west": {
"uv": [
3,
8,
5,
16
],
"texture": "#texture"
},
"east": {
"uv": [
11,
8,
13,
16
],
"texture": "#texture"
}
}
},
{
"__comment": "Box1",
"from": [
11,
0,
11
],
"to": [
13,
8,
13
],
"faces": {
"down": {
"uv": [
11,
3,
13,
5
],
"texture": "#texture",
"cullface": "down"
},
"north": {
"uv": [
3,
8,
5,
16
],
"texture": "#texture"
},
"south": {
"uv": [
11,
8,
13,
16
],
"texture": "#texture"
},
"west": {
"uv": [
11,
8,
13,
16
],
"texture": "#texture"
},
"east": {
"uv": [
3,
8,
5,
16
],
"texture": "#texture"
}
}
},
{
"__comment": "Box1",
"from": [
3,
0,
11
],
"to": [
5,
8,
13
],
"faces": {
"down": {
"uv": [
3,
3,
5,
5
],
"texture": "#texture",
"cullface": "down"
},
"north": {
"uv": [
11,
8,
13,
16
],
"texture": "#texture"
},
"south": {
"uv": [
3,
8,
5,
16
],
"texture": "#texture"
},
"west": {
"uv": [
11,
8,
13,
16
],
"texture": "#texture"
},
"east": {
"uv": [
3,
8,
5,
16
],
"texture": "#texture"
}
}
},
{
"__comment": "Box6",
"from": [
5,
2,
4
],
"to": [
11,
3,
5
],
"faces": {
"down": {
"uv": [
2,
4,
3,
10
],
"texture": "#texture",
"rotation": 90
},
"up": {
"uv": [
2,
4,
3,
10
],
"texture": "#texture",
"rotation": 90
},
"north": {
"uv": [
2,
4,
3,
10
],
"texture": "#texture",
"rotation": 90
},
"south": {
"uv": [
2,
4,
3,
10
],
"texture": "#texture",
"rotation": 90
}
}
},
{
"__comment": "Box6",
"from": [
5,
2,
11
],
"to": [
11,
3,
12
],
"faces": {
"down": {
"uv": [
5,
4,
6,
10
],
"texture": "#texture",
"rotation": 90
},
"up": {
"uv": [
5,
4,
6,
10
],
"texture": "#texture",
"rotation": 90
},
"north": {
"uv": [
5,
4,
6,
10
],
"texture": "#texture",
"rotation": 90
},
"south": {
"uv": [
5,
4,
6,
10
],
"texture": "#texture",
"rotation": 90
}
}
}
]
}