Effect fixes
This commit is contained in:
parent
57191936dc
commit
3e6bcd2bc6
4 changed files with 10 additions and 26 deletions
|
@ -8,30 +8,9 @@ import ru.betterend.BetterEnd;
|
|||
import ru.betterend.effects.status.EndVeilEffect;
|
||||
|
||||
public class EndStatusEffects {
|
||||
public final static MobEffectInstance CRYSTALITE_HEALTH_REGEN = new MobEffectInstance(
|
||||
MobEffects.REGENERATION,
|
||||
40,
|
||||
0,
|
||||
true,
|
||||
false,
|
||||
true
|
||||
);
|
||||
public final static MobEffectInstance CRYSTALITE_DIG_SPEED = new MobEffectInstance(
|
||||
MobEffects.DIG_SPEED,
|
||||
40,
|
||||
0,
|
||||
true,
|
||||
false,
|
||||
true
|
||||
);
|
||||
public final static MobEffectInstance CRYSTALITE_MOVE_SPEED = new MobEffectInstance(
|
||||
MobEffects.MOVEMENT_SPEED,
|
||||
40,
|
||||
0,
|
||||
true,
|
||||
false,
|
||||
true
|
||||
);
|
||||
public final static MobEffectInstance CRYSTALITE_HEALTH_REGEN = new MobEffectInstance(MobEffects.REGENERATION, 80, 0, true, false, true);
|
||||
public final static MobEffectInstance CRYSTALITE_DIG_SPEED = new MobEffectInstance(MobEffects.DIG_SPEED, 80, 0, true, false, true);
|
||||
public final static MobEffectInstance CRYSTALITE_MOVE_SPEED = new MobEffectInstance(MobEffects.MOVEMENT_SPEED, 80, 0, true, false, true);
|
||||
|
||||
public final static MobEffect END_VEIL = registerEffect("end_veil", new EndVeilEffect());
|
||||
|
||||
|
|
|
@ -30,7 +30,9 @@ public class CrystaliteArmor extends BaseArmorItem {
|
|||
}
|
||||
|
||||
public static void applySetEffect(LivingEntity owner) {
|
||||
owner.addEffect(new MobEffectInstance(EndStatusEffects.CRYSTALITE_HEALTH_REGEN));
|
||||
if ((owner.tickCount & 63) == 0) {
|
||||
owner.addEffect(new MobEffectInstance(EndStatusEffects.CRYSTALITE_HEALTH_REGEN));
|
||||
}
|
||||
}
|
||||
|
||||
static {
|
||||
|
|
|
@ -26,7 +26,9 @@ public class CrystaliteBoots extends CrystaliteArmor implements MobEffectApplier
|
|||
|
||||
@Override
|
||||
public void applyEffect(LivingEntity owner) {
|
||||
owner.addEffect(new MobEffectInstance(EndStatusEffects.CRYSTALITE_MOVE_SPEED));
|
||||
if ((owner.tickCount & 63) == 0) {
|
||||
owner.addEffect(new MobEffectInstance(EndStatusEffects.CRYSTALITE_MOVE_SPEED));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -30,6 +30,7 @@ import org.spongepowered.asm.mixin.injection.ModifyArg;
|
|||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
|
||||
import ru.betterend.BetterEnd;
|
||||
import ru.betterend.effects.EndStatusEffects;
|
||||
import ru.betterend.interfaces.FallFlyingItem;
|
||||
import ru.betterend.interfaces.MobEffectApplier;
|
||||
import ru.betterend.item.CrystaliteArmor;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue