// Path: src/main/java/charcoalPit/tile/TileSmeltedPot.java
// public class TileSmeltedPot extends TileEntity{
// 	
// 	public ItemStackHandler items;
// 	public int slag;
// 	public TileSmeltedPot() {
// 		items=new ItemStackHandler();
// 		slag=0;
// 	}
// 	
// 	public void dropInventory(){
// 		InventoryHelper.spawnItemStack(world, pos.getX(), pos.getY(), pos.getZ(), items.getStackInSlot(0));
// 		if(slag>0){
// 			for(int i=0;i<slag;i++){
// 				Random r=new Random();
// 				if(r.nextFloat()<Config.KilnSlagChance){
// 					InventoryHelper.spawnItemStack(world, pos.getX(), pos.getY(), pos.getZ(), ItemsRegistry.rich_slag_stack.copy());
// 				}else{
// 					InventoryHelper.spawnItemStack(world, pos.getX(), pos.getY(), pos.getZ(), ItemsRegistry.slag_stack.copy());
// 				}
// 			}
// 			while(slag>0){
// 				int i=EntityXPOrb.getXPSplit(slag);
// 				slag-=i;
// 				world.spawnEntity(new EntityXPOrb(world, (double)pos.getX() + 0.5D, (double)pos.getY() + 0.5D, (double)pos.getZ() + 0.5D, i));
// 			}
// 		}
// 	}
// 	
// 	@Override
// 	public NBTTagCompound writeToNBT(NBTTagCompound compound) {
// 		super.writeToNBT(compound);
// 		compound.setTag("items", items.serializeNBT());
// 		compound.setInteger("slag", slag);
// 		return compound;
// 	}
// 	
// 	@Override
// 	public void readFromNBT(NBTTagCompound compound) {
// 		super.readFromNBT(compound);
// 		items.deserializeNBT(compound.getCompoundTag("items"));
// 		slag=compound.getInteger("slag");
// 	}
// 	
// }


import java.util.List;
import charcoalPit.tile.TileSmeltedPot;
import net.minecraft.block.ITileEntityProvider;
import net.minecraft.block.SoundType;
import net.minecraft.block.material.EnumPushReaction;
import net.minecraft.block.material.Material;
import net.minecraft.block.state.IBlockState;
import net.minecraft.client.util.ITooltipFlag;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.init.SoundEvents;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.math.AxisAlignedBB;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
import net.minecraftforge.items.ItemStackHandler;
		return false;
	}
	
	@Override
	public boolean isFullCube(IBlockState state) {
		return false;
	}
	
	@Override
	public boolean isNormalCube(IBlockState state, IBlockAccess world, BlockPos pos) {
		return false;
	}
	
	@Override
	public AxisAlignedBB getBoundingBox(IBlockState state, IBlockAccess source, BlockPos pos) {
		return AABB_POT;
	}
	
	@Override
	public EnumPushReaction getMobilityFlag(IBlockState state) {
		return EnumPushReaction.DESTROY;
	}
	
	@Override
	public void dropBlockAsItemWithChance(World worldIn, BlockPos pos, IBlockState state, float chance, int fortune) {
		
	}
	
	@Override
	public void breakBlock(World worldIn, BlockPos pos, IBlockState state) {
// Path: src/main/java/charcoalPit/tile/TileSmeltedPot.java
// public class TileSmeltedPot extends TileEntity{
// 	
// 	public ItemStackHandler items;
// 	public int slag;
// 	public TileSmeltedPot() {
// 		items=new ItemStackHandler();
// 		slag=0;
// 	}
// 	
// 	public void dropInventory(){
// 		InventoryHelper.spawnItemStack(world, pos.getX(), pos.getY(), pos.getZ(), items.getStackInSlot(0));
// 		if(slag>0){
// 			for(int i=0;i<slag;i++){
// 				Random r=new Random();
// 				if(r.nextFloat()<Config.KilnSlagChance){
// 					InventoryHelper.spawnItemStack(world, pos.getX(), pos.getY(), pos.getZ(), ItemsRegistry.rich_slag_stack.copy());
// 				}else{
// 					InventoryHelper.spawnItemStack(world, pos.getX(), pos.getY(), pos.getZ(), ItemsRegistry.slag_stack.copy());
// 				}
// 			}
// 			while(slag>0){
// 				int i=EntityXPOrb.getXPSplit(slag);
// 				slag-=i;
// 				world.spawnEntity(new EntityXPOrb(world, (double)pos.getX() + 0.5D, (double)pos.getY() + 0.5D, (double)pos.getZ() + 0.5D, i));
// 			}
// 		}
// 	}
// 	
// 	@Override
// 	public NBTTagCompound writeToNBT(NBTTagCompound compound) {
// 		super.writeToNBT(compound);
// 		compound.setTag("items", items.serializeNBT());
// 		compound.setInteger("slag", slag);
// 		return compound;
// 	}
// 	
// 	@Override
// 	public void readFromNBT(NBTTagCompound compound) {
// 		super.readFromNBT(compound);
// 		items.deserializeNBT(compound.getCompoundTag("items"));
// 		slag=compound.getInteger("slag");
// 	}
// 	
// }


// Path: src/main/java/charcoalPit/blocks/BlockSmeltedPot.java
import java.util.List;
import charcoalPit.tile.TileSmeltedPot;
import net.minecraft.block.ITileEntityProvider;
import net.minecraft.block.SoundType;
import net.minecraft.block.material.EnumPushReaction;
import net.minecraft.block.material.Material;
import net.minecraft.block.state.IBlockState;
import net.minecraft.client.util.ITooltipFlag;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.init.SoundEvents;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.math.AxisAlignedBB;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
import net.minecraftforge.items.ItemStackHandler;

		return false;
	}
	
	@Override
	public boolean isFullCube(IBlockState state) {
		return false;
	}
	
	@Override
	public boolean isNormalCube(IBlockState state, IBlockAccess world, BlockPos pos) {
		return false;
	}
	
	@Override
	public AxisAlignedBB getBoundingBox(IBlockState state, IBlockAccess source, BlockPos pos) {
		return AABB_POT;
	}
	
	@Override
	public EnumPushReaction getMobilityFlag(IBlockState state) {
		return EnumPushReaction.DESTROY;
	}
	
	@Override
	public void dropBlockAsItemWithChance(World worldIn, BlockPos pos, IBlockState state, float chance, int fortune) {
		
	}
	
	@Override
	public void breakBlock(World worldIn, BlockPos pos, IBlockState state) {
		((TileSmeltedPot)worldIn.getTileEntity(pos)).dropInventory();