public void onLivingUpdate() { super.onLivingUpdate(); if (this.onGround && jumpDelay-- <= 0) { getControllerJump().a(); jumpDelay = (this.random.nextInt(20) + 50); this.makeSound( "entity.magmacube.jump", 1.0F, ((this.random.nextFloat() - this.random.nextFloat()) * 0.2F + 1.0F) / 0.8F); } }
public void setPathfinder() { super.setPathfinder(); petPathfinderSelector.replaceGoal( "MeleeAttack", new MeleeAttack(this, 0.1F, 3 + (getMyPet().getSize() * 0.51), 20)); }
protected void initDatawatcher() { super.initDatawatcher(); this.datawatcher.register(sizeWatcher, 1); // size }