Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.tuto.mod.Block;
- import java.util.Random;
- import com.tuto.mod.init.BlockMod;
- import net.minecraft.block.Block;
- import net.minecraft.block.material.Material;
- import net.minecraft.block.state.IBlockState;
- import net.minecraft.util.BlockPos;
- import net.minecraft.util.EnumWorldBlockLayer;
- import net.minecraft.world.World;
- import net.minecraftforge.fml.relauncher.Side;
- import net.minecraftforge.fml.relauncher.SideOnly;
- public class BlockMineraiVert extends Block {
- public BlockMineraiVert(Material materialIn) {
- super(materialIn);
- this.setHarvestLevel("pickaxe", 3);
- this.setHardness(15.0F);
- }
- @SideOnly(Side.CLIENT)
- public EnumWorldBlockLayer getBlockLayer()
- {
- return EnumWorldBlockLayer.CUTOUT;
- }
- public boolean isFullCube()
- {
- return false;
- }
- public boolean isOpaqueCube()
- {
- return false;
- }
- public Block getBlockDropped(IBlockState state, Random rand, int fortune)
- {
- return BlockMod.blockModBasic;
- }
- public void onBlockDestroyedByPlayer(World world, BlockPos pos, int amount){
- this.dropXpOnBlockBreak(world, pos, 100);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement