规范化m60

This commit is contained in:
17146 2025-05-21 21:31:18 +08:00 committed by Light_Quanta
parent 169916302f
commit 87c39dc712
No known key found for this signature in database
GPG key ID: 11A39A1B8C890959
18 changed files with 65 additions and 60 deletions

View file

@ -1,4 +1,4 @@
// 1.21.1 2025-05-21T21:47:41.4221104 Item Models: superbwarfare // 1.21.1 2025-05-21T21:50:33.4509796 Item Models: superbwarfare
6c48f5010e7e2b8cd4d3ff85c8de45cf56f53268 assets/superbwarfare/models/item/aa_12.json 6c48f5010e7e2b8cd4d3ff85c8de45cf56f53268 assets/superbwarfare/models/item/aa_12.json
fb3a995587b2c253571c3160ff02c2ad8c73ecf8 assets/superbwarfare/models/item/aa_12_base.json fb3a995587b2c253571c3160ff02c2ad8c73ecf8 assets/superbwarfare/models/item/aa_12_base.json
13ca8d5676888ff51f3308d88e4bf67691fa34f8 assets/superbwarfare/models/item/aa_12_blueprint.json 13ca8d5676888ff51f3308d88e4bf67691fa34f8 assets/superbwarfare/models/item/aa_12_blueprint.json
@ -126,7 +126,10 @@ ac9c6bc308bd741ada7f19d808d0c0722fceb976 assets/superbwarfare/models/item/mortar
516a430e688e26c4f02bded1113b7bd8c133dcef assets/superbwarfare/models/item/m_4_base.json 516a430e688e26c4f02bded1113b7bd8c133dcef assets/superbwarfare/models/item/m_4_base.json
13ca8d5676888ff51f3308d88e4bf67691fa34f8 assets/superbwarfare/models/item/m_4_blueprint.json 13ca8d5676888ff51f3308d88e4bf67691fa34f8 assets/superbwarfare/models/item/m_4_blueprint.json
04cc16bbdd7971e57940e901ad018e5cf5679c9a assets/superbwarfare/models/item/m_4_icon.json 04cc16bbdd7971e57940e901ad018e5cf5679c9a assets/superbwarfare/models/item/m_4_icon.json
b023e4919fe4d05dc024d29fd9eb8f4e1bd588fb assets/superbwarfare/models/item/m_60.json
2a1130d781ff276a8dc7ba13a992583f1e484f80 assets/superbwarfare/models/item/m_60_base.json
13ca8d5676888ff51f3308d88e4bf67691fa34f8 assets/superbwarfare/models/item/m_60_blueprint.json 13ca8d5676888ff51f3308d88e4bf67691fa34f8 assets/superbwarfare/models/item/m_60_blueprint.json
e141044945c8a873fc0df3dcf9e7a486726c0807 assets/superbwarfare/models/item/m_60_icon.json
13ca8d5676888ff51f3308d88e4bf67691fa34f8 assets/superbwarfare/models/item/m_79_blueprint.json 13ca8d5676888ff51f3308d88e4bf67691fa34f8 assets/superbwarfare/models/item/m_79_blueprint.json
13ca8d5676888ff51f3308d88e4bf67691fa34f8 assets/superbwarfare/models/item/m_870_blueprint.json 13ca8d5676888ff51f3308d88e4bf67691fa34f8 assets/superbwarfare/models/item/m_870_blueprint.json
13ca8d5676888ff51f3308d88e4bf67691fa34f8 assets/superbwarfare/models/item/m_98b_blueprint.json 13ca8d5676888ff51f3308d88e4bf67691fa34f8 assets/superbwarfare/models/item/m_98b_blueprint.json

View file

@ -0,0 +1,28 @@
{
"parent": "minecraft:item/generated",
"base": {
"parent": "superbwarfare:item/m_60_base"
},
"gui_light": "front",
"loader": "neoforge:separate_transforms",
"perspectives": {
"fixed": {
"parent": "superbwarfare:lod/m_60"
},
"ground": {
"parent": "superbwarfare:lod/m_60"
},
"gui": {
"parent": "superbwarfare:item/m_60_icon"
},
"head": {
"parent": "superbwarfare:lod/m_60"
},
"thirdperson_lefthand": {
"parent": "superbwarfare:lod/m_60"
},
"thirdperson_righthand": {
"parent": "superbwarfare:lod/m_60"
}
}
}

