"Enhanced Stalinium items and effects. Increased speed, knockback resistance, and added attack speed to StaliniumChargeEffect for better combat utility. Adjusted StaliniumSwordItem cooldown and implemented ally boost effect on hit. Made all tools implement hurtEnemy for consistency. Removed unnecessary getMaxDamage overrides and kept items unbreakable. Minor cleanup in code formatting."

This commit is contained in:
IM23a-spirgif
2025-05-27 09:51:01 +02:00
parent 7007a9684b
commit ef9489574e
5 changed files with 54 additions and 34 deletions
@@ -38,7 +38,6 @@ public class StaliniumShovelItem extends ShovelItem {
}
}
}
if (anyBroken && miningEntity instanceof Player player) {
MobEffectInstance selfHaste = new MobEffectInstance(MobEffects.DIG_SPEED, 100, 1, false, true, true);
player.addEffect(selfHaste);
@@ -57,6 +56,11 @@ public class StaliniumShovelItem extends ShovelItem {
return true;
}
@Override
public boolean hurtEnemy(ItemStack stack, LivingEntity target, LivingEntity attacker) {
return true;
}
@Override
public boolean isDamageable(ItemStack stack) {
return false;
@@ -67,11 +71,6 @@ public class StaliniumShovelItem extends ShovelItem {
return false;
}
@Override
public int getMaxDamage(ItemStack stack) {
return 2;
}
@Override
public InteractionResult useOn(UseOnContext ctx) {
ItemStack stack = ctx.getItemInHand();