Setting burnTime member to zero doesn't affect fuels for blast furnaces or smokers
Kelpiesaurus opened this issue ยท 1 comments
Issue description
Hello. I am using crafttweaker 14.0.57 on forge 1.20.1. I retextured the fletching table to look like a decorative stone block, and I wanted to remove its use as a fuel in furnaces, blast furnaces and smokers. So I added a script to change the burnTime:
import crafttweaker.api.ingredient.IIngredient;
<item:minecraft:fletching_table>.burnTime = 0;
This works to make it unusable in a furnace, but it still gets consumed as fuel in blast furnaces and smokers. I searched through the docs to see if there is another script specific to those workstations, but I can't find any. I also tried setting the burnTime to -1, but that just went back to making the fletching table burn as fuel in the furnace again without changing its use as fuel in the blast furnace or smoker.
Steps to reproduce
No response
Script used
The crafttweaker.log file
Minecraft version
1.20.1
Modloader
Forge
Modloader version
47.4.0
CraftTweaker version
CraftTweaker-forge-1.20.1-14.0.57
Other relevant information
No response
The latest.log file
This is actually intended because you can set the burntime for each individual recipe type using the setBurnTime() method
https://docs.blamejared.com/1.20.1/en/forge/api/item/ForgeItemStack/#setburntime
Your script should be
<item:minecraft:fletching_table>.setBurnTime(0, <recipetype:minecraft:smelting>);
<item:minecraft:fletching_table>.setBurnTime(0, <recipetype:minecraft:blasting>);
<item:minecraft:fletching_table>.setBurnTime(0, <recipetype:minecraft:smoking>);While this is a bit inconvenient, it does allow for the most control over burn times