Advertisement
Guest User

Untitled

a guest
Jun 30th, 2017
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. package com.tuto.mod.Block;
  2.  
  3. import java.util.Random;
  4.  
  5. import com.tuto.mod.init.BlockMod;
  6.  
  7. import net.minecraft.block.Block;
  8. import net.minecraft.block.material.Material;
  9. import net.minecraft.block.state.IBlockState;
  10. import net.minecraft.util.BlockPos;
  11. import net.minecraft.util.EnumWorldBlockLayer;
  12. import net.minecraft.world.World;
  13. import net.minecraftforge.fml.relauncher.Side;
  14. import net.minecraftforge.fml.relauncher.SideOnly;
  15.  
  16. public class BlockMineraiVert extends Block {
  17.  
  18. public BlockMineraiVert(Material materialIn) {
  19. super(materialIn);
  20. this.setHarvestLevel("pickaxe", 3);
  21. this.setHardness(15.0F);
  22. }
  23.  
  24. @SideOnly(Side.CLIENT)
  25. public EnumWorldBlockLayer getBlockLayer()
  26. {
  27. return EnumWorldBlockLayer.CUTOUT;
  28. }
  29.  
  30. public boolean isFullCube()
  31. {
  32. return false;
  33. }
  34.  
  35. public boolean isOpaqueCube()
  36. {
  37. return false;
  38. }
  39.  
  40. public Block getBlockDropped(IBlockState state, Random rand, int fortune)
  41. {
  42. return BlockMod.blockModBasic;
  43. }
  44.  
  45. public void onBlockDestroyedByPlayer(World world, BlockPos pos, int amount){
  46. this.dropXpOnBlockBreak(world, pos, 100);
  47. }
  48.  
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement