Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.vinctweaks.generation;
- import java.util.Random;
- import com.vinctweaks.init.ModBlocks;
- import net.minecraft.block.Block;
- import net.minecraft.init.Blocks;
- import net.minecraft.util.ChunkCoordinates;
- import net.minecraft.world.World;
- import net.minecraft.world.biome.BiomeGenBase;
- import net.minecraft.world.chunk.IChunkProvider;
- import net.minecraft.world.gen.feature.WorldGenMinable;
- public class VincTweaksWorldGeneration {
- public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider)
- {
- switch (world.provider.dimensionId)
- {
- case 0:
- generateSurface(world, random, chunkX * 16, chunkZ * 16);
- case -1:
- generateNether(world, random, chunkX * 16, chunkZ * 16);
- case 1:
- generateEnd(world, random, chunkX * 16, chunkZ * 16);
- }
- }
- /**
- * addOreSpawn(block, world, random, x, z, 16, 16, amount per vein, spawn chance, minY, maxY)
- */
- private void generateSurface(World world, Random random, int x, int z)
- {
- addOreSpawn(ModBlocks.slimeOre, world, random, x, z, 16, 16, 4 + random.nextInt(3), 100, 10, 100);
- }
- private void generateNether(World world, Random random, int x, int z)
- {
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement