调整DPS发电机贴图

This commit is contained in:
17146 2025-05-10 16:12:51 +08:00 committed by Light_Quanta
parent f357ae669d
commit be15327d5e
No known key found for this signature in database
GPG key ID: 11A39A1B8C890959
5 changed files with 41 additions and 146 deletions

View file

@ -19,6 +19,7 @@ public class DPSGeneratorModel extends GeoModel<DPSGeneratorEntity> {
@Override @Override
public ResourceLocation getTextureResource(DPSGeneratorEntity entity) { public ResourceLocation getTextureResource(DPSGeneratorEntity entity) {
return Mod.loc("textures/entity/dps_generator.png"); int tier = entity.getEntityData().get(DPSGeneratorEntity.LEVEL);
return Mod.loc("textures/entity/dps_generator_tier_" + tier + ".png");
} }
} }

View file

@ -4,141 +4,35 @@
{ {
"description": { "description": {
"identifier": "geometry.unknown", "identifier": "geometry.unknown",
"texture_width": 128, "texture_width": 64,
"texture_height": 128, "texture_height": 64,
"visible_bounds_width": 2, "visible_bounds_width": 2,
"visible_bounds_height": 3.5, "visible_bounds_height": 3.5,
"visible_bounds_offset": [ "visible_bounds_offset": [0, 1.25, 0]
0,
1.25,
0
]
}, },
"bones": [ "bones": [
{ {
"name": "0", "name": "0",
"pivot": [ "pivot": [0, 0, 0]
0,
0,
0
]
}, },
{ {
"name": "zuo", "name": "zuo",
"parent": "0", "parent": "0",
"pivot": [ "pivot": [0, 0, 0],
0,
0,
0
],
"cubes": [ "cubes": [
{ {"origin": [-8, 2, -1], "size": [1, 2, 2], "uv": [30, 0]},
"origin": [ {"origin": [-8, 0, -4], "size": [16, 2, 8], "uv": [0, 29]},
-8, {"origin": [7, 2, -1], "size": [1, 2, 2], "uv": [30, 4]}
2,
-1
],
"size": [
1,
2,
2
],
"uv": [
0,
29
]
},
{
"origin": [
-8,
0,
-4
],
"size": [
16,
2,
8
],
"uv": [
22,
21
]
},
{
"origin": [
7,
2,
-1
],
"size": [
1,
2,
2
],
"uv": [
6,
29
]
}
] ]
}, },
{ {
"name": "ba", "name": "ba",
"parent": "0", "parent": "0",
"pivot": [ "pivot": [0, 3.5, 0],
0,
3.5,
0
],
"cubes": [ "cubes": [
{ {"origin": [-7, 4, -0.5], "size": [14, 28, 1], "uv": [0, 0]},
"origin": [ {"origin": [6, 3, -0.5], "size": [1, 1, 1], "uv": [30, 8]},
-7, {"origin": [-7, 3, -0.5], "size": [1, 1, 1], "uv": [30, 10]}
4,
-0.5
],
"size": [
14,
28,
1
],
"uv": [
0,
0
]
},
{
"origin": [
6,
3,
-0.5
],
"size": [
1,
1,
1
],
"uv": [
10,
29
]
},
{
"origin": [
-7,
3,
-0.5
],
"size": [
1,
1,
1
],
"uv": [
4,
29
]
}
] ]
} }
] ]

Binary file not shown.

Before

Width:  |  Height:  |  Size: 659 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 261 B

After

Width:  |  Height:  |  Size: 290 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 713 B