Replace weapon pose jitter with native swings and timed slash trails
@@ -102,7 +102,7 @@ public final class GauntletCombat {
|
||||
WeaponPresentation.animate(p,Combo.pose(step),Combo.left(step),config.gauntletCooldownTicks);
|
||||
sound(p,step == 6 ? "swing_kick" : step == 5 ? "swing_medium" : "swing_short",.7f);
|
||||
if (batch.hit) sound(p,step == 6 ? "hit_kick" : step == 5 ? "hit_medium" : "hit_light",.8f);
|
||||
p.swing(Combo.left(step) ? InteractionHand.OFF_HAND : InteractionHand.MAIN_HAND,true);
|
||||
// WeaponPresentation sends the accepted hand after the local one-tick input swing.
|
||||
}
|
||||
public static boolean attackAllowed(Player p,Entity t) { return BATCHES.get(p.getUUID()).accepted.contains(t.getId()); }
|
||||
public static boolean hurt(Player p,Entity t,DamageSource source,float damage) {
|
||||
|
||||
@@ -13,6 +13,11 @@ import online.astradev.weapons.resource.WeaponPresentation;
|
||||
@Mixin(ServerGamePacketListenerImpl.class)
|
||||
public abstract class GauntletInventoryMixin {
|
||||
@Shadow public ServerPlayer player;
|
||||
@ModifyVariable(method="handleSetCreativeModeSlot",at=@At("HEAD"),argsOnly=true)
|
||||
private ServerboundSetCreativeModeSlotPacket astraweapons$restore(ServerboundSetCreativeModeSlotPacket packet) {
|
||||
var restored=WeaponPresentation.restorePresentation(packet.itemStack());
|
||||
return restored==packet.itemStack() ? packet : new ServerboundSetCreativeModeSlotPacket(packet.slotNum(),restored);
|
||||
}
|
||||
// Each injection occurs AFTER vanilla's packet thread validation.
|
||||
@Inject(method="handleContainerClick",at=@At(value="INVOKE",target="Lnet/minecraft/server/level/ServerPlayer;resetLastActionTime()V"),cancellable=true)
|
||||
private void astraweapons$slot(ServerboundContainerClickPacket p,CallbackInfo ci) {
|
||||
|
||||
@@ -18,14 +18,17 @@ public abstract class TwinbladeSwingMixin {
|
||||
@Shadow public ServerPlayer player;
|
||||
|
||||
@Inject(method = "handleAnimate", at = @At(value = "INVOKE",
|
||||
target = "Lnet/minecraft/server/level/ServerPlayer;swing(Lnet/minecraft/world/InteractionHand;)V"))
|
||||
target = "Lnet/minecraft/server/level/ServerPlayer;swing(Lnet/minecraft/world/InteractionHand;)V"), cancellable=true)
|
||||
private void astraplus$airSwing(ServerboundSwingPacket packet, CallbackInfo ci) {
|
||||
if (packet.getHand() != InteractionHand.MAIN_HAND || player.isSpectator()
|
||||
|| (!TwinbladeCombat.holdsTwinblade(player) && !online.astradev.weapons.behavior.GauntletCombat.holds(player))) { return; }
|
||||
// Mining/interacting with a block is not an air attack. Entity-hit packets already consume charge.
|
||||
if (player.pick(player.blockInteractionRange(), 1, false).getType() == HitResult.Type.BLOCK) { return; }
|
||||
// Run after packet thread validation, but before vanilla swing resets the attack charge.
|
||||
if (online.astradev.weapons.behavior.GauntletCombat.holds(player)) online.astradev.weapons.behavior.GauntletCombat.strike(player);
|
||||
if (online.astradev.weapons.behavior.GauntletCombat.holds(player)) {
|
||||
online.astradev.weapons.behavior.GauntletCombat.strike(player);
|
||||
ci.cancel(); // Do not broadcast an extra right-hand swing over the accepted combo hand.
|
||||
}
|
||||
else TwinbladeCombat.strike(player);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,20 +14,25 @@ import org.joml.*;
|
||||
public final class SlashDisplay extends Display.ItemDisplay {
|
||||
private static final List<SlashDisplay> ACTIVE = new ArrayList<>();
|
||||
private final long expires;
|
||||
private final long born;
|
||||
private final boolean fiery;
|
||||
private final ServerPlayer owner;
|
||||
private SlashDisplay(ServerPlayer p,double reach,boolean fiery) {
|
||||
super(EntityTypes.ITEM_DISPLAY,p.level()); owner=p; expires=p.level().getGameTime()+5;
|
||||
super(EntityTypes.ITEM_DISPLAY,p.level()); owner=p; born=p.level().getGameTime(); expires=born+4; this.fiery=fiery;
|
||||
setNoGravity(true);setInvulnerable(true);
|
||||
setPos(p.getX(),p.getY()+1,p.getZ());
|
||||
setPos(p.getX(),p.getY()+1.15,p.getZ());
|
||||
// Vanilla ItemDisplayRenderer adds a 180-degree item rotation; compensate so +Z is the hit sector.
|
||||
setYRot(p.getYRot()+180);
|
||||
var item=new ItemStack(Items.PAPER);
|
||||
item.set(DataComponents.ITEM_MODEL,Identifier.parse("astraweapons:slash"+(fiery?"_fire":"")));
|
||||
getSlot(0).set(item);
|
||||
frame(0);
|
||||
((online.astradev.weapons.mixin.DisplayAccess)(Object)this).astraweapons$transform(new Transformation(new Vector3f(),new Quaternionf(),new Vector3f((float)reach*2),new Quaternionf()));
|
||||
((online.astradev.weapons.mixin.DisplayAccess)(Object)this).astraweapons$brightness(new net.minecraft.util.Brightness(15,15));
|
||||
addTag("astraweapons:slash");
|
||||
}
|
||||
private void frame(int frame) {
|
||||
var item=new ItemStack(Items.PAPER);
|
||||
item.set(DataComponents.ITEM_MODEL,Identifier.parse("astraweapons:v2/slash_"+(fiery?"fire_":"")+frame));
|
||||
getSlot(0).set(item);
|
||||
}
|
||||
public static void spawn(ServerPlayer player,double reach,boolean fiery) {
|
||||
var display=new SlashDisplay(player,reach,fiery);
|
||||
if(player.level().addFreshEntity(display)) ACTIVE.add(display);
|
||||
@@ -37,6 +42,7 @@ public final class SlashDisplay extends Display.ItemDisplay {
|
||||
if(display.isRemoved() || !display.owner.isAlive() || display.owner.level()!=display.level() || display.level().getGameTime()>=display.expires) {
|
||||
display.discard();return true;
|
||||
}
|
||||
display.frame((int)(display.level().getGameTime()-display.born));
|
||||
return false;
|
||||
});
|
||||
}
|
||||
|
||||
@@ -18,8 +18,9 @@ import online.astradev.weapons.behavior.TwinbladeCombat;
|
||||
public final class WeaponPresentation {
|
||||
private record Animation(ItemStack weapon, String pose, boolean left, long start, int ticks, Object level) {}
|
||||
private static final Map<UUID,Animation> ANIMATIONS = new HashMap<>();
|
||||
private static final Set<UUID> WEARING = new HashSet<>();
|
||||
private static final Identifier GHOST = Identifier.parse("astraweapons:gauntlet_offhand");
|
||||
private record Presentation(String kind, int slot, ItemStack weapon) {}
|
||||
private static final Map<UUID,Presentation> PRESENTED = new HashMap<>();
|
||||
private static final Set<UUID> SWING_SENT = new HashSet<>();
|
||||
private WeaponPresentation() {}
|
||||
public static boolean reserveOffhand(ServerPlayer p) {
|
||||
if (!GauntletCombat.holds(p)) return false;
|
||||
@@ -44,29 +45,31 @@ public final class WeaponPresentation {
|
||||
return true;
|
||||
}
|
||||
public static void animate(ServerPlayer p,String pose,boolean left,int ticks) {
|
||||
SWING_SENT.remove(p.getUUID());
|
||||
ANIMATIONS.put(p.getUUID(),new Animation(p.getMainHandItem(),pose,left,p.level().getGameTime(),ticks,p.level())); sync(p);
|
||||
}
|
||||
private static ItemStack visual(ServerPlayer p,ItemStack original,boolean offhand) {
|
||||
boolean gloves = GauntletCombat.holds(p) && p.getOffhandItem().isEmpty() && !p.isSpectator() && p.isAlive();
|
||||
var animation = ANIMATIONS.get(p.getUUID());
|
||||
boolean animating = animation != null && animation.weapon == p.getMainHandItem() && animation.level == p.level();
|
||||
if (offhand) {
|
||||
if (!gloves) return original;
|
||||
var ghost = new ItemStack(Items.PAPER);
|
||||
ghost.set(DataComponents.ITEM_NAME,net.minecraft.network.chat.Component.literal("Левая боевая перчатка"));
|
||||
ghost.set(DataComponents.ITEM_MODEL,animating && animation.left ? frame(p,animation) : GHOST);
|
||||
return ghost;
|
||||
if (gloves) {
|
||||
var copy = offhand ? new ItemStack(Items.PAPER) : original.copy();
|
||||
boolean active = animating && animation.left == offhand;
|
||||
String pose = active ? animation.pose : "guard";
|
||||
copy.set(DataComponents.ITEM_MODEL,Identifier.parse("astraweapons:v2/"+pose));
|
||||
if (offhand) copy.set(DataComponents.ITEM_NAME,net.minecraft.network.chat.Component.literal("Левая боевая перчатка"));
|
||||
var type = !active ? SwingAnimationType.NONE : pose.equals("hook") ? SwingAnimationType.WHACK : SwingAnimationType.STAB;
|
||||
copy.set(DataComponents.SWING_ANIMATION,new net.minecraft.world.item.component.SwingAnimation(type,active ? Math.max(1,animation.ticks-1) : 1));
|
||||
return copy;
|
||||
}
|
||||
if (animating && (!gloves || !animation.left)) {
|
||||
var copy = original.copy(); copy.set(DataComponents.ITEM_MODEL,frame(p,animation)); return copy;
|
||||
if (!offhand && TwinbladeCombat.holdsTwinblade(p)) {
|
||||
var copy=original.copy();
|
||||
copy.set(DataComponents.ITEM_MODEL,Identifier.parse("astraweapons:v2/twinblade"));
|
||||
copy.set(DataComponents.SWING_ANIMATION,new net.minecraft.world.item.component.SwingAnimation(SwingAnimationType.WHACK,9));
|
||||
return copy;
|
||||
}
|
||||
return original;
|
||||
}
|
||||
private static Identifier frame(ServerPlayer p,Animation animation) {
|
||||
int elapsed = (int)(p.level().getGameTime()-animation.start);
|
||||
int frame = Math.clamp(elapsed*6/Math.max(1,animation.ticks),0,5);
|
||||
return Identifier.parse("astraweapons:animation/"+animation.pose+"_"+frame);
|
||||
}
|
||||
/** Used only by the outgoing packet mixin on the server thread. */
|
||||
public static Packet<?> project(ServerPlayer viewer,Packet<?> packet) {
|
||||
if (packet instanceof ClientboundBundlePacket bundle) {
|
||||
@@ -107,7 +110,16 @@ public final class WeaponPresentation {
|
||||
}
|
||||
public static boolean ghost(ItemStack stack) {
|
||||
var id=stack.get(DataComponents.ITEM_MODEL);
|
||||
return id!=null && (id.equals(GHOST) || id.getNamespace().equals("astraweapons") && id.getPath().startsWith("animation/"));
|
||||
return id!=null && id.getNamespace().equals("astraweapons") && (id.getPath().startsWith("animation/") || stack.is(Items.PAPER) && id.getPath().startsWith("v2/"));
|
||||
}
|
||||
/** A creative inventory move sends the visible copy back; strip only our presentation fields. */
|
||||
public static ItemStack restorePresentation(ItemStack stack) {
|
||||
var model=stack.get(DataComponents.ITEM_MODEL);
|
||||
String id=online.astradev.plus.content.PlusContent.id(stack);
|
||||
boolean weapon=GauntletCombat.ID.equals(id) && stack.is(Items.IRON_SWORD)
|
||||
|| TwinbladeCombat.ID.equals(id) && stack.is(Items.NETHERITE_SWORD);
|
||||
if(!weapon || model==null || !model.getNamespace().equals("astraweapons") || !model.getPath().startsWith("v2/")) return stack;
|
||||
var copy=stack.copy();copy.set(DataComponents.ITEM_MODEL,Identifier.parse(id));copy.set(DataComponents.SWING_ANIMATION,online.astradev.plus.AstraPlus.content().entry(id).stack(1).get(DataComponents.SWING_ANIMATION));return copy;
|
||||
}
|
||||
public static void sync(ServerPlayer p) {
|
||||
if (p.connection==null) return;
|
||||
@@ -121,18 +133,27 @@ public final class WeaponPresentation {
|
||||
for(var p:server.getPlayerList().getPlayers()) {
|
||||
online.add(p.getUUID());
|
||||
boolean wearing=GauntletCombat.holds(p) && p.isAlive() && !p.isSpectator() && reserveOffhand(p);
|
||||
boolean changed=wearing ? WEARING.add(p.getUUID()) : WEARING.remove(p.getUUID());
|
||||
String presented=wearing ? "gauntlets" : TwinbladeCombat.holdsTwinblade(p) ? "twinblade" : "none";
|
||||
var presentation=new Presentation(presented,presented.equals("none") ? -1 : p.getInventory().getSelectedSlot(),presented.equals("none") ? ItemStack.EMPTY : p.getMainHandItem());
|
||||
boolean changed=!presentation.equals(PRESENTED.put(p.getUUID(),presentation));
|
||||
var animation=ANIMATIONS.get(p.getUUID());
|
||||
if(animation!=null) {
|
||||
if(!p.isAlive() || p.level()!=animation.level || p.getMainHandItem()!=animation.weapon || p.level().getGameTime()-animation.start>=animation.ticks)
|
||||
ANIMATIONS.remove(p.getUUID());
|
||||
sync(p);
|
||||
{
|
||||
ANIMATIONS.remove(p.getUUID()); SWING_SENT.remove(p.getUUID()); sync(p);
|
||||
}
|
||||
else if(GauntletCombat.holds(p) && p.level().getGameTime()-animation.start>=1 && SWING_SENT.add(p.getUUID())) {
|
||||
// The local one-tick NONE swing has finished. Send the accepted hand once;
|
||||
// vanilla now interpolates the arm and weapon together, without model-frame spam.
|
||||
p.swinging=false; p.swingTime=-1;
|
||||
p.swing(animation.left ? InteractionHand.OFF_HAND : InteractionHand.MAIN_HAND,true);
|
||||
}
|
||||
} else if(changed) sync(p);
|
||||
}
|
||||
WEARING.retainAll(online); ANIMATIONS.keySet().retainAll(online);
|
||||
PRESENTED.keySet().retainAll(online); ANIMATIONS.keySet().retainAll(online); SWING_SENT.retainAll(online);
|
||||
}
|
||||
public static void close(MinecraftServer server) {
|
||||
ANIMATIONS.clear(); WEARING.clear();
|
||||
ANIMATIONS.clear(); PRESENTED.clear(); SWING_SENT.clear();
|
||||
// Projection naturally ends when the connection closes; no stored items need restoration.
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"hand_animation_on_swap": false,
|
||||
"model": {
|
||||
"type": "minecraft:select",
|
||||
"property": "minecraft:display_context",
|
||||
"cases": [
|
||||
{
|
||||
"when": [
|
||||
"gui",
|
||||
"ground",
|
||||
"fixed"
|
||||
],
|
||||
"model": {
|
||||
"type": "minecraft:model",
|
||||
"model": "astraweapons:item/iron_gauntlet_2d"
|
||||
}
|
||||
}
|
||||
],
|
||||
"fallback": {
|
||||
"type": "minecraft:model",
|
||||
"model": "astraweapons:v2/guard"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"hand_animation_on_swap": false,
|
||||
"model": {
|
||||
"type": "minecraft:select",
|
||||
"property": "minecraft:display_context",
|
||||
"cases": [
|
||||
{
|
||||
"when": [
|
||||
"gui",
|
||||
"ground",
|
||||
"fixed"
|
||||
],
|
||||
"model": {
|
||||
"type": "minecraft:model",
|
||||
"model": "astraweapons:item/iron_gauntlet_2d"
|
||||
}
|
||||
}
|
||||
],
|
||||
"fallback": {
|
||||
"type": "minecraft:model",
|
||||
"model": "astraweapons:v2/hook"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"hand_animation_on_swap": false,
|
||||
"model": {
|
||||
"type": "minecraft:select",
|
||||
"property": "minecraft:display_context",
|
||||
"cases": [
|
||||
{
|
||||
"when": [
|
||||
"gui",
|
||||
"ground",
|
||||
"fixed"
|
||||
],
|
||||
"model": {
|
||||
"type": "minecraft:model",
|
||||
"model": "astraweapons:item/iron_gauntlet_2d"
|
||||
}
|
||||
}
|
||||
],
|
||||
"fallback": {
|
||||
"type": "minecraft:model",
|
||||
"model": "astraweapons:v2/jab"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"hand_animation_on_swap": false,
|
||||
"model": {
|
||||
"type": "minecraft:select",
|
||||
"property": "minecraft:display_context",
|
||||
"cases": [
|
||||
{
|
||||
"when": [
|
||||
"gui",
|
||||
"ground",
|
||||
"fixed"
|
||||
],
|
||||
"model": {
|
||||
"type": "minecraft:model",
|
||||
"model": "astraweapons:item/iron_gauntlet_2d"
|
||||
}
|
||||
}
|
||||
],
|
||||
"fallback": {
|
||||
"type": "minecraft:model",
|
||||
"model": "astraweapons:v2/lunge"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"type": "minecraft:model",
|
||||
"model": "astraweapons:v2/slash_0"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"type": "minecraft:model",
|
||||
"model": "astraweapons:v2/slash_1"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"type": "minecraft:model",
|
||||
"model": "astraweapons:v2/slash_2"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"type": "minecraft:model",
|
||||
"model": "astraweapons:v2/slash_3"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"type": "minecraft:model",
|
||||
"model": "astraweapons:v2/slash_fire_0"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"type": "minecraft:model",
|
||||
"model": "astraweapons:v2/slash_fire_1"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"type": "minecraft:model",
|
||||
"model": "astraweapons:v2/slash_fire_2"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"model": {
|
||||
"type": "minecraft:model",
|
||||
"model": "astraweapons:v2/slash_fire_3"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"hand_animation_on_swap": false,
|
||||
"model": {
|
||||
"type": "minecraft:select",
|
||||
"property": "minecraft:display_context",
|
||||
"cases": [
|
||||
{
|
||||
"when": [
|
||||
"gui",
|
||||
"ground",
|
||||
"fixed"
|
||||
],
|
||||
"model": {
|
||||
"type": "minecraft:model",
|
||||
"model": "astraplus:internal/twinblade_gui"
|
||||
}
|
||||
}
|
||||
],
|
||||
"fallback": {
|
||||
"type": "minecraft:model",
|
||||
"model": "astraweapons:v2/twinblade"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"hand_animation_on_swap": false,
|
||||
"model": {
|
||||
"type": "minecraft:select",
|
||||
"property": "minecraft:display_context",
|
||||
"cases": [
|
||||
{
|
||||
"when": [
|
||||
"gui",
|
||||
"ground",
|
||||
"fixed"
|
||||
],
|
||||
"model": {
|
||||
"type": "minecraft:model",
|
||||
"model": "astraweapons:item/iron_gauntlet_2d"
|
||||
}
|
||||
}
|
||||
],
|
||||
"fallback": {
|
||||
"type": "minecraft:model",
|
||||
"model": "astraweapons:v2/uppercut"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"parent": "astraweapons:item/iron_gauntlet_3d",
|
||||
"display": {
|
||||
"firstperson_righthand": {
|
||||
"rotation": [
|
||||
-24,
|
||||
0,
|
||||
-8
|
||||
],
|
||||
"translation": [
|
||||
0.5,
|
||||
5.0,
|
||||
0
|
||||
],
|
||||
"scale": [
|
||||
0.9,
|
||||
0.9,
|
||||
0.9
|
||||
]
|
||||
},
|
||||
"firstperson_lefthand": {
|
||||
"rotation": [
|
||||
-24,
|
||||
0,
|
||||
8
|
||||
],
|
||||
"translation": [
|
||||
-0.5,
|
||||
5.0,
|
||||
0
|
||||
],
|
||||
"scale": [
|
||||
0.9,
|
||||
0.9,
|
||||
0.9
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"parent": "astraweapons:item/iron_gauntlet_3d",
|
||||
"display": {
|
||||
"firstperson_righthand": {
|
||||
"rotation": [
|
||||
-24,
|
||||
0,
|
||||
4
|
||||
],
|
||||
"translation": [
|
||||
0.5,
|
||||
5.0,
|
||||
0
|
||||
],
|
||||
"scale": [
|
||||
0.9,
|
||||
0.9,
|
||||
0.9
|
||||
]
|
||||
},
|
||||
"firstperson_lefthand": {
|
||||
"rotation": [
|
||||
-24,
|
||||
0,
|
||||
-4
|
||||
],
|
||||
"translation": [
|
||||
-0.5,
|
||||
5.0,
|
||||
0
|
||||
],
|
||||
"scale": [
|
||||
0.9,
|
||||
0.9,
|
||||
0.9
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"parent": "astraweapons:item/iron_gauntlet_3d",
|
||||
"display": {
|
||||
"firstperson_righthand": {
|
||||
"rotation": [
|
||||
-24,
|
||||
0,
|
||||
-8
|
||||
],
|
||||
"translation": [
|
||||
0.5,
|
||||
5.0,
|
||||
0
|
||||
],
|
||||
"scale": [
|
||||
0.9,
|
||||
0.9,
|
||||
0.9
|
||||
]
|
||||
},
|
||||
"firstperson_lefthand": {
|
||||
"rotation": [
|
||||
-24,
|
||||
0,
|
||||
8
|
||||
],
|
||||
"translation": [
|
||||
-0.5,
|
||||
5.0,
|
||||
0
|
||||
],
|
||||
"scale": [
|
||||
0.9,
|
||||
0.9,
|
||||
0.9
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"parent": "astraweapons:item/iron_gauntlet_3d",
|
||||
"display": {
|
||||
"firstperson_righthand": {
|
||||
"rotation": [
|
||||
-24,
|
||||
0,
|
||||
-8
|
||||
],
|
||||
"translation": [
|
||||
0.5,
|
||||
5.0,
|
||||
0
|
||||
],
|
||||
"scale": [
|
||||
0.9,
|
||||
0.9,
|
||||
0.9
|
||||
]
|
||||
},
|
||||
"firstperson_lefthand": {
|
||||
"rotation": [
|
||||
-24,
|
||||
0,
|
||||
8
|
||||
],
|
||||
"translation": [
|
||||
-0.5,
|
||||
5.0,
|
||||
0
|
||||
],
|
||||
"scale": [
|
||||
0.9,
|
||||
0.9,
|
||||
0.9
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"textures": {
|
||||
"slash": "astraweapons:item/v2/slash_0",
|
||||
"particle": "astraweapons:item/v2/slash_0"
|
||||
},
|
||||
"elements": [
|
||||
{
|
||||
"from": [
|
||||
0,
|
||||
8,
|
||||
0
|
||||
],
|
||||
"to": [
|
||||
16,
|
||||
8,
|
||||
16
|
||||
],
|
||||
"shade": false,
|
||||
"light_emission": 15,
|
||||
"faces": {
|
||||
"up": {
|
||||
"texture": "#slash",
|
||||
"uv": [
|
||||
0,
|
||||
0,
|
||||
16,
|
||||
16
|
||||
]
|
||||
},
|
||||
"down": {
|
||||
"texture": "#slash",
|
||||
"uv": [
|
||||
0,
|
||||
0,
|
||||
16,
|
||||
16
|
||||
],
|
||||
"rotation": 180
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"textures": {
|
||||
"slash": "astraweapons:item/v2/slash_1",
|
||||
"particle": "astraweapons:item/v2/slash_1"
|
||||
},
|
||||
"elements": [
|
||||
{
|
||||
"from": [
|
||||
0,
|
||||
8,
|
||||
0
|
||||
],
|
||||
"to": [
|
||||
16,
|
||||
8,
|
||||
16
|
||||
],
|
||||
"shade": false,
|
||||
"light_emission": 15,
|
||||
"faces": {
|
||||
"up": {
|
||||
"texture": "#slash",
|
||||
"uv": [
|
||||
0,
|
||||
0,
|
||||
16,
|
||||
16
|
||||
]
|
||||
},
|
||||
"down": {
|
||||
"texture": "#slash",
|
||||
"uv": [
|
||||
0,
|
||||
0,
|
||||
16,
|
||||
16
|
||||
],
|
||||
"rotation": 180
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"textures": {
|
||||
"slash": "astraweapons:item/v2/slash_2",
|
||||
"particle": "astraweapons:item/v2/slash_2"
|
||||
},
|
||||
"elements": [
|
||||
{
|
||||
"from": [
|
||||
0,
|
||||
8,
|
||||
0
|
||||
],
|
||||
"to": [
|
||||
16,
|
||||
8,
|
||||
16
|
||||
],
|
||||
"shade": false,
|
||||
"light_emission": 15,
|
||||
"faces": {
|
||||
"up": {
|
||||
"texture": "#slash",
|
||||
"uv": [
|
||||
0,
|
||||
0,
|
||||
16,
|
||||
16
|
||||
]
|
||||
},
|
||||
"down": {
|
||||
"texture": "#slash",
|
||||
"uv": [
|
||||
0,
|
||||
0,
|
||||
16,
|
||||
16
|
||||
],
|
||||
"rotation": 180
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"textures": {
|
||||
"slash": "astraweapons:item/v2/slash_3",
|
||||
"particle": "astraweapons:item/v2/slash_3"
|
||||
},
|
||||
"elements": [
|
||||
{
|
||||
"from": [
|
||||
0,
|
||||
8,
|
||||
0
|
||||
],
|
||||
"to": [
|
||||
16,
|
||||
8,
|
||||
16
|
||||
],
|
||||
"shade": false,
|
||||
"light_emission": 15,
|
||||
"faces": {
|
||||
"up": {
|
||||
"texture": "#slash",
|
||||
"uv": [
|
||||
0,
|
||||
0,
|
||||
16,
|
||||
16
|
||||
]
|
||||
},
|
||||
"down": {
|
||||
"texture": "#slash",
|
||||
"uv": [
|
||||
0,
|
||||
0,
|
||||
16,
|
||||
16
|
||||
],
|
||||
"rotation": 180
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"textures": {
|
||||
"slash": "astraweapons:item/v2/slash_fire_0",
|
||||
"particle": "astraweapons:item/v2/slash_fire_0"
|
||||
},
|
||||
"elements": [
|
||||
{
|
||||
"from": [
|
||||
0,
|
||||
8,
|
||||
0
|
||||
],
|
||||
"to": [
|
||||
16,
|
||||
8,
|
||||
16
|
||||
],
|
||||
"shade": false,
|
||||
"light_emission": 15,
|
||||
"faces": {
|
||||
"up": {
|
||||
"texture": "#slash",
|
||||
"uv": [
|
||||
0,
|
||||
0,
|
||||
16,
|
||||
16
|
||||
]
|
||||
},
|
||||
"down": {
|
||||
"texture": "#slash",
|
||||
"uv": [
|
||||
0,
|
||||
0,
|
||||
16,
|
||||
16
|
||||
],
|
||||
"rotation": 180
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"textures": {
|
||||
"slash": "astraweapons:item/v2/slash_fire_1",
|
||||
"particle": "astraweapons:item/v2/slash_fire_1"
|
||||
},
|
||||
"elements": [
|
||||
{
|
||||
"from": [
|
||||
0,
|
||||
8,
|
||||
0
|
||||
],
|
||||
"to": [
|
||||
16,
|
||||
8,
|
||||
16
|
||||
],
|
||||
"shade": false,
|
||||
"light_emission": 15,
|
||||
"faces": {
|
||||
"up": {
|
||||
"texture": "#slash",
|
||||
"uv": [
|
||||
0,
|
||||
0,
|
||||
16,
|
||||
16
|
||||
]
|
||||
},
|
||||
"down": {
|
||||
"texture": "#slash",
|
||||
"uv": [
|
||||
0,
|
||||
0,
|
||||
16,
|
||||
16
|
||||
],
|
||||
"rotation": 180
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"textures": {
|
||||
"slash": "astraweapons:item/v2/slash_fire_2",
|
||||
"particle": "astraweapons:item/v2/slash_fire_2"
|
||||
},
|
||||
"elements": [
|
||||
{
|
||||
"from": [
|
||||
0,
|
||||
8,
|
||||
0
|
||||
],
|
||||
"to": [
|
||||
16,
|
||||
8,
|
||||
16
|
||||
],
|
||||
"shade": false,
|
||||
"light_emission": 15,
|
||||
"faces": {
|
||||
"up": {
|
||||
"texture": "#slash",
|
||||
"uv": [
|
||||
0,
|
||||
0,
|
||||
16,
|
||||
16
|
||||
]
|
||||
},
|
||||
"down": {
|
||||
"texture": "#slash",
|
||||
"uv": [
|
||||
0,
|
||||
0,
|
||||
16,
|
||||
16
|
||||
],
|
||||
"rotation": 180
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"textures": {
|
||||
"slash": "astraweapons:item/v2/slash_fire_3",
|
||||
"particle": "astraweapons:item/v2/slash_fire_3"
|
||||
},
|
||||
"elements": [
|
||||
{
|
||||
"from": [
|
||||
0,
|
||||
8,
|
||||
0
|
||||
],
|
||||
"to": [
|
||||
16,
|
||||
8,
|
||||
16
|
||||
],
|
||||
"shade": false,
|
||||
"light_emission": 15,
|
||||
"faces": {
|
||||
"up": {
|
||||
"texture": "#slash",
|
||||
"uv": [
|
||||
0,
|
||||
0,
|
||||
16,
|
||||
16
|
||||
]
|
||||
},
|
||||
"down": {
|
||||
"texture": "#slash",
|
||||
"uv": [
|
||||
0,
|
||||
0,
|
||||
16,
|
||||
16
|
||||
],
|
||||
"rotation": 180
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"parent": "astraplus:item/netherite_twinblade",
|
||||
"display": {
|
||||
"firstperson_righthand": {
|
||||
"rotation": [
|
||||
0,
|
||||
-90,
|
||||
55
|
||||
],
|
||||
"translation": [
|
||||
1.1,
|
||||
1.4,
|
||||
0
|
||||
],
|
||||
"scale": [
|
||||
1.85,
|
||||
1.85,
|
||||
0.68
|
||||
]
|
||||
},
|
||||
"firstperson_lefthand": {
|
||||
"rotation": [
|
||||
0,
|
||||
90,
|
||||
-55
|
||||
],
|
||||
"translation": [
|
||||
1.1,
|
||||
1.4,
|
||||
0
|
||||
],
|
||||
"scale": [
|
||||
1.85,
|
||||
1.85,
|
||||
0.68
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"parent": "astraweapons:item/iron_gauntlet_3d",
|
||||
"display": {
|
||||
"firstperson_righthand": {
|
||||
"rotation": [
|
||||
-36,
|
||||
0,
|
||||
-8
|
||||
],
|
||||
"translation": [
|
||||
0.5,
|
||||
5.0,
|
||||
0
|
||||
],
|
||||
"scale": [
|
||||
0.9,
|
||||
0.9,
|
||||
0.9
|
||||
]
|
||||
},
|
||||
"firstperson_lefthand": {
|
||||
"rotation": [
|
||||
-36,
|
||||
0,
|
||||
8
|
||||
],
|
||||
"translation": [
|
||||
-0.5,
|
||||
5.0,
|
||||
0
|
||||
],
|
||||
"scale": [
|
||||
0.9,
|
||||
0.9,
|
||||
0.9
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 524 B |
|
After Width: | Height: | Size: 718 B |
|
After Width: | Height: | Size: 567 B |
|
After Width: | Height: | Size: 678 B |
|
After Width: | Height: | Size: 527 B |
|
After Width: | Height: | Size: 720 B |
|
After Width: | Height: | Size: 575 B |
|
After Width: | Height: | Size: 685 B |
@@ -40,6 +40,20 @@ resources/assets/astraweapons/items/animation/uppercut_5.json
|
||||
resources/assets/astraweapons/items/gauntlet_offhand.json
|
||||
resources/assets/astraweapons/items/slash.json
|
||||
resources/assets/astraweapons/items/slash_fire.json
|
||||
resources/assets/astraweapons/items/v2/guard.json
|
||||
resources/assets/astraweapons/items/v2/hook.json
|
||||
resources/assets/astraweapons/items/v2/jab.json
|
||||
resources/assets/astraweapons/items/v2/lunge.json
|
||||
resources/assets/astraweapons/items/v2/slash_0.json
|
||||
resources/assets/astraweapons/items/v2/slash_1.json
|
||||
resources/assets/astraweapons/items/v2/slash_2.json
|
||||
resources/assets/astraweapons/items/v2/slash_3.json
|
||||
resources/assets/astraweapons/items/v2/slash_fire_0.json
|
||||
resources/assets/astraweapons/items/v2/slash_fire_1.json
|
||||
resources/assets/astraweapons/items/v2/slash_fire_2.json
|
||||
resources/assets/astraweapons/items/v2/slash_fire_3.json
|
||||
resources/assets/astraweapons/items/v2/twinblade.json
|
||||
resources/assets/astraweapons/items/v2/uppercut.json
|
||||
resources/assets/astraweapons/lang/en_us.json
|
||||
resources/assets/astraweapons/lang/ru_ru.json
|
||||
resources/assets/astraweapons/models/animation/hook_0.json
|
||||
@@ -76,6 +90,20 @@ resources/assets/astraweapons/models/effect/slash.json
|
||||
resources/assets/astraweapons/models/effect/slash_fire.json
|
||||
resources/assets/astraweapons/models/item/iron_gauntlet_2d.json
|
||||
resources/assets/astraweapons/models/item/iron_gauntlet_3d.json
|
||||
resources/assets/astraweapons/models/v2/guard.json
|
||||
resources/assets/astraweapons/models/v2/hook.json
|
||||
resources/assets/astraweapons/models/v2/jab.json
|
||||
resources/assets/astraweapons/models/v2/lunge.json
|
||||
resources/assets/astraweapons/models/v2/slash_0.json
|
||||
resources/assets/astraweapons/models/v2/slash_1.json
|
||||
resources/assets/astraweapons/models/v2/slash_2.json
|
||||
resources/assets/astraweapons/models/v2/slash_3.json
|
||||
resources/assets/astraweapons/models/v2/slash_fire_0.json
|
||||
resources/assets/astraweapons/models/v2/slash_fire_1.json
|
||||
resources/assets/astraweapons/models/v2/slash_fire_2.json
|
||||
resources/assets/astraweapons/models/v2/slash_fire_3.json
|
||||
resources/assets/astraweapons/models/v2/twinblade.json
|
||||
resources/assets/astraweapons/models/v2/uppercut.json
|
||||
resources/assets/astraweapons/sounds.json
|
||||
resources/assets/astraweapons/sounds/gauntlets/sfx_item_gauntletshitimpactkick-001_soundwave.ogg
|
||||
resources/assets/astraweapons/sounds/gauntlets/sfx_item_gauntletshitimpactkick-002_soundwave.ogg
|
||||
@@ -107,3 +135,11 @@ resources/assets/astraweapons/textures/item/slash.png
|
||||
resources/assets/astraweapons/textures/item/slash.png.mcmeta
|
||||
resources/assets/astraweapons/textures/item/slash_fire.png
|
||||
resources/assets/astraweapons/textures/item/slash_fire.png.mcmeta
|
||||
resources/assets/astraweapons/textures/item/v2/slash_0.png
|
||||
resources/assets/astraweapons/textures/item/v2/slash_1.png
|
||||
resources/assets/astraweapons/textures/item/v2/slash_2.png
|
||||
resources/assets/astraweapons/textures/item/v2/slash_3.png
|
||||
resources/assets/astraweapons/textures/item/v2/slash_fire_0.png
|
||||
resources/assets/astraweapons/textures/item/v2/slash_fire_1.png
|
||||
resources/assets/astraweapons/textures/item/v2/slash_fire_2.png
|
||||
resources/assets/astraweapons/textures/item/v2/slash_fire_3.png
|
||||
|
||||