- 682
- 20
- 319
Пытаюсь заспавнить курицу, но после спавна она не подает признаков жизни
z:
public void spawnCreature(World world, int p_77840_1_, double x, double y,
double z) {
EntityChicken entity = new EntityChicken(world);
entity.spawnExplosionParticle();
EntityLiving entityliving = (EntityLiving) entity;
entityliving.rotationYawHead = entityliving.rotationYaw;
entityliving.renderYawOffset = entityliving.rotationYaw;
world.spawnEntityInWorld(entityliving);
entityliving.setLocationAndAngles(x, y, z,
MathHelper.wrapAngleTo180_float(world.rand.nextFloat() * 360.0F), 0.0F);
entityliving.playLivingSound();
System.out.println("d");
}