@Override protected void applyEntityAttributes() { super.applyEntityAttributes(); this.getEntityAttribute(SharedMonsterAttributes.maxHealth) .setBaseValue(net.divinerpg.entities.base.EntityStats.golemRejuvHealth); this.getEntityAttribute(SharedMonsterAttributes.movementSpeed) .setBaseValue(net.divinerpg.entities.base.EntityStats.golemRejuvSpeed); this.getEntityAttribute(SharedMonsterAttributes.followRange) .setBaseValue(net.divinerpg.entities.base.EntityStats.golemRejuvFollowRange); }
@Override public void onUpdate() { super.onUpdate(); if (this.getOwner() != null) { if (this.healTimer == 16) { this.getOwner().heal(1); this.healTimer = 0; } else { this.healTimer++; } } }