From be15327d5ef31d7511348da366eeb905312022bb Mon Sep 17 00:00:00 2001 From: 17146 <1714673995@qq.com> Date: Sat, 10 May 2025 16:12:51 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4DPS=E5=8F=91=E7=94=B5?= =?UTF-8?q?=E6=9C=BA=E8=B4=B4=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../model/entity/DPSGeneratorModel.java | 3 +- .../superbwarfare/geo/dps_generator.geo.json | 184 ++++-------------- .../textures/entity/dps_generator.png | Bin 659 -> 0 bytes .../textures/entity/dps_generator_e.png | Bin 261 -> 290 bytes .../textures/entity/dps_generator_tier_0.png | Bin 0 -> 713 bytes 5 files changed, 41 insertions(+), 146 deletions(-) delete mode 100644 src/main/resources/assets/superbwarfare/textures/entity/dps_generator.png create mode 100644 src/main/resources/assets/superbwarfare/textures/entity/dps_generator_tier_0.png diff --git a/src/main/java/com/atsuishio/superbwarfare/client/model/entity/DPSGeneratorModel.java b/src/main/java/com/atsuishio/superbwarfare/client/model/entity/DPSGeneratorModel.java index 2c1c42022..c8669f1dd 100644 --- a/src/main/java/com/atsuishio/superbwarfare/client/model/entity/DPSGeneratorModel.java +++ b/src/main/java/com/atsuishio/superbwarfare/client/model/entity/DPSGeneratorModel.java @@ -19,6 +19,7 @@ public class DPSGeneratorModel extends GeoModel { @Override 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"); } } diff --git a/src/main/resources/assets/superbwarfare/geo/dps_generator.geo.json b/src/main/resources/assets/superbwarfare/geo/dps_generator.geo.json index b4c03d488..d0d0223cf 100644 --- a/src/main/resources/assets/superbwarfare/geo/dps_generator.geo.json +++ b/src/main/resources/assets/superbwarfare/geo/dps_generator.geo.json @@ -1,147 +1,41 @@ { - "format_version": "1.12.0", - "minecraft:geometry": [ - { - "description": { - "identifier": "geometry.unknown", - "texture_width": 128, - "texture_height": 128, - "visible_bounds_width": 2, - "visible_bounds_height": 3.5, - "visible_bounds_offset": [ - 0, - 1.25, - 0 - ] - }, - "bones": [ - { - "name": "0", - "pivot": [ - 0, - 0, - 0 - ] - }, - { - "name": "zuo", - "parent": "0", - "pivot": [ - 0, - 0, - 0 - ], - "cubes": [ - { - "origin": [ - -8, - 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", - "parent": "0", - "pivot": [ - 0, - 3.5, - 0 - ], - "cubes": [ - { - "origin": [ - -7, - 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 - ] - } - ] - } - ] - } - ] + "format_version": "1.12.0", + "minecraft:geometry": [ + { + "description": { + "identifier": "geometry.unknown", + "texture_width": 64, + "texture_height": 64, + "visible_bounds_width": 2, + "visible_bounds_height": 3.5, + "visible_bounds_offset": [0, 1.25, 0] + }, + "bones": [ + { + "name": "0", + "pivot": [0, 0, 0] + }, + { + "name": "zuo", + "parent": "0", + "pivot": [0, 0, 0], + "cubes": [ + {"origin": [-8, 2, -1], "size": [1, 2, 2], "uv": [30, 0]}, + {"origin": [-8, 0, -4], "size": [16, 2, 8], "uv": [0, 29]}, + {"origin": [7, 2, -1], "size": [1, 2, 2], "uv": [30, 4]} + ] + }, + { + "name": "ba", + "parent": "0", + "pivot": [0, 3.5, 0], + "cubes": [ + {"origin": [-7, 4, -0.5], "size": [14, 28, 1], "uv": [0, 0]}, + {"origin": [6, 3, -0.5], "size": [1, 1, 1], "uv": [30, 8]}, + {"origin": [-7, 3, -0.5], "size": [1, 1, 1], "uv": [30, 10]} + ] + } + ] + } + ] } \ No newline at end of file diff --git a/src/main/resources/assets/superbwarfare/textures/entity/dps_generator.png b/src/main/resources/assets/superbwarfare/textures/entity/dps_generator.png deleted file mode 100644 index d53314f4c6b24dae43bae4e3fdb73fdcfa59f0a8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 659 zcmeAS@N?(olHy`uVBq!ia0vp^4Is?H1|$#LC7uRSjKx9jP7LeL$-D$|SkfJR9T^xl z_H+M9WCij$3p^r=85sBugD~Uq{1qucL5ULAh?3y^w370~qEv=}#LT=BJwMkF1yemk zJ@f8s-z|Y^wxvdRrg?g5F>nAmtPE0&tPG4mmKP99L)jqLXfQH^#hHL?Lq;YB0U#X( z#F_0ZVDT&<8w3)77^ELYqgl$p%)l^#oq+|Y!obMbfN=rDRFDqV1rU>_0NEhG1T=>U ztTM>b0?2~uGBhv%$*Q`~>s@TJ^(fFbCr=m0kczmsHy>s;J4iG<^mgZH<-54`&T{S@ zVQm^y)?Ik!^3>_dtv><9_dhpiB%R=o*T464$~ryGzfb;#-3xxTZ~EW4+xGor7L++G zap33c&DI;QeSaNY|3!jP=CChAcK)mSb#s*)l6P=FSU)jghZ{p_#mn#JpU%#`wc>mV zLuB2l)4f(_*(Owedc9qO;cGO{fe-QfZ!(;kZg0>0br#QpnxER{uaXrtEW8gM>}AaH zWjLN7B{7GgN!X!)iNlZKAg98PyUQBoeJ{(uU7Q)A@ITeM-0uB!p83^bf!8?Sxiu6eW}G!VpIdY2`lhBZ@%Nz6Aq8B~UmAaH VYJNwFt*ItRpQo#z%Q~loCII)#z4-tD diff --git a/src/main/resources/assets/superbwarfare/textures/entity/dps_generator_e.png b/src/main/resources/assets/superbwarfare/textures/entity/dps_generator_e.png index 69296f5841ebd6d427e22dff009845b61133244f..42d5db81ddc0d875443b443ed708f60cd66292ee 100644 GIT binary patch delta 219 zcmV<103`o~0-^$tB!2;OQb$4nuFf3k0002oNklV{A#sCe_N|G zI1CSEVsh3hp$G+cUl;}eAkk@hVSGMbM;>^;-agKxo^$O7psvf@jbBgd(Pd#D1qe4= zfa2T9we$a*0)$&EK(Td_?ff<2l8&kV5oFwMF8U}--mU3y?cIKrn#Jd#clKipf@aB*Yp3y*>E*K zmnr}e?ICM^KDz;ksE4ijIX#XJmuW5rpW9&o$gjBqBJBJTG!p~h>L0^y05pFbRRA=9 mEI$Fze39WQk?;-|;MzX6QzEo=!}xCi0000U~2YsaSW-L z^Y)Hyp0J|?+XKTWu6V`i4TqL5Shm3B5bIR!DPk9uw8BN)7A;wDPBW&#qK8``;J|{E zk7;}D&!v5D>t+Jkd!-kIRQj*4XBYY!?F2OKJ)1`9`TSk~6kmO1l2X`l zj@gU=g z!~cK1G|K&cx-d?(JS~7>&7V(S`3`)282$I@D^UjRdOIuj1$H&7_vg%Iy0GO_EsM_e zlha#FdH?^)on10B$V+OWf;xM`?)ZPw1(*NL&%dv7+eyfrh^oCy85}Sb4q9e0GMe+ A&j0`b literal 0 HcmV?d00001