Guest User

Mon GenOrtie

a guest
Aug 6th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. package fr.lavapower.harmonia.common;
  2.  
  3. import java.util.Random;
  4.  
  5. import net.minecraft.init.Blocks;
  6. import net.minecraft.world.World;
  7. import net.minecraft.world.gen.feature.WorldGenerator;
  8.  
  9. public class GenOrtie extends WorldGenerator
  10. {
  11.  
  12. public boolean generate(World world, Random p_76484_2_, int x, int y, int z)
  13. {
  14. if (world.getBlock(x, y - 1, z) == Blocks.grass && world.isAirBlock(x, y, z))
  15. {
  16. world.setBlock(x, y, z, ModHarmonia.ortie);
  17. return true;
  18. }
  19. return false;
  20. }
  21.  
  22. }
Add Comment
Please, Sign In to add comment