...
Well, this is the item class:
public class ItemDemolisher extends ItemPickaxe {
public ItemDemolisher (ToolMaterial material) {
super(material);
}
@Override
public boolean onBlockDestroyed(ItemStack itemStack, World world,
Block block, int x, int y,
int z, EntityLivingBase player) {
ItemStack stack = FurnaceRecipes.smelting().getSmeltingResult(new ItemStack(block)).copy();
if (stack != null) {
System.out.println(stack);
world.setBlockToAir(x, y, z);
player.entityDropItem(stack, 1);
}
return true;
}
Actually, I want it to auto smelt blocks (like the title says).
Can you guys help me? :v