package dk.codingpirates.minecraft.mods.block;

import dk.codingpirates.minecraft.mods.CodingPiratesMod;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraftforge.fml.common.registry.GameRegistry;

public class PiratBoyBlock extends Block {
	
	private final String name = "piratBoyBlock";

	public PiratBoyBlock() {
		super(Material.GOURD);
		// GameRegistry.registerBlock(this, name);
		setUnlocalizedName(CodingPiratesMod.MODID + "_" + name);
		setCreativeTab(CreativeTabs.BUILDING_BLOCKS);
	}

	public String getName() {
		return name;
	}

}

@@ -629,12 +629,446 @@
 name;%0A%09%7D
+%0A%09%0A%09@Override%0A%09public void onBlockDestroyedByPlayer(World worldIn, BlockPos pos, IBlockState state) %7B%0A%09%09super.onBlockDestroyedByPlayer(worldIn, pos, state);%0A%0A%09%09List%3CEntityPlayer%3E playerEntities = worldIn.playerEntities;%0A%0A%09%09if (worldIn.isRemote) %7B%0A%0A%09%09%09for (EntityPlayer player : playerEntities) %7B%0A%09%09%09%09player.addChatComponentMessage(%0A%09%09%09%09%09%09new TextComponentString(TextFormatting.GREEN + %22Nogen har %C3%B8delagt en mor blok!%22));%0A%09%09%09%7D%0A%0A%09%09%7D%0A%0A%09%7D
 %0A%0A%7D%0A

Update PiratBoyBlock.java