规范化m60
|
@ -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
|
||||
fb3a995587b2c253571c3160ff02c2ad8c73ecf8 assets/superbwarfare/models/item/aa_12_base.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
|
||||
13ca8d5676888ff51f3308d88e4bf67691fa34f8 assets/superbwarfare/models/item/m_4_blueprint.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
|
||||
e141044945c8a873fc0df3dcf9e7a486726c0807 assets/superbwarfare/models/item/m_60_icon.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_98b_blueprint.json
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent": "superbwarfare:displaysettings/m_60.item",
|
||||
"textures": {
|
||||
"layer0": "superbwarfare:item/m_60"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent": "minecraft:item/generated",
|
||||
"textures": {
|
||||
"layer0": "superbwarfare:item/m_60_icon"
|
||||
}
|
||||
}
|
|
@ -22,17 +22,17 @@ public class M60ItemModel extends GeoModel<M60Item> {
|
|||
|
||||
@Override
|
||||
public ResourceLocation getAnimationResource(M60Item animatable) {
|
||||
return Mod.loc("animations/m60.animation.json");
|
||||
return Mod.loc("animations/m_60.animation.json");
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResourceLocation getModelResource(M60Item animatable) {
|
||||
return Mod.loc("geo/m60.geo.json");
|
||||
return Mod.loc("geo/m_60.geo.json");
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResourceLocation getTextureResource(M60Item animatable) {
|
||||
return Mod.loc("textures/item/m60.png");
|
||||
return Mod.loc("textures/item/m_60.png");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -42,6 +42,7 @@ public class ModItemModelProvider extends ItemModelProvider {
|
|||
gunItem(ModItems.JAVELIN);
|
||||
gunItem(ModItems.K_98);
|
||||
gunItem(ModItems.M_4);
|
||||
gunItem(ModItems.M_60);
|
||||
|
||||
simpleItem(ModItems.EMPTY_PERK, "perk/");
|
||||
|
||||
|
|
|
@ -48,10 +48,10 @@ public class M60Item extends GunItem implements GeoItem {
|
|||
if (!(stack.getItem() instanceof GunItem)) return PlayState.STOP;
|
||||
|
||||
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) {
|
||||
|
@ -61,22 +61,22 @@ public class M60Item extends GunItem implements GeoItem {
|
|||
if (!(stack.getItem() instanceof GunItem)) return PlayState.STOP;
|
||||
|
||||
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()) {
|
||||
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 (ClientEventHandler.tacticalSprint) {
|
||||
return event.setAndContinue(RawAnimation.begin().thenLoop("animation.m60.run_fast"));
|
||||
return event.setAndContinue(RawAnimation.begin().thenLoop("animation.m_60.run_fast"));
|
||||
} 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
|
||||
|
@ -114,7 +114,7 @@ public class M60Item extends GunItem implements GeoItem {
|
|||
|
||||
@Override
|
||||
public ResourceLocation getGunIcon() {
|
||||
return Mod.loc("textures/gun_icon/m60_icon.png");
|
||||
return Mod.loc("textures/gun_icon/m_60_icon.png");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"format_version": "1.8.0",
|
||||
"animations": {
|
||||
"animation.m60.idle": {
|
||||
"animation.m_60.idle": {
|
||||
"animation_length": 0.5,
|
||||
"bones": {
|
||||
"0": {
|
||||
|
@ -11,7 +11,7 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"animation.m60.run": {
|
||||
"animation.m_60.run": {
|
||||
"loop": true,
|
||||
"animation_length": 0.8,
|
||||
"bones": {
|
||||
|
@ -93,7 +93,7 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"animation.m60.run_fast": {
|
||||
"animation.m_60.run_fast": {
|
||||
"loop": true,
|
||||
"animation_length": 0.7,
|
||||
"bones": {
|
||||
|
@ -181,7 +181,7 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"animation.m60.fire": {
|
||||
"animation.m_60.fire": {
|
||||
"animation_length": 0.0833,
|
||||
"bones": {
|
||||
"m60_bullet_chain": {
|
||||
|
@ -204,7 +204,7 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"animation.m60.reload": {
|
||||
"animation.m_60.reload": {
|
||||
"animation_length": 6.375,
|
||||
"bones": {
|
||||
"0": {
|
||||
|
@ -928,7 +928,7 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"animation.m60.reload2": {
|
||||
"animation.m_60.reload2": {
|
||||
"animation_length": 5.5,
|
||||
"bones": {
|
||||
"0": {
|
|
@ -3,7 +3,7 @@
|
|||
"minecraft:geometry": [
|
||||
{
|
||||
"description": {
|
||||
"identifier": "geometry.m60",
|
||||
"identifier": "geometry.m_60",
|
||||
"texture_width": 128,
|
||||
"texture_height": 128,
|
||||
"visible_bounds_width": 11,
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,6 +0,0 @@
|
|||
{
|
||||
"parent": "superbwarfare:displaysettings/m60.item",
|
||||
"textures": {
|
||||
"layer0": "superbwarfare:item/m60"
|
||||
}
|
||||
}
|
|
@ -1,6 +0,0 @@
|
|||
{
|
||||
"parent": "item/generated",
|
||||
"textures": {
|
||||
"layer0": "superbwarfare:item/m60_icon"
|
||||
}
|
||||
}
|
|
@ -2,8 +2,8 @@
|
|||
"credit": "Made with Blockbench",
|
||||
"texture_size": [64, 64],
|
||||
"textures": {
|
||||
"0": "superbwarfare:item/m603d",
|
||||
"particle": "superbwarfare:item/m603d"
|
||||
"0": "superbwarfare:item/lod/m_60",
|
||||
"particle": "superbwarfare:item/lod/m_60"
|
||||
},
|
||||
"elements": [
|
||||
{
|
Before Width: | Height: | Size: 9.4 KiB After Width: | Height: | Size: 9.4 KiB |
Before Width: | Height: | Size: 857 B After Width: | Height: | Size: 857 B |
Before Width: | Height: | Size: 53 KiB After Width: | Height: | Size: 53 KiB |
Before Width: | Height: | Size: 7.7 KiB After Width: | Height: | Size: 7.7 KiB |