Skip to content

Commit

Permalink
fix: AnimModel (8)
Browse files Browse the repository at this point in the history
  • Loading branch information
MegumiKasuga committed Dec 2, 2024
1 parent b9671d2 commit f2f712e
Show file tree
Hide file tree
Showing 4 changed files with 219 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"variants": {
"facing=north": {
"model": "kasuga_lib:block/test/test_model_complicate"
"model": "kasuga_lib:block/test/c70"
},
"facing=south": {
"model": "kasuga_lib:block/test/test_model_complicate",
"model": "kasuga_lib:block/test/c70",
"y": 180
},
"facing=east": {
"model": "kasuga_lib:block/test/test_model_complicate",
"model": "kasuga_lib:block/test/c70",
"y": 270
},
"facing=west": {
"model": "kasuga_lib:block/test/test_model_complicate",
"model": "kasuga_lib:block/test/c70",
"y": 90
}
},
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,208 @@
{
"format_version": "1.12.0",
"minecraft:geometry": [
{
"description": {
"identifier": "geometry.unknown",
"texture_width": 128,
"texture_height": 128,
"visible_bounds_width": 5,
"visible_bounds_height": 3,
"visible_bounds_offset": [0, 0.5, 0]
},
"bones": [
{
"name": "bone2",
"pivot": [-5.996, 2.996, 0],
"rotation": [0, 90, 0],
"cubes": [
{
"origin": [-4.992, -8.004, -17.82],
"size": [2, 31.928, 47.592],
"uv": {
"north": {"uv": [60, 14], "uv_size": [2, 32]},
"east": {"uv": [0, 0], "uv_size": [48, 32]},
"south": {"uv": [60, 63], "uv_size": [2, 32]},
"west": {"uv": [0, 32], "uv_size": [48, 32]},
"up": {"uv": [62, 14], "uv_size": [2, 48]},
"down": {"uv": [62, 110], "uv_size": [2, -48]}
}
},
{
"origin": [-3.992, -8.004, -19.43],
"size": [3, 29.928, 2.592],
"uv": {
"north": {"uv": [54, 14], "uv_size": [3, 30]},
"east": {"uv": [57, 14], "uv_size": [3, 30]},
"south": {"uv": [64, 28], "uv_size": [3, 30]},
"west": {"uv": [64, 58], "uv_size": [3, 30]},
"up": {"uv": [73, 32], "uv_size": [3, 3]},
"down": {"uv": [73, 38], "uv_size": [3, -3]}
}
},
{
"origin": [-3.992, -8.004, 28.83],
"size": [3, 29.928, 2.592],
"uv": {
"north": {"uv": [0, 66], "uv_size": [3, 30]},
"east": {"uv": [3, 66], "uv_size": [3, 30]},
"south": {"uv": [6, 66], "uv_size": [3, 30]},
"west": {"uv": [9, 66], "uv_size": [3, 30]},
"up": {"uv": [74, 38], "uv_size": [3, 3]},
"down": {"uv": [74, 44], "uv_size": [3, -3]}
}
},
{
"origin": [-2.992, 13.996, -16.88],
"size": [2, 2, 45.792],
"uv": {
"north": {"uv": [68, 8], "uv_size": [2, 2]},
"east": {"uv": [64, 16], "uv_size": [46, 2]},
"south": {"uv": [70, 8], "uv_size": [2, 2]},
"west": {"uv": [64, 18], "uv_size": [46, 2]},
"up": {"uv": [48, 63], "uv_size": [2, 46]},
"down": {"uv": [50, 109], "uv_size": [2, -46]}
}
},
{
"origin": [-2.992, 5.996, -16.88],
"size": [2, 2, 45.792],
"uv": {
"north": {"uv": [72, 8], "uv_size": [2, 2]},
"east": {"uv": [64, 20], "uv_size": [46, 2]},
"south": {"uv": [30, 72], "uv_size": [2, 2]},
"west": {"uv": [64, 22], "uv_size": [46, 2]},
"up": {"uv": [52, 63], "uv_size": [2, 46]},
"down": {"uv": [54, 109], "uv_size": [2, -46]}
}
},
{
"origin": [-2.992, -2.004, -16.88],
"size": [2, 2, 45.792],
"uv": {
"north": {"uv": [74, 8], "uv_size": [2, 2]},
"east": {"uv": [64, 24], "uv_size": [46, 2]},
"south": {"uv": [30, 74], "uv_size": [2, 2]},
"west": {"uv": [64, 26], "uv_size": [46, 2]},
"up": {"uv": [56, 63], "uv_size": [2, 46]},
"down": {"uv": [58, 109], "uv_size": [2, -46]}
}
},
{
"origin": [-3.992, 21.996, -20.77],
"size": [3.076, 2, 53.492],
"uv": {
"north": {"uv": [54, 51], "uv_size": [3, 2]},
"east": {"uv": [54, 10], "uv_size": [53, 2]},
"south": {"uv": [57, 51], "uv_size": [3, 2]},
"west": {"uv": [54, 12], "uv_size": [53, 2]},
"up": {"uv": [48, 0], "uv_size": [3, 53]},
"down": {"uv": [51, 53], "uv_size": [3, -53]}
}
},
{
"origin": [-4.992, -10.004, -17.82],
"size": [1.25, 2, 47.5],
"uv": {
"north": {"uv": [75, 56], "uv_size": [1, 2]},
"east": {"uv": [0, 64], "uv_size": [48, 2]},
"south": {"uv": [75, 58], "uv_size": [1, 2]},
"west": {"uv": [64, 14], "uv_size": [48, 2]},
"up": {"uv": [46, 66], "uv_size": [1, 48]},
"down": {"uv": [47, 114], "uv_size": [1, -48]}
}
},
{
"origin": [-4.36332, -10.78111, 28.834],
"size": [1.25, 4.07, 2.584],
"pivot": [-4.11332, -8.71111, 29.774],
"rotation": [0, 0, 22.5],
"uv": {
"north": {"uv": [70, 71], "uv_size": [1, 4]},
"east": {"uv": [18, 72], "uv_size": [3, 4]},
"south": {"uv": [74, 69], "uv_size": [1, 4]},
"west": {"uv": [21, 72], "uv_size": [3, 4]},
"up": {"uv": [73, 74], "uv_size": [1, 3]},
"down": {"uv": [74, 76], "uv_size": [1, -3]}
}
},
{
"origin": [-4.36332, -10.78111, -19.426],
"size": [1.25, 4.07, 2.584],
"pivot": [-4.11332, -8.71111, -17.782],
"rotation": [0, 0, 22.5],
"uv": {
"north": {"uv": [71, 74], "uv_size": [1, 4]},
"east": {"uv": [24, 72], "uv_size": [3, 4]},
"south": {"uv": [72, 74], "uv_size": [1, 4]},
"west": {"uv": [27, 72], "uv_size": [3, 4]},
"up": {"uv": [75, 50], "uv_size": [1, 3]},
"down": {"uv": [75, 56], "uv_size": [1, -3]}
}
},
{
"origin": [1.7892, -15.25, 2.92933],
"size": [3.9, 7.05, 6],
"uv": {
"north": {"uv": [32, 70], "uv_size": [4, 7]},
"east": {"uv": [54, 44], "uv_size": [6, 7]},
"south": {"uv": [36, 70], "uv_size": [4, 7]},
"west": {"uv": [67, 32], "uv_size": [6, 7]},
"up": {"uv": [71, 57], "uv_size": [4, 6]},
"down": {"uv": [71, 69], "uv_size": [4, -6]}
}
},
{
"origin": [-1.2108, -14.5, 4.42933],
"size": [3, 4.5, 3],
"uv": {
"north": {"uv": [67, 71], "uv_size": [3, 5]},
"east": {"uv": [71, 69], "uv_size": [3, 5]},
"south": {"uv": [12, 72], "uv_size": [3, 5]},
"west": {"uv": [15, 72], "uv_size": [3, 5]},
"up": {"uv": [74, 44], "uv_size": [3, 3]},
"down": {"uv": [74, 50], "uv_size": [3, -3]}
}
},
{
"origin": [-1.7108, -15, 2.42933],
"size": [0.5, 5.5, 7],
"uv": {
"north": {"uv": [44, 70], "uv_size": [1, 6]},
"east": {"uv": [67, 39], "uv_size": [7, 6]},
"south": {"uv": [45, 70], "uv_size": [1, 6]},
"west": {"uv": [67, 45], "uv_size": [7, 6]},
"up": {"uv": [60, 46], "uv_size": [1, 7]},
"down": {"uv": [61, 53], "uv_size": [1, -7]}
}
},
{
"origin": [-5.7108, -15.25, 1.17933],
"size": [4, 6.25, 9.5],
"uv": {
"north": {"uv": [40, 70], "uv_size": [4, 6]},
"east": {"uv": [12, 66], "uv_size": [10, 6]},
"south": {"uv": [71, 51], "uv_size": [4, 6]},
"west": {"uv": [22, 66], "uv_size": [10, 6]},
"up": {"uv": [67, 51], "uv_size": [4, 10]},
"down": {"uv": [67, 71], "uv_size": [4, -10]}
}
},
{
"origin": [-19.7108, -13.25, 1.17933],
"size": [14, 4.25, 9.5],
"uv": {
"north": {"uv": [32, 66], "uv_size": [14, 4]},
"east": {"uv": [68, 0], "uv_size": [10, 4]},
"south": {"uv": [67, 28], "uv_size": [14, 4]},
"west": {"uv": [68, 4], "uv_size": [10, 4]},
"up": {"uv": [48, 53], "uv_size": [14, 10]},
"down": {"uv": [54, 10], "uv_size": [14, -10]}
}
}
]
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"loader": "kasuga_lib:bedrock_model",
"model": "kasuga_lib:block/test/c70",
"texture": "kasuga_lib:block/test/c70",
"identifier": "kasuga_lib:c70",
"render_type": "solid"
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f2f712e

Please sign in to comment.