Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (!world.isRemote)
- {
- Block block1 = world.getBlock(x, y, z);
- if (block1 == Blocks.furnace)
- {
- TileEntity tile = world.getTileEntity(x,y,z);
- TileEntityFurnace furn = (TileEntityFurnace)tile;
- ItemStack toBurn = furn.getStackInSlot(0);
- if (toBurn != null)
- {
- ItemStack burnResult = FurnaceRecipes.smelting().getSmeltingResult(toBurn);
- ItemStack currentResult = furn.getStackInSlot(2);
- if (burnResult != null && (currentResult == null || currentResult.getUnlocalizedName() == burnResult.getUnlocalizedName()))
- {
- BlockFurnace.updateFurnaceBlockState(true, world, x, y, z);
- furn.furnaceBurnTime = 400;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement