Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void spawnTwigs(Block block, World world, Random random, int chunkX, int chunkZ, int spawnChance) {
- for (int i = 0; i < spawnChance; i++) {
- int posX = chunkX + random.nextInt(16);
- int posY = (world.getActualHeight());
- int posZ = chunkZ + random.nextInt(16);
- BlockPos blockPos = new BlockPos(posX, posY, posZ);
- (new IWorldGenTwigs((BlockTwigs)block)).generate(world, random, blockPos);
- }
- }
Add Comment
Please, Sign In to add comment