Mineclonia/mods/default/crafting.lua

810 lines
15 KiB
Lua
Raw Normal View History

2015-06-29 17:55:56 +00:00
-- mods/default/crafting.lua
--
-- Crafting definition
--
minetest.register_craft({
output = 'default:wood 4',
recipe = {
{'default:tree'},
}
})
minetest.register_craft({
output = 'default:junglewood 4',
recipe = {
{'default:jungletree'},
}
})
minetest.register_craft({
output = 'default:acaciawood 4',
recipe = {
{'default:acaciatree'},
}
})
minetest.register_craft({
output = 'default:sprucewood 4',
recipe = {
{'default:sprucetree'},
}
})
minetest.register_craft({
output = 'default:mossycobble',
recipe = {
{'default:cobble', 'default:vine'},
}
})
minetest.register_craft({
output = 'default:stonebrickmossy',
recipe = {
{'default:stonebrick', 'default:vine'},
}
})
minetest.register_craft({
output = 'default:stick 4',
recipe = {
{'group:wood'},
{'group:wood'},
}
})
minetest.register_craft({
output = 'fences:fence_wood 2',
recipe = {
{'default:stick', 'default:stick', 'default:stick'},
{'default:stick', 'default:stick', 'default:stick'},
}
})
minetest.register_craft({
output = 'signs:sign_wall',
recipe = {
{'group:wood', 'group:wood', 'group:wood'},
{'group:wood', 'group:wood', 'group:wood'},
{'', 'default:stick', ''},
}
})
minetest.register_craft({
output = 'default:pick_wood',
recipe = {
{'group:wood', 'group:wood', 'group:wood'},
{'', 'default:stick', ''},
{'', 'default:stick', ''},
}
})
minetest.register_craft({
output = 'default:pick_stone',
recipe = {
2017-01-04 05:51:26 +00:00
{'default:cobble', 'default:cobble', 'default:cobble'},
2015-06-29 17:55:56 +00:00
{'', 'default:stick', ''},
{'', 'default:stick', ''},
}
})
minetest.register_craft({
output = 'default:pick_steel',
recipe = {
{'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'},
{'', 'default:stick', ''},
{'', 'default:stick', ''},
}
})
minetest.register_craft({
output = 'default:pick_gold',
recipe = {
{'default:gold_ingot', 'default:gold_ingot', 'default:gold_ingot'},
{'', 'default:stick', ''},
{'', 'default:stick', ''},
}
})
minetest.register_craft({
output = 'default:pick_diamond',
recipe = {
{'default:diamond', 'default:diamond', 'default:diamond'},
{'', 'default:stick', ''},
{'', 'default:stick', ''},
}
})
minetest.register_craft({
output = 'default:shovel_wood',
recipe = {
{'group:wood'},
{'default:stick'},
{'default:stick'},
}
})
minetest.register_craft({
output = 'default:shovel_stone',
recipe = {
2017-01-04 05:51:26 +00:00
{'default:cobble'},
2015-06-29 17:55:56 +00:00
{'default:stick'},
{'default:stick'},
}
})
minetest.register_craft({
output = 'default:shovel_steel',
recipe = {
{'default:steel_ingot'},
{'default:stick'},
{'default:stick'},
}
})
minetest.register_craft({
output = 'default:shovel_gold',
recipe = {
{'default:gold_ingot'},
{'default:stick'},
{'default:stick'},
}
})
minetest.register_craft({
output = 'default:shovel_diamond',
recipe = {
{'default:diamond'},
{'default:stick'},
{'default:stick'},
}
})
minetest.register_craft({
output = 'default:axe_wood',
recipe = {
{'group:wood', 'group:wood'},
{'group:wood', 'default:stick'},
{'', 'default:stick'},
}
})
minetest.register_craft({
output = 'default:axe_stone',
recipe = {
2017-01-04 05:51:26 +00:00
{'default:cobble', 'default:cobble'},
{'default:cobble', 'default:stick'},
2015-06-29 17:55:56 +00:00
{'', 'default:stick'},
}
})
minetest.register_craft({
output = 'default:axe_steel',
recipe = {
{'default:steel_ingot', 'default:steel_ingot'},
{'default:steel_ingot', 'default:stick'},
{'', 'default:stick'},
}
})
minetest.register_craft({
output = 'default:axe_gold',
recipe = {
{'default:gold_ingot', 'default:gold_ingot'},
{'default:gold_ingot', 'default:stick'},
{'', 'default:stick'},
}
})
minetest.register_craft({
output = 'default:axe_diamond',
recipe = {
{'default:diamond', 'default:diamond'},
{'default:diamond', 'default:stick'},
{'', 'default:stick'},
}
})
minetest.register_craft({
output = 'default:sword_wood',
recipe = {
{'group:wood'},
{'group:wood'},
{'default:stick'},
}
})
minetest.register_craft({
output = 'default:sword_stone',
recipe = {
2017-01-04 05:51:26 +00:00
{'default:cobble'},
{'default:cobble'},
2015-06-29 17:55:56 +00:00
{'default:stick'},
}
})
minetest.register_craft({
output = 'default:sword_steel',
recipe = {
{'default:steel_ingot'},
{'default:steel_ingot'},
{'default:stick'},
}
})
minetest.register_craft({
output = 'default:sword_gold',
recipe = {
{'default:gold_ingot'},
{'default:gold_ingot'},
{'default:stick'},
}
})
minetest.register_craft({
output = 'default:sword_diamond',
recipe = {
{'default:diamond'},
{'default:diamond'},
{'default:stick'},
}
})
minetest.register_craft({
output = 'default:flint_and_steel',
recipe = {
{'default:steel_ingot', ''},
{'', 'default:flint'},
}
})
minetest.register_craft({
output = "default:pole",
recipe = {
{'','','default:stick'},
{'','default:stick','farming:string'},
{'default:stick','','farming:string'},
}
})
minetest.register_craft({
output = 'default:rail 15',
recipe = {
{'default:steel_ingot', '', 'default:steel_ingot'},
{'default:steel_ingot', 'default: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:furnace',
recipe = {
2017-01-04 05:39:52 +00:00
{'default:cobble', 'default:cobble', 'default:cobble'},
{'default:cobble', '', 'default:cobble'},
{'default:cobble', 'default:cobble', 'default:cobble'},
2015-06-29 17:55:56 +00:00
}
})
minetest.register_craft({
output = 'default:haybale',
recipe = {
{'farming:wheat_harvested', 'farming:wheat_harvested', 'farming:wheat_harvested'},
{'farming:wheat_harvested', 'farming:wheat_harvested', 'farming:wheat_harvested'},
{'farming:wheat_harvested', 'farming:wheat_harvested', 'farming:wheat_harvested'},
}
})
minetest.register_craft({
output = 'farming:wheat_harvested 9',
recipe = {
{'default:haybale'},
}
})
minetest.register_craft({
output = 'default:sea_lantern',
recipe = {
{'default:prismarine_shard', 'default:prismarine_cry', 'default:prismarine_shard'},
{'default:prismarine_cry', 'default:prismarine_cry', 'default:prismarine_cry'},
{'default:prismarine_shard', 'default:prismarine_cry', 'default:prismarine_shard'},
}
})
minetest.register_craft({
output = 'default:prismarine',
recipe = {
{'default:prismarine_shard', 'default:prismarine_shard'},
{'default:prismarine_shard', 'default:prismarine_shard'},
}
})
minetest.register_craft({
output = 'default:prismarine_brick',
recipe = {
{'default:prismarine_shard', 'default:prismarine_shard', 'default:prismarine_shard'},
{'default:prismarine_shard', 'default:prismarine_shard', 'default:prismarine_shard'},
{'default:prismarine_shard', 'default:prismarine_shard', 'default:prismarine_shard'},
}
})
minetest.register_craft({
output = 'default:prismarine_dark',
recipe = {
{'default:prismarine_shard', 'default:prismarine_shard', 'default:prismarine_shard'},
{'default:prismarine_shard', 'dye:black', 'default:prismarine_shard'},
{'default:prismarine_shard', 'default:prismarine_shard', 'default:prismarine_shard'},
}
})
2017-01-04 10:44:55 +00:00
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'},
}
})
2015-06-29 17:55:56 +00:00
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:goldblock',
recipe = {
{'default:gold_ingot', 'default:gold_ingot', 'default:gold_ingot'},
{'default:gold_ingot', 'default:gold_ingot', 'default:gold_ingot'},
{'default:gold_ingot', 'default:gold_ingot', 'default:gold_ingot'},
}
})
minetest.register_craft({
output = 'default:gold_ingot 9',
recipe = {
{'default:goldblock'},
}
})
minetest.register_craft({
output = "default:gold_nugget 9",
recipe = {{"default:gold_ingot"}},
})
2017-01-04 09:56:38 +00:00
minetest.register_craft({
output = "default:iron_nugget 9",
recipe = {{"default:steel_ingot"}},
})
minetest.register_craft({
type = "cooking",
output = "default:gold_nugget",
recipe = "default:sword_gold",
2017-01-04 10:49:05 +00:00
cooktime = 10,
2017-01-04 09:56:38 +00:00
})
minetest.register_craft({
type = "cooking",
output = "default:gold_nugget",
recipe = "default:axe_gold",
2017-01-04 10:49:05 +00:00
cooktime = 10,
2017-01-04 09:56:38 +00:00
})
minetest.register_craft({
type = "cooking",
output = "default:gold_nugget",
recipe = "default:shovel_gold",
2017-01-04 10:49:05 +00:00
cooktime = 10,
2017-01-04 09:56:38 +00:00
})
minetest.register_craft({
type = "cooking",
output = "default:gold_nugget",
recipe = "default:pick_gold",
2017-01-04 10:49:05 +00:00
cooktime = 10,
2017-01-04 09:56:38 +00:00
})
minetest.register_craft({
type = "cooking",
output = "default:iron_nugget",
recipe = "default:sword_steel",
2017-01-04 10:49:05 +00:00
cooktime = 10,
2017-01-04 09:56:38 +00:00
})
minetest.register_craft({
type = "cooking",
output = "default:iron_nugget",
recipe = "default:axe_steel",
2017-01-04 10:49:05 +00:00
cooktime = 10,
2017-01-04 09:56:38 +00:00
})
minetest.register_craft({
type = "cooking",
output = "default:iron_nugget",
recipe = "default:shovel_steel",
2017-01-04 10:49:05 +00:00
cooktime = 10,
2017-01-04 09:56:38 +00:00
})
minetest.register_craft({
type = "cooking",
output = "default:iron_nugget",
recipe = "default:pick_steel",
2017-01-04 10:49:05 +00:00
cooktime = 10,
2017-01-04 09:56:38 +00:00
})
2015-06-29 17:55:56 +00:00
minetest.register_craft({
output = 'default:sandstone',
recipe = {
{'group:sand', 'group:sand'},
{'group:sand', 'group:sand'},
}
})
minetest.register_craft({
output = 'default:clay',
recipe = {
{'default:clay_lump', 'default:clay_lump'},
{'default:clay_lump', 'default:clay_lump'},
}
})
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({
2017-01-04 05:51:26 +00:00
output = 'default:paper 3',
2015-06-29 17:55:56 +00:00
recipe = {
{'default:reeds', 'default:reeds', 'default:reeds'},
}
})
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',
recipe = {
{'default:stick', '', 'default:stick'},
{'default:stick', 'default:stick', 'default:stick'},
{'default:stick', '', 'default:stick'},
}
})
minetest.register_craft({
output = 'default:stonebrick',
recipe = {
{'default:stone', 'default:stone'},
{'default:stone', 'default:stone'},
}
})
minetest.register_craft({
type = "shapeless",
output = "default:gunpowder",
recipe = {
'default:sand',
'default:gravel',
}
})
minetest.register_craft({
output = 'dye:white 3',
recipe = {
{'default:bone'},
}
})
minetest.register_craft({
output = 'default:lapisblock',
recipe = {
{'dye:blue', 'dye:blue', 'dye:blue'},
{'dye:blue', 'dye:blue', 'dye:blue'},
{'dye:blue', 'dye:blue', 'dye:blue'},
}
})
minetest.register_craft({
output = 'dye:blue 9',
recipe = {
{'default:lapisblock'},
}
})
minetest.register_craft({
output = "default:emeraldblock",
recipe = {
{'default:emerald', 'default:emerald', 'default:emerald'},
{'default:emerald', 'default:emerald', 'default:emerald'},
{'default:emerald', 'default:emerald', 'default:emerald'},
}
})
minetest.register_craft({
output = 'default:emerald 9',
recipe = {
{'default:emeraldblock'},
}
})
minetest.register_craft({
output = "default:glowstone",
recipe = {
{'default:glowstone_dust', 'default:glowstone_dust'},
{'default:glowstone_dust', 'default:glowstone_dust'},
}
})
minetest.register_craft({
output = 'default:glowstone_dust 4',
recipe = {
{'default:glowstone'},
}
})
minetest.register_craft({
output = "default:apple_gold",
recipe = {
{"default:gold_nugget", "default:gold_nugget", "default:gold_nugget"},
{"default:gold_nugget", 'default:apple', "default:gold_nugget"},
{"default:gold_nugget", "default:gold_nugget", "default:gold_nugget"},
}
})
minetest.register_craft({
output = "default:sugar",
recipe = {
{"default:reeds"},
}
})
minetest.register_craft({
output = 'default:snowblock',
recipe = {
2017-01-04 10:26:35 +00:00
{'default:snowball', 'default:snowball'},
{'default:snowball', 'default:snowball'},
2015-06-29 17:55:56 +00:00
}
})
minetest.register_craft({
2017-01-04 10:26:35 +00:00
output = 'default:snow 6',
2015-06-29 17:55:56 +00:00
recipe = {
2017-01-04 10:26:35 +00:00
{'default:snowblock', 'default:snowblock', 'default:snowblock'},
2015-06-29 17:55:56 +00:00
}
})
minetest.register_craft({
output = 'default:quartz_block',
recipe = {
{'default:quartz_crystal', 'default:quartz_crystal'},
{'default:quartz_crystal', 'default:quartz_crystal'},
}
})
minetest.register_craft({
output = 'default:quartz_chiseled 2',
recipe = {
{'stairs:slab_quartzblock'},
{'stairs:slab_quartzblock'},
}
})
minetest.register_craft({
output = 'default:quartz_pillar 2',
recipe = {
{'default:quartz_block'},
{'default:quartz_block'},
}
})
--
-- Crafting (tool repair)
--
minetest.register_craft({
type = "toolrepair",
2017-01-04 10:10:09 +00:00
additional_wear = -0.05,
2015-06-29 17:55:56 +00:00
})
--
-- Cooking recipes
--
minetest.register_craft({
type = "cooking",
output = "default:glass",
recipe = "group:sand",
2017-01-04 10:49:05 +00:00
cooktime = 10,
2015-06-29 17:55:56 +00:00
})
minetest.register_craft({
type = "cooking",
output = "default:stone",
recipe = "default:cobble",
2017-01-04 10:49:05 +00:00
cooktime = 10,
2015-06-29 17:55:56 +00:00
})
minetest.register_craft({
type = "cooking",
output = "default:steel_ingot",
recipe = "default:stone_with_iron",
2017-01-04 10:49:05 +00:00
cooktime = 10,
2015-06-29 17:55:56 +00:00
})
minetest.register_craft({
type = "cooking",
output = "default:gold_ingot",
recipe = "default:stone_with_gold",
2017-01-04 10:49:05 +00:00
cooktime = 10,
2015-06-29 17:55:56 +00:00
})
minetest.register_craft({
type = "cooking",
output = "default:clay_brick",
recipe = "default:clay_lump",
2017-01-04 10:49:05 +00:00
cooktime = 10,
2015-06-29 17:55:56 +00:00
})
minetest.register_craft({
type = "cooking",
output = "default:fish",
recipe = "default:fish_raw",
2017-01-04 10:49:05 +00:00
cooktime = 10,
2015-06-29 17:55:56 +00:00
})
minetest.register_craft({
type = "cooking",
output = "default:charcoal_lump",
recipe = "group:tree",
2017-01-04 10:49:05 +00:00
cooktime = 10,
2015-06-29 17:55:56 +00:00
})
minetest.register_craft({
type = "cooking",
output = "default:sponge",
recipe = "default:sponge_wet",
2017-01-04 10:49:05 +00:00
cooktime = 10,
2015-06-29 17:55:56 +00:00
})
2017-01-05 00:04:26 +00:00
minetest.register_craft({
type = "cooking",
output = "default:coal",
recipe = "default:stone_with_coal",
cooktime = 10,
})
2015-06-29 17:55:56 +00:00
--
-- Fuels
--
2017-01-04 10:44:55 +00:00
minetest.register_craft({
type = "fuel",
recipe = "default:coalblock",
burntime = 800,
})
minetest.register_craft({
type = "fuel",
recipe = "default:coal_lump",
burntime = 80,
})
minetest.register_craft({
type = "fuel",
recipe = "default:charcoal_lump",
burntime = 80,
})
2015-06-29 17:55:56 +00:00
minetest.register_craft({
type = "fuel",
recipe = "group:tree",
burntime = 15,
})
minetest.register_craft({
type = "fuel",
recipe = "default:bookshelf",
2017-01-04 10:38:21 +00:00
burntime = 15,
2015-06-29 17:55:56 +00:00
})
minetest.register_craft({
type = "fuel",
recipe = "default:fence_wood",
burntime = 15,
})
minetest.register_craft({
type = "fuel",
recipe = "default:ladder",
2017-01-04 10:38:21 +00:00
burntime = 15,
2015-06-29 17:55:56 +00:00
})
minetest.register_craft({
type = "fuel",
recipe = "group:wood",
2017-01-04 10:38:21 +00:00
burntime = 15,
2015-06-29 17:55:56 +00:00
})
minetest.register_craft({
type = "fuel",
recipe = "signs:sign_wall",
burntime = 10,
})
minetest.register_craft({
type = "fuel",
recipe = "default:chest",
2017-01-04 10:44:55 +00:00
burntime = 15,
2015-06-29 17:55:56 +00:00
})
minetest.register_craft({
type = "fuel",
2017-01-04 10:38:21 +00:00
recipe = "group:sapling",
burntime = 5,
2015-06-29 17:55:56 +00:00
})
--
--Temporary
--
minetest.register_craft({
output = "default:string",
recipe = {{"default:paper", "default:paper"}},
2017-01-04 03:47:36 +00:00
})