if(getEntityId(itemstack) == null) {
if(world.getBlock(x, y, z).equals(Blocks.mob_spawner)) {
TileEntity te = world.getTileEntity(x, y, z);
NBTTagCompound tag = new NBTTagCompound();
tag.setTag(TAG_SPAWNER, new NBTTagCompound());
te.writeToNBT(tag.getCompoundTag(TAG_SPAWNER));
tag.setInteger(TAG_PLACE_DELAY, 20);
itemstack.setTagCompound(tag);
world.setBlockToAir(x, y, z);
player.renderBrokenItemStack(itemstack);
for(int i = 0; i < 50; i++) {