Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- setSize(int p_70799_1_, boolean p_70799_2_) {
- this.entityData.set(ID_SIZE, p_70799_1_);
- this.reapplyPosition();
- this.refreshDimensions();
- this.getAttribute(Attributes.MAX_HEALTH).setBaseValue((double)(p_70799_1_ * p_70799_1_));
- this.getAttribute(Attributes.MOVEMENT_SPEED).setBaseValue((double)(0.2F + 0.1F * (float)p_70799_1_));
- this.getAttribute(Attributes.ATTACK_DAMAGE).setBaseValue((double)p_70799_1_);
- if (p_70799_2_) {
- this.setHealth(this.getMaxHealth());
- }
- this.xpReward = p_70799_1_;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement