123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790 |
- -- mods/default/crafting.lua
- --
- -- Crafting definition
- --
- minetest.register_craft({
- output = 'default:wood 2',
- recipe = {
- {'group:tree'},
- }
- })
- minetest.register_craft({
- output = 'default:stick 6',
- recipe = {
- {'group:leaves'},
- {'group:leaves'},
- {'group:leaves'},
- }
- })
- minetest.register_craft({
- output = 'default:stick 6',
- recipe = {
- {'default:dry_shrub'},
- {'default:dry_shrub'},
- {'default:dry_shrub'},
- }
- })
- minetest.register_craft({
- output = 'default:fence_wood 2',
- recipe = {
- {'group:stick', 'group:stick', 'group:stick'},
- {'group:stick', 'group:stick', 'group:stick'},
- }
- })
- minetest.register_craft({
- output = 'default:sign_wall 6',
- recipe = {
- {'group:wood', 'group:wood', 'group:wood'},
- {'group:wood', 'group:wood', 'group:wood'},
- {'', 'group:stick', ''},
- }
- })
- minetest.register_craft({
- output = 'default:torch 4',
- recipe = {
- {'default:coal_lump'},
- {'group:stick'},
- }
- })
- minetest.register_craft({
- output = 'default:pick_wood',
- recipe = {
- {'group:tree', 'group:tree', 'group:tree'},
- {'', 'group:stick', ''},
- {'', 'group:stick', ''},
- }
- })
- minetest.register_craft({
- output = 'default:pick_wood',
- recipe = {
- {'group:tree_horizontal', 'group:tree_horizontal', 'group:tree_horizontal'},
- {'', 'group:stick', ''},
- {'', 'group:stick', ''},
- }
- })
- minetest.register_craft({
- output = 'default:pick_stone',
- recipe = {
- {'default:cobble', 'default:cobble', 'default:cobble'},
- {'', 'group:stick', ''},
- {'', 'group:stick', ''},
- }
- })
- minetest.register_craft({
- output = 'default:pick_copper',
- recipe = {
- {'default:copper_ingot', 'default:copper_ingot', 'default:copper_ingot'},
- {'', 'group:stick', ''},
- {'', 'group:stick', ''},
- }
- })
- minetest.register_craft({
- output = 'default:pick_bronze',
- recipe = {
- {'default:bronze_ingot', 'default:bronze_ingot', 'default:bronze_ingot'},
- {'', 'group:stick', ''},
- {'', 'group:stick', ''},
- }
- })
- minetest.register_craft({
- output = 'default:pick_steel',
- recipe = {
- {'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'},
- {'', 'group:stick', ''},
- {'', 'group:stick', ''},
- }
- })
- minetest.register_craft({
- output = 'default:pick_mese',
- recipe = {
- {'default:mese_crystal', 'default:mese_crystal', 'default:mese_crystal'},
- {'', 'group:stick', ''},
- {'', 'group:stick', ''},
- }
- })
- minetest.register_craft({
- output = 'default:shovel_wood',
- recipe = {
- {'group:tree'},
- {'group:stick'},
- {'group:stick'},
- }
- })
- minetest.register_craft({
- output = 'default:shovel_wood',
- recipe = {
- {'group:tree_horizontal'},
- {'group:stick'},
- {'group:stick'},
- }
- })
- minetest.register_craft({
- output = 'default:shovel_stone',
- recipe = {
- {'default:cobble'},
- {'group:stick'},
- {'group:stick'},
- }
- })
- minetest.register_craft({
- output = 'default:shovel_copper',
- recipe = {
- {'default:copper_ingot'},
- {'group:stick'},
- {'group:stick'},
- }
- })
- minetest.register_craft({
- output = 'default:shovel_bronze',
- recipe = {
- {'default:bronze_ingot'},
- {'group:stick'},
- {'group:stick'},
- }
- })
- minetest.register_craft({
- output = 'default:shovel_steel',
- recipe = {
- {'default:steel_ingot'},
- {'group:stick'},
- {'group:stick'},
- }
- })
- minetest.register_craft({
- output = 'default:axe_wood',
- recipe = {
- {'group:tree', 'group:stick'},
- {'group:tree', 'group:stick'},
- {'', 'group:stick'},
- }
- })
- minetest.register_craft({
- output = 'default:axe_wood',
- recipe = {
- {'group:tree_horizontal', 'group:stick'},
- {'group:tree_horizontal', 'group:stick'},
- {'', 'group:stick'},
- }
- })
- minetest.register_craft({
- output = 'default:axe_stone',
- recipe = {
- {'default:cobble', 'group:stick'},
- {'default:cobble', 'group:stick'},
- {'', 'group:stick'},
- }
- })
- minetest.register_craft({
- output = 'default:axe_copper',
- recipe = {
- {'default:copper_ingot', 'group:stick'},
- {'default:copper_ingot', 'group:stick'},
- {'', 'group:stick'},
- }
- })
- minetest.register_craft({
- output = 'default:axe_bronze',
- recipe = {
- {'default:bronze_ingot', 'group:stick'},
- {'default:bronze_ingot', 'group:stick'},
- {'', 'group:stick'},
- }
- })
- minetest.register_craft({
- output = 'default:axe_steel',
- recipe = {
- {'default:steel_ingot', 'group:stick'},
- {'default:steel_ingot', 'group:stick'},
- {'', 'group:stick'},
- }
- })
- minetest.register_craft({
- output = 'default:sword_wood',
- recipe = {
- {'group:tree'},
- {'group:tree'},
- {'group:stick'},
- }
- })
- minetest.register_craft({
- output = 'default:sword_wood',
- recipe = {
- {'group:tree_horizontal'},
- {'group:tree_horizontal'},
- {'group:stick'},
- }
- })
- minetest.register_craft({
- output = 'default:sword_stone',
- recipe = {
- {'default:cobble'},
- {'default:cobble'},
- {'group:stick'},
- }
- })
- minetest.register_craft({
- output = 'default:sword_copper',
- recipe = {
- {'default:copper_ingot'},
- {'default:copper_ingot'},
- {'group:stick'},
- }
- })
- minetest.register_craft({
- output = 'default:sword_bronze',
- recipe = {
- {'default:bronze_ingot'},
- {'default:bronze_ingot'},
- {'group:stick'},
- }
- })
- minetest.register_craft({
- output = 'default:sword_steel',
- recipe = {
- {'default:steel_ingot'},
- {'default:steel_ingot'},
- {'group:stick'},
- }
- })
- minetest.register_craft({
- output = 'default:rail 15',
- recipe = {
- {'default:steel_ingot', '', 'default:steel_ingot'},
- {'default:steel_ingot', 'group:stick', 'default:steel_ingot'},
- {'default:steel_ingot', '', 'default:steel_ingot'},
- }
- })
- minetest.register_craft({
- output = 'default:chest',
- recipe = {
- {'group:wood', 'group:wood', 'group:wood'},
- {'group:wood', '', 'group:wood'},
- {'group:wood', 'group:wood', 'group:wood'},
- }
- })
- minetest.register_craft({
- output = 'default:chest_locked',
- recipe = {
- {'group:wood', 'group:wood', 'group:wood'},
- {'group:wood', 'default:steel_ingot', 'group:wood'},
- {'group:wood', 'group:wood', 'group:wood'},
- }
- })
- minetest.register_craft({
- output = 'default:furnace',
- recipe = {
- {'default:cobble', 'default:cobble', 'default:cobble'},
- {'default:cobble', '', 'default:cobble'},
- {'default:cobble', 'default:cobble', 'default:cobble'},
- }
- })
- minetest.register_craft({
- output = 'default:clay_furnace',
- recipe = {
- {'default:clay', 'default:clay', 'default:clay'},
- {'default:clay', '', 'default:clay'},
- {'default:clay', 'default:clay', 'default:clay'},
- }
- })
- minetest.register_craft({
- output = 'default:coalblock',
- recipe = {
- {'default:coal_lump', 'default:coal_lump', 'default:coal_lump'},
- {'default:coal_lump', 'default:coal_lump', 'default:coal_lump'},
- {'default:coal_lump', 'default:coal_lump', 'default:coal_lump'},
- }
- })
- minetest.register_craft({
- output = 'default:coal_lump 9',
- recipe = {
- {'default:coalblock'},
- }
- })
- minetest.register_craft({
- output = 'default:steelblock',
- recipe = {
- {'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'},
- {'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'},
- {'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'},
- }
- })
- minetest.register_craft({
- output = 'default:steel_ingot 9',
- recipe = {
- {'default:steelblock'},
- }
- })
- minetest.register_craft({
- output = 'default:copperblock',
- recipe = {
- {'default:copper_ingot', 'default:copper_ingot', 'default:copper_ingot'},
- {'default:copper_ingot', 'default:copper_ingot', 'default:copper_ingot'},
- {'default:copper_ingot', 'default:copper_ingot', 'default:copper_ingot'},
- }
- })
- minetest.register_craft({
- output = 'default:copper_ingot 9',
- recipe = {
- {'default:copperblock'},
- }
- })
- minetest.register_craft({
- output = 'default:tinblock',
- recipe = {
- {'default:tin_ingot', 'default:tin_ingot', 'default:tin_ingot'},
- {'default:tin_ingot', 'default:tin_ingot', 'default:tin_ingot'},
- {'default:tin_ingot', 'default:tin_ingot', 'default:tin_ingot'},
- }
- })
- minetest.register_craft({
- output = 'default:tin_ingot 9',
- recipe = {
- {'default:tinblock'},
- }
- })
- minetest.register_craft({
- output = "default:bronze_ingot",
- recipe = {
- {"default:copper_ingot", "default:tin_ingot"},
- }
- })
- minetest.register_craft({
- output = 'default:bronzeblock',
- recipe = {
- {'default:bronze_ingot', 'default:bronze_ingot', 'default:bronze_ingot'},
- {'default:bronze_ingot', 'default:bronze_ingot', 'default:bronze_ingot'},
- {'default:bronze_ingot', 'default:bronze_ingot', 'default:bronze_ingot'},
- }
- })
- minetest.register_craft({
- output = 'default:bronze_ingot 9',
- recipe = {
- {'default:bronzeblock'},
- }
- })
- minetest.register_craft({
- output = 'default:sandstone',
- recipe = {
- {'default:sand', 'default:sand'},
- {'default:sand', 'default:sand'},
- }
- })
- minetest.register_craft({
- output = 'default:sand 4',
- recipe = {
- {'default:sandstone'},
- }
- })
- minetest.register_craft({
- output = 'default:clay',
- recipe = {
- {'default:clay_lump', 'default:clay_lump'},
- {'default:clay_lump', 'default:clay_lump'},
- }
- })
- minetest.register_craft({
- output = 'default:clay_lump 4',
- recipe = {
- {'default:clay'},
- }
- })
- minetest.register_craft({
- output = 'default:brick',
- recipe = {
- {'default:clay_brick', 'default:clay_brick'},
- {'default:clay_brick', 'default:clay_brick'},
- }
- })
- minetest.register_craft({
- output = 'default:clay_brick 4',
- recipe = {
- {'default:brick'},
- }
- })
- minetest.register_craft({
- output = 'default:stone_crumbled 4',
- recipe = {
- {'default:cobble'},
- }
- })
- minetest.register_craft({
- output = 'default:cobble',
- recipe = {
- {'default:stone_crumbled', 'default:stone_crumbled'},
- {'default:stone_crumbled', 'default:stone_crumbled'},
- }
- })
- minetest.register_craft({
- output = 'default:paper',
- recipe = {
- {'default:papyrus', 'default:papyrus', 'default:papyrus'},
- }
- })
- minetest.register_craft({
- output = 'default:book',
- recipe = {
- {'default:paper'},
- {'default:paper'},
- {'default:paper'},
- }
- })
- minetest.register_craft({
- output = 'default:bookshelf',
- recipe = {
- {'group:wood', 'group:wood', 'group:wood'},
- {'default:book', 'default:book', 'default:book'},
- {'group:wood', 'group:wood', 'group:wood'},
- }
- })
- minetest.register_craft({
- output = 'default:ladder 2',
- recipe = {
- {'group:stick', '', 'group:stick'},
- {'group:stick', 'group:stick', 'group:stick'},
- {'group:stick', '', 'group:stick'},
- }
- })
- minetest.register_craft({
- output = 'default:mese',
- recipe = {
- {'default:mese_crystal', 'default:mese_crystal', 'default:mese_crystal'},
- {'default:mese_crystal', 'default:mese_crystal', 'default:mese_crystal'},
- {'default:mese_crystal', 'default:mese_crystal', 'default:mese_crystal'},
- }
- })
- minetest.register_craft({
- output = 'default:mese_crystal',
- recipe = {
- {'default:mese_crystal_fragment', 'default:mese_crystal_fragment', 'default:mese_crystal_fragment'},
- {'default:mese_crystal_fragment', 'default:mese_crystal_fragment', 'default:mese_crystal_fragment'},
- {'default:mese_crystal_fragment', 'default:mese_crystal_fragment', 'default:mese_crystal_fragment'},
- }
- })
- minetest.register_craft({
- output = 'default:mese_crystal 9',
- recipe = {
- {'default:mese'},
- }
- })
- minetest.register_craft({
- output = 'default:mese_crystal_fragment 9',
- recipe = {
- {'default:mese_crystal'},
- }
- })
- minetest.register_craft({
- output = 'default:stonebrick',
- recipe = {
- {'default:stone', 'default:stone'},
- {'default:stone', 'default:stone'},
- }
- })
- minetest.register_craft({
- output = 'default:snowblock',
- recipe = {
- {'default:snow', 'default:snow', 'default:snow'},
- {'default:snow', 'default:snow', 'default:snow'},
- {'default:snow', 'default:snow', 'default:snow'},
- }
- })
- minetest.register_craft({
- output = 'default:snow 9',
- recipe = {
- {'default:snowblock'},
- }
- })
- --
- -- Crafting (tool repair)
- --
- minetest.register_craft({
- type = "toolrepair",
- additional_wear = -0.02,
- })
- --
- -- Cooking recipes
- --
- minetest.register_craft({
- type = "cooking",
- output = "default:glass",
- recipe = "group:sand",
- })
- minetest.register_craft({
- type = "cooking",
- output = "default:stone",
- recipe = "default:cobble",
- })
- minetest.register_craft({
- type = "cooking",
- output = "default:cobble",
- recipe = "default:mossycobble",
- })
- minetest.register_craft({
- type = "cooking",
- output = "default:steel_ingot",
- recipe = "default:iron_lump",
- cooktime = 10,
- })
- minetest.register_craft({
- type = "cooking",
- output = "default:copper_ingot",
- recipe = "default:copper_lump",
- })
- minetest.register_craft({
- type = "cooking",
- output = "default:tin_ingot",
- recipe = "default:tin_lump",
- })
- minetest.register_craft({
- type = "cooking",
- output = "default:clay_brick",
- recipe = "default:clay_lump",
- })
- minetest.register_craft({
- type = "cooking",
- output = "default:coal_lump",
- recipe = "group:tree",
- })
- --
- -- Fuels
- --
- minetest.register_craft({
- type = "fuel",
- recipe = "group:tree",
- burntime = 30,
- })
- minetest.register_craft({
- type = "fuel",
- recipe = "default:junglegrass",
- burntime = 2,
- })
- minetest.register_craft({
- type = "fuel",
- recipe = "group:leaves",
- burntime = 1,
- })
- minetest.register_craft({
- type = "fuel",
- recipe = "default:cactus",
- burntime = 15,
- })
- minetest.register_craft({
- type = "fuel",
- recipe = "default:papyrus",
- burntime = 1,
- })
- minetest.register_craft({
- type = "fuel",
- recipe = "default:bookshelf",
- burntime = 30,
- })
- minetest.register_craft({
- type = "fuel",
- recipe = "default:fence_wood",
- burntime = 15,
- })
- minetest.register_craft({
- type = "fuel",
- recipe = "default:ladder",
- burntime = 5,
- })
- minetest.register_craft({
- type = "fuel",
- recipe = "group:wood",
- burntime = 7,
- })
- minetest.register_craft({
- type = "fuel",
- recipe = "default:lava_source",
- burntime = 60,
- })
- minetest.register_craft({
- type = "fuel",
- recipe = "default:torch",
- burntime = 4,
- })
- minetest.register_craft({
- type = "fuel",
- recipe = "default:sign_wall",
- burntime = 5,
- })
- minetest.register_craft({
- type = "fuel",
- recipe = "default:chest",
- burntime = 20,
- })
- minetest.register_craft({
- type = "fuel",
- recipe = "default:chest_locked",
- burntime = 20,
- })
- minetest.register_craft({
- type = "fuel",
- recipe = "default:nyancat",
- burntime = 1,
- })
- minetest.register_craft({
- type = "fuel",
- recipe = "default:nyancat_rainbow",
- burntime = 1,
- })
- minetest.register_craft({
- type = "fuel",
- recipe = "default:sapling",
- burntime = 5,
- })
- minetest.register_craft({
- type = "fuel",
- recipe = "default:apple",
- burntime = 3,
- })
- minetest.register_craft({
- type = "fuel",
- recipe = "default:coal_lump",
- burntime = 40,
- })
- minetest.register_craft({
- type = "fuel",
- recipe = "default:coalblock",
- burntime = 360,
- })
- minetest.register_craft({
- type = "fuel",
- recipe = "default:junglesapling",
- burntime = 5,
- })
- minetest.register_craft({
- type = "fuel",
- recipe = "default:pick_wood",
- burntime = 5,
- })
- minetest.register_craft({
- type = "fuel",
- recipe = "default:shovel_wood",
- burntime = 5,
- })
- minetest.register_craft({
- type = "fuel",
- recipe = "default:axe_wood",
- burntime = 5,
- })
- minetest.register_craft({
- type = "fuel",
- recipe = "default:sword_wood",
- burntime = 5,
- })
- minetest.register_craft({
- type = "fuel",
- recipe = "default:dry_shrub",
- burntime = 5,
- })
- minetest.register_craft({
- type = "fuel",
- recipe = "default:fern_1",
- burntime = 2,
- })
|