Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package fr.lavapower.harmonia.common;
- import java.util.Random;
- import net.minecraft.init.Blocks;
- import net.minecraft.world.World;
- import net.minecraft.world.gen.feature.WorldGenerator;
- public class GenOrtie extends WorldGenerator
- {
- public boolean generate(World world, Random p_76484_2_, int x, int y, int z)
- {
- if (world.getBlock(x, y - 1, z) == Blocks.grass && world.isAirBlock(x, y, z))
- {
- world.setBlock(x, y, z, ModHarmonia.ortie);
- return true;
- }
- return false;
- }
- }
Add Comment
Please, Sign In to add comment