View file

@ -0,0 +1,6 @@
{
"parent": "superbwarfare:displaysettings/m_60.item",
"textures": {
"layer0": "superbwarfare:item/m_60"
}
}

View file

@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "superbwarfare:item/m_60_icon"
}
}

View file

@ -22,17 +22,17 @@ public class M60ItemModel extends GeoModel<M60Item> {
@Override @Override
public ResourceLocation getAnimationResource(M60Item animatable) { public ResourceLocation getAnimationResource(M60Item animatable) {
return Mod.loc("animations/m60.animation.json"); return Mod.loc("animations/m_60.animation.json");
} }
@Override @Override
public ResourceLocation getModelResource(M60Item animatable) { public ResourceLocation getModelResource(M60Item animatable) {
return Mod.loc("geo/m60.geo.json"); return Mod.loc("geo/m_60.geo.json");
} }
@Override @Override
public ResourceLocation getTextureResource(M60Item animatable) { public ResourceLocation getTextureResource(M60Item animatable) {
return Mod.loc("textures/item/m60.png"); return Mod.loc("textures/item/m_60.png");
} }
@Override @Override

View file

@ -42,6 +42,7 @@ public class ModItemModelProvider extends ItemModelProvider {
gunItem(ModItems.JAVELIN); gunItem(ModItems.JAVELIN);
gunItem(ModItems.K_98); gunItem(ModItems.K_98);
gunItem(ModItems.M_4); gunItem(ModItems.M_4);
gunItem(ModItems.M_60);
simpleItem(ModItems.EMPTY_PERK, "perk/"); simpleItem(ModItems.EMPTY_PERK, "perk/");

View file

@ -48,10 +48,10 @@ public class M60Item extends GunItem implements GeoItem {
if (!(stack.getItem() instanceof GunItem)) return PlayState.STOP; if (!(stack.getItem() instanceof GunItem)) return PlayState.STOP;
if (ClientEventHandler.firePosTimer > 0 && ClientEventHandler.firePosTimer < 0.45) { if (ClientEventHandler.firePosTimer > 0 && ClientEventHandler.firePosTimer < 0.45) {
return event.setAndContinue(RawAnimation.begin().thenPlay("animation.m60.fire")); return event.setAndContinue(RawAnimation.begin().thenPlay("animation.m_60.fire"));
} }
return event.setAndContinue(RawAnimation.begin().thenLoop("animation.m60.idle")); return event.setAndContinue(RawAnimation.begin().thenLoop("animation.m_60.idle"));
} }
private PlayState idlePredicate(AnimationState<M60Item> event) { private PlayState idlePredicate(AnimationState<M60Item> event) {
@ -61,22 +61,22 @@ public class M60Item extends GunItem implements GeoItem {
if (!(stack.getItem() instanceof GunItem)) return PlayState.STOP; if (!(stack.getItem() instanceof GunItem)) return PlayState.STOP;
if (GunData.from(stack).reload.empty()) { if (GunData.from(stack).reload.empty()) {
return event.setAndContinue(RawAnimation.begin().thenPlay("animation.m60.reload")); return event.setAndContinue(RawAnimation.begin().thenPlay("animation.m_60.reload"));
} }
if (GunData.from(stack).reload.normal()) { if (GunData.from(stack).reload.normal()) {
return event.setAndContinue(RawAnimation.begin().thenPlay("animation.m60.reload2")); return event.setAndContinue(RawAnimation.begin().thenPlay("animation.m_60.reload2"));
} }
if (player.isSprinting() && player.onGround() && ClientEventHandler.cantSprint == 0 && ClientEventHandler.drawTime < 0.01) { if (player.isSprinting() && player.onGround() && ClientEventHandler.cantSprint == 0 && ClientEventHandler.drawTime < 0.01) {
if (ClientEventHandler.tacticalSprint) { if (ClientEventHandler.tacticalSprint) {
return event.setAndContinue(RawAnimation.begin().thenLoop("animation.m60.run_fast")); return event.setAndContinue(RawAnimation.begin().thenLoop("animation.m_60.run_fast"));
} else { } else {
return event.setAndContinue(RawAnimation.begin().thenLoop("animation.m60.run")); return event.setAndContinue(RawAnimation.begin().thenLoop("animation.m_60.run"));
} }
} }
return event.setAndContinue(RawAnimation.begin().thenLoop("animation.m60.idle")); return event.setAndContinue(RawAnimation.begin().thenLoop("animation.m_60.idle"));
} }
@Override @Override
@ -114,7 +114,7 @@ public class M60Item extends GunItem implements GeoItem {
@Override @Override
public ResourceLocation getGunIcon() { public ResourceLocation getGunIcon() {
return Mod.loc("textures/gun_icon/m60_icon.png"); return Mod.loc("textures/gun_icon/m_60_icon.png");
} }
@Override @Override

View file

@ -1,7 +1,7 @@
{ {
"format_version": "1.8.0", "format_version": "1.8.0",
"animations": { "animations": {
"animation.m60.idle": { "animation.m_60.idle": {
"animation_length": 0.5, "animation_length": 0.5,
"bones": { "bones": {
"0": { "0": {
@ -11,7 +11,7 @@
} }
} }
}, },
"animation.m60.run": { "animation.m_60.run": {
"loop": true, "loop": true,
"animation_length": 0.8, "animation_length": 0.8,
"bones": { "bones": {
@ -93,7 +93,7 @@
} }
} }
}, },
"animation.m60.run_fast": { "animation.m_60.run_fast": {
"loop": true, "loop": true,
"animation_length": 0.7, "animation_length": 0.7,
"bones": { "bones": {
@ -181,7 +181,7 @@
} }
} }
}, },
"animation.m60.fire": { "animation.m_60.fire": {
"animation_length": 0.0833, "animation_length": 0.0833,
"bones": { "bones": {
"m60_bullet_chain": { "m60_bullet_chain": {
@ -204,7 +204,7 @@
} }
} }
}, },
"animation.m60.reload": { "animation.m_60.reload": {
"animation_length": 6.375, "animation_length": 6.375,
"bones": { "bones": {
"0": { "0": {
@ -928,7 +928,7 @@
} }
} }
}, },
"animation.m60.reload2": { "animation.m_60.reload2": {
"animation_length": 5.5, "animation_length": 5.5,
"bones": { "bones": {
"0": { "0": {

View file

@ -3,7 +3,7 @@
"minecraft:geometry": [ "minecraft:geometry": [
{ {
"description": { "description": {
"identifier": "geometry.m60", "identifier": "geometry.m_60",
"texture_width": 128, "texture_width": 128,
"texture_height": 128, "texture_height": 128,
"visible_bounds_width": 11, "visible_bounds_width": 11,

View file

@ -1,27 +0,0 @@
{
"loader": "neoforge:separate_transforms",
"gui_light": "front",
"base": {
"parent": "superbwarfare:item/m_60_base"
},
"perspectives": {
"gui": {
"parent": "superbwarfare:item/m_60_icon"
},
"thirdperson_righthand": {
"parent": "superbwarfare:item/m603d"
},
"thirdperson_lefthand": {
"parent": "superbwarfare:item/m603d"
},
"ground": {
"parent": "superbwarfare:item/m603d"
},
"fixed": {
"parent": "superbwarfare:item/m603d"
},
"head": {
"parent": "superbwarfare:item/m603d"
}
}
}

View file

@ -1,6 +0,0 @@
{
"parent": "superbwarfare:displaysettings/m60.item",
"textures": {
"layer0": "superbwarfare:item/m60"
}
}

View file

@ -1,6 +0,0 @@
{
"parent": "item/generated",
"textures": {
"layer0": "superbwarfare:item/m60_icon"
}
}

View file

@ -2,8 +2,8 @@
"credit": "Made with Blockbench", "credit": "Made with Blockbench",
"texture_size": [64, 64], "texture_size": [64, 64],
"textures": { "textures": {
"0": "superbwarfare:item/m603d", "0": "superbwarfare:item/lod/m_60",
"particle": "superbwarfare:item/m603d" "particle": "superbwarfare:item/lod/m_60"
}, },
"elements": [ "elements": [
{ {

View file

Before

Width:  |  Height:  |  Size: 857 B

After

Width:  |  Height:  |  Size: 857 B

View file

Before

Width:  |  Height:  |  Size: 53 KiB

After

Width:  |  Height:  |  Size: 53 KiB

View file

Before

Width:  |  Height:  |  Size: 7.7 KiB

After

Width:  |  Height:  |  Size: 7.7 KiB