329330331332333334335336337338339
Vector3d cartPos = EntityUtil.getEntityPosition(cart); if(playerPos.distanceSquared(cartPos) <= 9) { player.posX = cart.posX; player.posY = cart.posY; player.posZ = cart.posZ; player.mountEntity(cart); return true; } } } }
116117118119120121122123124125126
{ final EntityPlayer player = this.worldObj.getClosestPlayerToEntity(this, 5); if (player != null && player.ridingEntity == null) { player.mountEntity(this); } } } if (!this.worldObj.isRemote)
919293949596979899100101
{ final EntityPlayer player = this.worldObj.getClosestPlayerToEntity(this, 5); if (player != null && player.ridingEntity == null) { player.mountEntity(this); } } } AxisAlignedBB box = this.boundingBox.expand(0.2D, 0.4D, 0.2D);