Jump to content

NamelessSlime

Members
  • Posts

    1
  • Joined

  • Last visited

NamelessSlime's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. @Override public void removeAttributeModifiers(LivingEntity livingEntity, AttributeMap attributeMap, int pAmplifier) { super.removeAttributeModifiers(livingEntity, attributeMap, pAmplifier); if (livingEntity.isAffectedByPotions()) { livingEntity.setHealth(livingEntity.getMaxHealth() - ((float) pAmplifier)); } } I want to Decrease Max HP of Entity with potion Effect This code is acutally work, But what i Expected This code only decrease current hp not the MaxHp
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.