fixed dumb shit
This commit is contained in:
@@ -34,7 +34,7 @@ public class weemItems {
|
||||
.statusEffect(new StatusEffectInstance(StatusEffects.LEVITATION, 20*7), 1f)
|
||||
.statusEffect(new StatusEffectInstance(GamerEffects.HIGH, 20*8), 1f)
|
||||
.build()
|
||||
));
|
||||
).maxCount(64));
|
||||
|
||||
public static final Item WEEM_APPLE = new WeemItem(new FabricItemSettings().group(gameritems.CHING)
|
||||
.food(
|
||||
|
||||
@@ -11,12 +11,12 @@ public class GamerEffects {
|
||||
|
||||
public static final StatusEffect HIGH = new highStatusEffect();
|
||||
|
||||
public static final StatusEffect JEREMYD = new jeremydStatusEffect();
|
||||
//public static final StatusEffect JEREMYD = new jeremydStatusEffect();
|
||||
|
||||
public static void register() {
|
||||
Registry.register(Registry.STATUS_EFFECT, new Identifier("gameritems", "high"), HIGH);
|
||||
|
||||
Registry.register(Registry.STATUS_EFFECT, new Identifier("gameritems", "jeremyd"), JEREMYD);
|
||||
//Registry.register(Registry.STATUS_EFFECT, new Identifier("gameritems", "jeremyd"), JEREMYD);
|
||||
|
||||
gameritems.LOGGER.info("statusEffects Loaded");
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package net.arcmods.ryantlg.statusEffects.effectClasses;
|
||||
|
||||
import net.minecraft.entity.LivingEntity;
|
||||
import net.minecraft.entity.damage.DamageSource;
|
||||
//import net.minecraft.entity.damage.DamageSource;
|
||||
import net.minecraft.entity.effect.StatusEffect;
|
||||
import net.minecraft.entity.effect.StatusEffectCategory;
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
@@ -22,13 +22,9 @@ public class highStatusEffect extends StatusEffect{
|
||||
@Override
|
||||
public void applyUpdateEffect(LivingEntity entity, int amplifier) {
|
||||
if (entity instanceof PlayerEntity) {
|
||||
((PlayerEntity) entity).addExperience(0 << amplifier);
|
||||
((PlayerEntity) entity).getFallSounds();
|
||||
((PlayerEntity) entity).disableShield(true);
|
||||
((PlayerEntity) entity).dismountVehicle();
|
||||
((PlayerEntity) entity).damage(DamageSource.FALL, (float) 0.01);
|
||||
((PlayerEntity) entity).heal(3 << amplifier);
|
||||
((PlayerEntity) entity).getFallSounds();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user