Add sweeping twinblade and animated seven-hit combat gauntlets

This commit is contained in:
2026-09-13 10:13:18 +03:00
commit 4ff0ed89b5
167 changed files with 6650 additions and 0 deletions
@@ -0,0 +1,17 @@
package online.astradev.weapons.mixin;
import net.minecraft.server.level.ServerPlayer;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Redirect;
import online.astradev.weapons.behavior.GauntletCombat;
import online.astradev.weapons.behavior.TwinbladeCombat;
/** Charge belongs to accepted custom strikes, not rejected/duplicate animation packets. */
@Mixin(ServerPlayer.class)
public abstract class WeaponSwingChargeMixin {
@Redirect(method="swing(Lnet/minecraft/world/InteractionHand;)V",at=@At(value="INVOKE",target="Lnet/minecraft/server/level/ServerPlayer;resetAttackStrengthTicker()V"))
private void astraweapons$charge(ServerPlayer player) {
if(!GauntletCombat.holds(player) && !TwinbladeCombat.holdsTwinblade(player)) player.resetAttackStrengthTicker();
}
}