@Override
public void generate(Random random, int chunkX, int chunkZ, World world, IChunkGenerator chunkGenerator,
IChunkProvider chunkProvider) {
for (int i = 0; i < 25; i++)
{
int x = chunkX * 16 + random.nextInt(16);
int z = chunkZ * 16 + random.nextInt(16);
BlockPos pos = world.getHeight(new BlockPos(x, 0, z));
if (world.getBlockState(pos).getBlock() instanceof BlockTallGrass)
{
world.setBlockState(pos, ARKCraftBlocks.berryBush.getDefaultState());
}
}
}
WorldGeneratorBushes.java 文件源码
java
阅读 29
收藏 0
点赞 0
评论 0
项目:ARKCraft
作者:
评论列表
文章目录