Advertisement
Guest User

Untitled

a guest
Apr 14th, 2022
14
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. setSize(int p_70799_1_, boolean p_70799_2_) {
  2. this.entityData.set(ID_SIZE, p_70799_1_);
  3. this.reapplyPosition();
  4. this.refreshDimensions();
  5. this.getAttribute(Attributes.MAX_HEALTH).setBaseValue((double)(p_70799_1_ * p_70799_1_));
  6. this.getAttribute(Attributes.MOVEMENT_SPEED).setBaseValue((double)(0.2F + 0.1F * (float)p_70799_1_));
  7. this.getAttribute(Attributes.ATTACK_DAMAGE).setBaseValue((double)p_70799_1_);
  8. if (p_70799_2_) {
  9. this.setHealth(this.getMaxHealth());
  10. }
  11.  
  12. this.xpReward = p_70799_1_;
  13. }
Advertisement
RAW Paste Data Copied
Advertisement