Advertisement
Guest User

WorldGenYourFlower

a guest
Nov 30th, 2013
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. package assets.betterdefense.common;
  2.  
  3. import java.util.Random;
  4. import net.minecraft.block.Block;
  5. import net.minecraft.world.World;
  6. import net.minecraft.world.gen.feature.WorldGenerator;
  7.  
  8. public class WorldGenYourFlower extends WorldGenerator
  9. {
  10. public boolean generate(World par1World, Random par2Random, int X, int Y, int Z)
  11. {
  12. if (par1World.isAirBlock(x, y, z) && PenguinMod.flowerPineapple.canBlockStay(par1World, x, y, z))
  13. par1World.setBlock(X, Y, Z, PenguinMod.flowerPineapple.blockID);
  14.  
  15.  
  16. return true;
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement