Advertisement
Guest User

Untitled

a guest
Dec 18th, 2016
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. package fr.tuto.sylvain.common;
  2.  
  3. import java.util.Random;
  4. import net.minecraft.block.Block;
  5. import net.minecraft.block.material.Material;
  6. import net.minecraft.world.World;
  7.  
  8. public class BlockPeche
  9. extends Block
  10. {
  11. public void onBlockDestroyedByPlayer(World world, int x, int y, int z, int l)
  12. {
  13. world.setBlock(x, y, z, ModStylvain.BlockPeche, 0, 2);
  14. }
  15.  
  16. protected BlockPeche()
  17. {
  18. super(Material.leaves);
  19. }
  20.  
  21. public boolean renderAsNormalBlock()
  22. {
  23. return false;
  24. }
  25.  
  26. public boolean isOpaqueCube()
  27. {
  28. return false;
  29. }
  30.  
  31. public int quantityDropped(Random rdm)
  32. {
  33. return 2;
  34. }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement