Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package fr.tuto.sylvain.common;
- import java.util.Random;
- import net.minecraft.block.Block;
- import net.minecraft.block.material.Material;
- import net.minecraft.world.World;
- public class BlockPeche
- extends Block
- {
- public void onBlockDestroyedByPlayer(World world, int x, int y, int z, int l)
- {
- world.setBlock(x, y, z, ModStylvain.BlockPeche, 0, 2);
- }
- protected BlockPeche()
- {
- super(Material.leaves);
- }
- public boolean renderAsNormalBlock()
- {
- return false;
- }
- public boolean isOpaqueCube()
- {
- return false;
- }
- public int quantityDropped(Random rdm)
- {
- return 2;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement