Minecraft:Data component format/cooking fuel: Difference between revisions
From SAS Gaming Wiki
More actions
Sync: new page from Minecraft |
Sync: updated from Minecraft |
||
| Line 1: | Line 1: | ||
<div class="treeview"><onlyinclude> | <div class="treeview"><onlyinclude> | ||
** {{nbt|compound|minecraft:cooking_fuel}}: If present, this item can be burned for | ** {{nbt|compound|minecraft:cooking_fuel}}: If present, this item can be burned for [[Minecraft:smelting]] fuel. | ||
*** {{nbt|string|burn_time}}: | *** {{nbt|float}}{{nbt|string|burn_time}}: How many ticks of fuel will be provided by destroying this item. Either a fixed number or the [[Minecraft:namespaced ID]] of a [[Minecraft:number provider]], which is evaluated using the {{cd|container_process}} [[Minecraft:loot context]] when a furnace tries to use this item as fuel. The resolved value is rounded to the nearest whole number, and if the result is {{cd|0}}, the item is not used as fuel on this tick. | ||
*** {{nbt|string|speed_multiplier}}: | *** {{nbt|float}}{{nbt|string|speed_multiplier}}: How quickly items should smelt during the burn time provided by this fuel item. Either a fixed number or the [[Minecraft:namespaced ID]] of a [[Minecraft:number provider]], which is evaluated using the {{cd|container_process}} [[Minecraft:loot context]] when a furnace uses this item as fuel. If the resolved value is {{cd|0.0}} or less, it is treated as {{cd|1.0}}. Each ingredient that starts cooking while this fuel is burning will take {{math|ceil(cookingtime / mult)}} ticks to cook, where ''cookingtime'' is specified in the [[Minecraft:Recipe (Java Edition)|recipe]], meaning higher values cook quicker and lower values cook slower. The provider is only evaluated once when the fuel is consumed, and the scaled cooking time is only calculated once when the ingredient starts cooking. | ||
</onlyinclude> | </onlyinclude> | ||
</div> | </div> | ||
[[Category:Data component format subpages]] | [[Category:Data component format subpages]] | ||
Latest revision as of 11:09, 29 July 2026
- Template:Nbt: If present, this item can be burned for Minecraft:smelting fuel.
- Template:NbtTemplate:Nbt: How many ticks of fuel will be provided by destroying this item. Either a fixed number or the Minecraft:namespaced ID of a Minecraft:number provider, which is evaluated using the Template:Cd Minecraft:loot context when a furnace tries to use this item as fuel. The resolved value is rounded to the nearest whole number, and if the result is Template:Cd, the item is not used as fuel on this tick.
- Template:NbtTemplate:Nbt: How quickly items should smelt during the burn time provided by this fuel item. Either a fixed number or the Minecraft:namespaced ID of a Minecraft:number provider, which is evaluated using the Template:Cd Minecraft:loot context when a furnace uses this item as fuel. If the resolved value is Template:Cd or less, it is treated as Template:Cd. Each ingredient that starts cooking while this fuel is burning will take Template:Math ticks to cook, where cookingtime is specified in the recipe, meaning higher values cook quicker and lower values cook slower. The provider is only evaluated once when the fuel is consumed, and the scaled cooking time is only calculated once when the ingredient starts cooking.
- Template:Nbt: If present, this item can be burned for Minecraft:smelting fuel.