This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
Quote from ShaneCraft»you have to check if the world is server sided, because the world gen gets called on the server and the client. EntityVillager villager = new EntityVillager(world); villager.setLocationAndRotation(x,y,z, 0.0f, 0.0f); if (!world.isRemote) world.spawnEntityInWorld(villager);
EntityVillager villager = new EntityVillager(world); villager.setLocationAndRotation(x,y,z, 0.0f, 0.0f); if (!world.isRemote) world.spawnEntityInWorld(villager);
if(!world.isRemote) { EntityVillager villager = new EntityVillager(world); villager.setLocationAndRotation(x,y,z, 0.0f, 0.0f); world.spawnEntityInWorld(villager); }
Hello!
any help?
I agree with this but instead of just the spawn, put everything in the block, like so:
Hello!