The charcoal recipe annoyed me as I spend an hour essentially watching wood burn. So I came up with something using the new commands available.
Essentially, you put wood into the oven (recipe consumes the charcoal kiln), light the oven on fire, let it burn for 600 turns (1 turn = ~6 seconds), and then disassemble the product to get your coal and kiln back. As a bonus the kiln creates a small amount of light.
[spoiler=Recipe code]
{
"type" : "recipe",
"result": "kiln_full",
"category": "CC_OTHER",
"subcategory": "CSC_OTHER_MATERIALS",
"skill_used": "fabrication",
"difficulty": 1,
"time": 1000,
"reversible": false,
"autolearn": true,
"components": [
[
[ "splinter", 20 ],
[ "2x4", 3 ],
[ "stick", 5 ],
[ "bone", 40 ],
[ "log", 1 ]
],
[[ "char_kiln", 1 ]]
]
},{
"type" : "recipe",
"result": "kiln_done",
"category": "CC_NONCRAFT",
"subcategory": "CSC_NONCRAFT",
"skill_used": "fabrication",
"difficulty": 1,
"time": 1000,
"reversible": true,
"autolearn": false,
"components": [
[
[ "charcoal", 15 ]
],
[[ "char_kiln", 1 ]]
]
}
[/spoiler]
{
"id": "kiln_full",
"type": "TOOL",
"symbol": ";",
"color": "brown",
"name": "filled charcoal kiln",
"description": "A kiln filled with wood which will become charcoal after a slow period of burning.",
"price": 100,
"material": ["steel", "wood"],
"weight": 15142,
"volume": 40,
"bashing": 0,
"cutting": 0,
"to_hit": -2,
"max_charges": 0,
"initial_charges": 0,
"charges_per_use": 0,
"turns_per_charge": 0,
"ammo": "NULL",
"revert_to": "null",
"category" : "tool",
"use_action": {
"type": "transform",
"target": "kiln_lit",
"target_charges": 600,
"active": true,
"msg": "You light the wood.",
"need_fire": 1,
"need_fire_msg": "You need something to light it with!"
}
},
{
"id": "kiln_lit",
"type": "TOOL",
"symbol": ";",
"color": "brown",
"name": "lit charcoal kiln",
"description": "A kiln full of wood that has been lit; better drop it!",
"flags": ["LIGHT_15"],
"price": 100,
"material": ["steel", "wood"],
"weight": 15142,
"volume": 1001,
"bashing": 0,
"cutting": 0,
"to_hit": -2,
"max_charges": 600,
"initial_charges": 600,
"charges_per_use": 0,
"turns_per_charge": 1,
"ammo": "NULL",
"revert_to": "kiln_done",
"category" : "tool",
"use_action": {
"type": "auto_transform",
"target": "kiln_done",
"non_interactive_msg": "It's already burning!.",
"msg": "The kiln's embers die out."
}
},
{
"id": "kiln_done",
"type": "TOOL",
"symbol": ";",
"color": "brown",
"name": "finished charcoal kiln",
"description": "A charcoal kiln that has finished burning. Disassemble it to retrieve the charcoal and kiln.",
"price": 100,
"material": "steel",
"weight": 8142,
"volume": 40,
"bashing": 0,
"cutting": 0,
"to_hit": -2,
"max_charges": 0,
"initial_charges": 0,
"charges_per_use": 0,
"turns_per_charge": 0,
"ammo": "NULL",
"revert_to": "null",
"category" : "tool"
}