规范化vector

This commit is contained in:
17146 2025-05-22 02:45:36 +08:00 committed by Light_Quanta
parent 23d17d8706
commit 0a497e8ec3
No known key found for this signature in database
GPG key ID: 11A39A1B8C890959
9 changed files with 47 additions and 45 deletions

View file

@ -0,0 +1,28 @@
{
"parent": "minecraft:item/generated",
"base": {
"parent": "superbwarfare:item/vector_base"
},
"gui_light": "front",
"loader": "forge:separate_transforms",
"perspectives": {
"fixed": {
"parent": "superbwarfare:lod/vector"
},
"ground": {
"parent": "superbwarfare:lod/vector"
},
"gui": {
"parent": "superbwarfare:item/vector_icon"
},
"head": {
"parent": "superbwarfare:lod/vector"
},
"thirdperson_lefthand": {
"parent": "superbwarfare:lod/vector"
},
"thirdperson_righthand": {
"parent": "superbwarfare:lod/vector"
}
}
}

View file

@ -1,5 +1,5 @@
{ {
"parent": "item/generated", "parent": "minecraft:item/generated",
"textures": { "textures": {
"layer0": "superbwarfare:item/vector_icon" "layer0": "superbwarfare:item/vector_icon"
} }

View file

@ -62,6 +62,7 @@ public class ModItemModelProvider extends ItemModelProvider {
gunItem(ModItems.SVD); gunItem(ModItems.SVD);
gunItem(ModItems.TASER); gunItem(ModItems.TASER);
gunItem(ModItems.TRACHELIUM); gunItem(ModItems.TRACHELIUM);
gunItem(ModItems.VECTOR);
simpleItem(ModItems.EMPTY_PERK, "perk/"); simpleItem(ModItems.EMPTY_PERK, "perk/");

View file

@ -47,29 +47,29 @@ public class VectorItem extends GunItem implements GeoItem {
if (data.reload.empty()) { if (data.reload.empty()) {
if (drum) { if (drum) {
return event.setAndContinue(RawAnimation.begin().thenPlay("animation.vec.reload_empty_drum")); return event.setAndContinue(RawAnimation.begin().thenPlay("animation.vector.reload_empty_drum"));
} else { } else {
return event.setAndContinue(RawAnimation.begin().thenPlay("animation.vec.reload_empty")); return event.setAndContinue(RawAnimation.begin().thenPlay("animation.vector.reload_empty"));
} }
} }
if (data.reload.normal()) { if (data.reload.normal()) {
if (drum) { if (drum) {
return event.setAndContinue(RawAnimation.begin().thenPlay("animation.vec.reload_normal_drum")); return event.setAndContinue(RawAnimation.begin().thenPlay("animation.vector.reload_normal_drum"));
} else { } else {
return event.setAndContinue(RawAnimation.begin().thenPlay("animation.vec.reload_normal")); return event.setAndContinue(RawAnimation.begin().thenPlay("animation.vector.reload_normal"));
} }
} }
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.vec.run_fast")); return event.setAndContinue(RawAnimation.begin().thenLoop("animation.vector.run_fast"));
} else { } else {
return event.setAndContinue(RawAnimation.begin().thenLoop("animation.vec.run")); return event.setAndContinue(RawAnimation.begin().thenLoop("animation.vector.run"));
} }
} }
return event.setAndContinue(RawAnimation.begin().thenLoop("animation.vec.idle")); return event.setAndContinue(RawAnimation.begin().thenLoop("animation.vector.idle"));
} }
private PlayState editPredicate(AnimationState<VectorItem> event) { private PlayState editPredicate(AnimationState<VectorItem> event) {
@ -82,7 +82,7 @@ public class VectorItem extends GunItem implements GeoItem {
return event.setAndContinue(RawAnimation.begin().thenPlay("animation.vector.edit")); return event.setAndContinue(RawAnimation.begin().thenPlay("animation.vector.edit"));
} }
return event.setAndContinue(RawAnimation.begin().thenLoop("animation.vec.idle")); return event.setAndContinue(RawAnimation.begin().thenLoop("animation.vector.idle"));
} }
@Override @Override

View file

@ -1,7 +1,7 @@
{ {
"format_version": "1.8.0", "format_version": "1.8.0",
"animations": { "animations": {
"animation.vec.idle": { "animation.vector.idle": {
"animation_length": 1 "animation_length": 1
}, },
"animation.vector.edit": { "animation.vector.edit": {
@ -38,7 +38,7 @@
} }
} }
}, },
"animation.vec.run": { "animation.vector.run": {
"loop": true, "loop": true,
"animation_length": 0.8, "animation_length": 0.8,
"bones": { "bones": {
@ -99,7 +99,7 @@
} }
} }
}, },
"animation.vec.run_fast": { "animation.vector.run_fast": {
"loop": true, "loop": true,
"animation_length": 0.7, "animation_length": 0.7,
"bones": { "bones": {
@ -164,7 +164,7 @@
} }
} }
}, },
"animation.vec.reload_empty": { "animation.vector.reload_empty": {
"loop": "hold_on_last_frame", "loop": "hold_on_last_frame",
"animation_length": 3.25, "animation_length": 3.25,
"override_previous_animation": true, "override_previous_animation": true,
@ -489,7 +489,7 @@
} }
} }
}, },
"animation.vec.reload_normal": { "animation.vector.reload_normal": {
"loop": "hold_on_last_frame", "loop": "hold_on_last_frame",
"animation_length": 2.5, "animation_length": 2.5,
"override_previous_animation": true, "override_previous_animation": true,
@ -728,7 +728,7 @@
} }
} }
}, },
"animation.vec.reload_empty_drum": { "animation.vector.reload_empty_drum": {
"loop": "hold_on_last_frame", "loop": "hold_on_last_frame",
"animation_length": 3.25, "animation_length": 3.25,
"override_previous_animation": true, "override_previous_animation": true,
@ -1059,7 +1059,7 @@
} }
} }
}, },
"animation.vec.reload_normal_drum": { "animation.vector.reload_normal_drum": {
"loop": "hold_on_last_frame", "loop": "hold_on_last_frame",
"animation_length": 2.875, "animation_length": 2.875,
"override_previous_animation": true, "override_previous_animation": true,

View file

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

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/vector3d", "0": "superbwarfare:item/lod/vector",
"particle": "superbwarfare:item/vector3d" "particle": "superbwarfare:item/lod/vector"
}, },
"elements": [ "elements": [
{ {

View file

Before

Width:  |  Height:  |  Size: 683 B

After

Width:  |  Height:  |  Size: 683 B