Guest User

Untitled

a guest
Aug 12th, 2016
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. public void spawnTwigs(Block block, World world, Random random, int chunkX, int chunkZ, int spawnChance) {
  2. for (int i = 0; i < spawnChance; i++) {
  3. int posX = chunkX + random.nextInt(16);
  4. int posY = (world.getActualHeight());
  5. int posZ = chunkZ + random.nextInt(16);
  6. BlockPos blockPos = new BlockPos(posX, posY, posZ);
  7. (new IWorldGenTwigs((BlockTwigs)block)).generate(world, random, blockPos);
  8. }
  9. }
Add Comment
Please, Sign In to add comment