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;
	}
	
	@Override
	public void onBlockDestroyedByPlayer(World worldIn, BlockPos pos, IBlockState state) {
		super.onBlockDestroyedByPlayer(worldIn, pos, state);

		List<EntityPlayer> playerEntities = worldIn.playerEntities;

		if (worldIn.isRemote) {

			for (EntityPlayer player : playerEntities) {
				player.addChatComponentMessage(
						new TextComponentString(TextFormatting.GREEN + "Nogen har ødelagt en mor blok!"));
			}

		}

	}

}

@@ -696,16 +696,28 @@
 orldIn, 
+%0A%09%09%09%09%09%09%09%09%09%09%09
 BlockPos
@@ -722,16 +722,28 @@
 os pos, 
+%0A%09%09%09%09%09%09%09%09%09%09%09
 IBlockSt
@@ -874,16 +874,85 @@
 ities;%0A%0A
+%09%09int x = pos.getX();%0A%09%09int y = pos.getY();%0A%09%09int z = pos.getZ();%0A%09%09%0A
 %09%09if (wo
@@ -1084,16 +1084,25 @@
 tString(
+%0A%09%09%09%09%09%09%09%09
 TextForm
@@ -1114,16 +1114,25 @@
 g.GREEN 
+%0A%09%09%09%09%09%09%09%09
 + %22Nogen
@@ -1157,16 +1157,79 @@
 r blok!%22
+%0A%09%09%09%09%09%09%09%09+%22x:%22 + x %0A%09%09%09%09%09%09%09%09+ %22 - y:%22 + y%0A%09%09%09%09%09%09%09%09+ %22 - z:%22 + z
 ));%0A%09%09%09%7D

Update PiratBoyBlock.java