规范化vector
This commit is contained in:
parent
23d17d8706
commit
0a497e8ec3
9 changed files with 47 additions and 45 deletions
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"parent": "item/generated",
|
||||
"parent": "minecraft:item/generated",
|
||||
"textures": {
|
||||
"layer0": "superbwarfare:item/vector_icon"
|
||||
}
|
|
@ -62,6 +62,7 @@ public class ModItemModelProvider extends ItemModelProvider {
|
|||
gunItem(ModItems.SVD);
|
||||
gunItem(ModItems.TASER);
|
||||
gunItem(ModItems.TRACHELIUM);
|
||||
gunItem(ModItems.VECTOR);
|
||||
|
||||
simpleItem(ModItems.EMPTY_PERK, "perk/");
|
||||
|
||||
|
|
|
@ -47,29 +47,29 @@ public class VectorItem extends GunItem implements GeoItem {
|
|||
|
||||
if (data.reload.empty()) {
|
||||
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 {
|
||||
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 (drum) {
|
||||
return event.setAndContinue(RawAnimation.begin().thenPlay("animation.vec.reload_normal_drum"));
|
||||
return event.setAndContinue(RawAnimation.begin().thenPlay("animation.vector.reload_normal_drum"));
|
||||
} 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 (ClientEventHandler.tacticalSprint) {
|
||||
return event.setAndContinue(RawAnimation.begin().thenLoop("animation.vec.run_fast"));
|
||||
return event.setAndContinue(RawAnimation.begin().thenLoop("animation.vector.run_fast"));
|
||||
} 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) {
|
||||
|
@ -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().thenLoop("animation.vec.idle"));
|
||||
return event.setAndContinue(RawAnimation.begin().thenLoop("animation.vector.idle"));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"format_version": "1.8.0",
|
||||
"animations": {
|
||||
"animation.vec.idle": {
|
||||
"animation.vector.idle": {
|
||||
"animation_length": 1
|
||||
},
|
||||
"animation.vector.edit": {
|
||||
|
@ -38,7 +38,7 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"animation.vec.run": {
|
||||
"animation.vector.run": {
|
||||
"loop": true,
|
||||
"animation_length": 0.8,
|
||||
"bones": {
|
||||
|
@ -99,7 +99,7 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"animation.vec.run_fast": {
|
||||
"animation.vector.run_fast": {
|
||||
"loop": true,
|
||||
"animation_length": 0.7,
|
||||
"bones": {
|
||||
|
@ -164,7 +164,7 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"animation.vec.reload_empty": {
|
||||
"animation.vector.reload_empty": {
|
||||
"loop": "hold_on_last_frame",
|
||||
"animation_length": 3.25,
|
||||
"override_previous_animation": true,
|
||||
|
@ -489,7 +489,7 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"animation.vec.reload_normal": {
|
||||
"animation.vector.reload_normal": {
|
||||
"loop": "hold_on_last_frame",
|
||||
"animation_length": 2.5,
|
||||
"override_previous_animation": true,
|
||||
|
@ -728,7 +728,7 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"animation.vec.reload_empty_drum": {
|
||||
"animation.vector.reload_empty_drum": {
|
||||
"loop": "hold_on_last_frame",
|
||||
"animation_length": 3.25,
|
||||
"override_previous_animation": true,
|
||||
|
@ -1059,7 +1059,7 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"animation.vec.reload_normal_drum": {
|
||||
"animation.vector.reload_normal_drum": {
|
||||
"loop": "hold_on_last_frame",
|
||||
"animation_length": 2.875,
|
||||
"override_previous_animation": true,
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -2,8 +2,8 @@
|
|||
"credit": "Made with Blockbench",
|
||||
"texture_size": [64, 64],
|
||||
"textures": {
|
||||
"0": "superbwarfare:item/vector3d",
|
||||
"particle": "superbwarfare:item/vector3d"
|
||||
"0": "superbwarfare:item/lod/vector",
|
||||
"particle": "superbwarfare:item/lod/vector"
|
||||
},
|
||||
"elements": [
|
||||
{
|
Before Width: | Height: | Size: 683 B After Width: | Height: | Size: 683 B |
Loading…
Add table
Reference in a new issue