Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Minecraft:Data component format/cooking fuel: Difference between revisions

From SAS Gaming Wiki
SyncBot (talk | contribs)
Sync: new page from Minecraft
 
SyncBot (talk | contribs)
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 fuel by [[Minecraft:smelting]] blocks.
** {{nbt|compound|minecraft:cooking_fuel}}: If present, this item can be burned for [[Minecraft:smelting]] fuel.
*** {{nbt|string|burn_time}}: The [[Minecraft:namespaced ID]] of a [[Minecraft:number provider]], which is evaluated using the {{cd|container_process}} [[Minecraft:loot context]] to determine how many ticks of fuel will be provided by destroying this item, with fractions rounded to the nearest whole number. If the evaluated value is {{cd|0}}, the fuel item is not consumed on this tick.
*** {{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}}: The [[Minecraft:namespaced ID]] of a [[Minecraft:number provider]]. The number provider is evaluated using the {{cd|container_process}} [[Minecraft:loot context]] to determine how quickly items should smelt during the burn time provided by this fuel item. Each ingredient will take {{math|ceil(cooktime / mult)}} ticks to cook, where ''cooktime'' is specified in the [[Minecraft:Recipe (Java Edition)|recipe]]. If the evaluated value is {{cd|0.0}} or less, it is treated as {{cd|1.0}}. 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.
*** {{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