mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-17 10:55:17 +00:00
Shorten loonium potion effects on creepers, closes #2233
This commit is contained in:
1 parent
e4102224b6
commit
44738451ef
1 file changed
+4
-4
@@ -129,10 +129,10 @@ public class SubTileLoonuim extends SubTileFunctional {
|
||||
map.put(SharedMonsterAttributes.MAX_HEALTH.getName(), new AttributeModifier("Loonium Modififer Health", 2, 1));
|
||||
map.put(SharedMonsterAttributes.ATTACK_DAMAGE.getName(), new AttributeModifier("Loonium Modififer Damage", 1.5, 1));
|
||||
entity.getAttributeMap().applyAttributeModifiers(map);
|
||||
|
||||
entity.addPotionEffect(new PotionEffect(MobEffects.FIRE_RESISTANCE, Integer.MAX_VALUE, 0));
|
||||
entity.addPotionEffect(new PotionEffect(MobEffects.REGENERATION, Integer.MAX_VALUE, 0));
|
||||
|
||||
|
||||
entity.addPotionEffect(new PotionEffect(MobEffects.FIRE_RESISTANCE, entity instanceof EntityCreeper ? 100 : Integer.MAX_VALUE, 0));
|
||||
entity.addPotionEffect(new PotionEffect(MobEffects.REGENERATION, entity instanceof EntityCreeper ? 100 : Integer.MAX_VALUE, 0));
|
||||
|
||||
NBTTagCompound cmp = stack.writeToNBT(new NBTTagCompound());
|
||||
entity.getEntityData().setTag(TAG_ITEMSTACK_TO_DROP, cmp);
|
||||
|
||||
|
||||
Reference in new issue
Block a user