Camas/mods/default/crafting.lua

801 lines
16 KiB
Lua
Raw Normal View History

2015-09-01 17:15:24 +02:00
--
-- Crafting
--
-- Pickaxes
2015-09-01 17:15:24 +02:00
minetest.register_craft(
{
output = "default:pick_wood",
recipe = {
{"", "group:planks", "default:fiber"},
{"", "default:stick", "group:planks"},
{"default:stick", "", ""},
}
})
minetest.register_craft(
{
output = "default:pick_stone",
recipe = {
{"", "group:stone", "default:fiber"},
{"", "default:stick", "group:stone"},
{"default:stick", "", ""},
}
})
minetest.register_craft(
{
output = "default:pick_steel",
recipe = {
{"", "default:ingot_steel", "default:fiber"},
{"", "default:stick", "default:ingot_steel"},
{"default:stick", "", ""},
}
})
minetest.register_craft(
{
output = "default:pick_carbonsteel",
recipe = {
{"", "default:ingot_carbonsteel", "default:fiber"},
{"", "default:stick", "default:ingot_carbonsteel"},
{"default:stick", "", ""},
}
})
-- Shovels
2015-09-01 17:15:24 +02:00
minetest.register_craft(
{
output = "default:shovel_wood",
recipe = {
{"", "group:planks", "group:planks"},
{"", "default:fiber", "group:planks"},
{"default:stick", "", ""},
2015-09-01 17:15:24 +02:00
}
})
minetest.register_craft(
{
output = "default:shovel_stone",
recipe = {
{"", "group:stone", "group:stone"},
{"", "default:fiber", "group:stone"},
{"default:stick", "", ""},
2015-09-01 17:15:24 +02:00
}
})
minetest.register_craft(
{
output = "default:shovel_steel",
recipe = {
{"", "default:ingot_steel", "default:ingot_steel"},
{"", "default:fiber", "default:ingot_steel"},
{"default:stick", "", ""},
2015-09-01 17:15:24 +02:00
}
})
minetest.register_craft(
{
output = "default:shovel_carbonsteel",
recipe = {
{"", "default:ingot_carbonsteel", "default:ingot_carbonsteel"},
{"", "default:fiber", "default:ingot_carbonsteel"},
{"default:stick", "", ""},
2015-09-01 17:15:24 +02:00
}
})
-- Axes
2015-09-01 17:15:24 +02:00
minetest.register_craft(
{
output = "default:axe_wood",
recipe = {
{"group:planks", "default:fiber"},
{"group:planks", "default:stick"},
{"", "default:stick"},
}
})
minetest.register_craft(
{
output = "default:axe_stone",
recipe = {
{"group:stone", "default:fiber"},
{"group:stone", "default:stick"},
{"", "default:stick"},
}
})
minetest.register_craft(
{
output = "default:axe_steel",
recipe = {
{"default:ingot_steel", "default:fiber"},
{"default:ingot_steel", "default:stick"},
{"", "default:stick"},
}
})
minetest.register_craft(
{
output = "default:axe_carbonsteel",
recipe = {
{"default:ingot_carbonsteel", "default:fiber"},
{"default:ingot_carbonsteel", "default:stick"},
{"", "default:stick"},
}
})
-- Spears
2015-09-01 17:15:24 +02:00
minetest.register_craft(
{
output = "default:spear_wood",
recipe = {
{"", "", "group:planks"},
{"", "default:fiber", ""},
{"default:stick", "", ""},
2015-09-01 17:15:24 +02:00
}
})
minetest.register_craft(
{
output = "default:spear_stone",
recipe = {
{"", "", "group:stone"},
{"", "default:fiber", ""},
{"default:stick", "", ""},
2015-09-01 17:15:24 +02:00
}
})
minetest.register_craft(
{
output = "default:spear_steel",
recipe = {
{"", "", "default:ingot_steel"},
{"", "default:fiber", ""},
{"default:stick", "", ""},
2015-09-01 17:15:24 +02:00
}
})
minetest.register_craft(
{
output = "default:spear_carbonsteel",
recipe = {
{"", "", "default:ingot_carbonsteel"},
{"", "default:fiber", ""},
{"default:stick", "", ""},
2015-09-01 17:15:24 +02:00
}
})
minetest.register_craft(
{
output = "default:shears",
recipe = {
{"default:ingot_steel", ""},
{"group:stick", "default:ingot_steel"},
}
})
-- Broadsword
minetest.register_craft(
{
output = "default:broadsword",
recipe = {
{"", "", "default:ingot_steel"},
{"default:fiber", "default:ingot_steel", ""},
{"default:stick", "default:fiber", ""},
}
})
-- Nodes/Items
2015-09-01 17:15:24 +02:00
minetest.register_craft(
{
output = "default:dust_carbonsteel",
type = "shapeless",
recipe = {"default:lump_coal", "default:lump_iron", "default:lump_iron"}
})
2015-10-02 02:23:04 +02:00
minetest.register_craft(
{
output = "default:rope",
recipe = {
{"default:dry_grass"},
{"default:dry_grass"},
{"default:dry_grass"},
}
})
2015-09-01 17:15:24 +02:00
minetest.register_craft(
{
output = "default:fiber",
type = "shapeless",
recipe = {
"default:grass"
}
})
minetest.register_craft(
{
output = "default:fiber 3",
type = "shapeless",
recipe = {
"group:leaves", "group:leaves", "group:leaves", "group:leaves"
2015-09-01 17:15:24 +02:00
}
})
minetest.register_craft(
{
output = "default:gravel",
recipe = {
{"default:cobble"},
}
})
minetest.register_craft(
{
output = "default:bucket",
recipe = {
{"default:fiber", "default:stick", "default:fiber"},
{"group:planks", "", "group:planks"},
{"group:planks", "group:planks", "group:planks"},
}
})
minetest.register_craft(
{
output = "default:brick",
recipe = {
{"default:dirt", "default:gravel", "default:dirt"},
{"default:gravel", "default:dirt", "default:gravel"},
{"default:dirt", "default:gravel", "default:dirt"},
}
})
minetest.register_craft(
{
output = "default:block_steel",
recipe = {
{"default:ingot_steel", "default:ingot_steel", "default:ingot_steel"},
{"default:ingot_steel", "default:ingot_steel", "default:ingot_steel"},
{"default:ingot_steel", "default:ingot_steel", "default:ingot_steel"},
}
})
minetest.register_craft(
{
output = "default:block_coal",
recipe = {
{"default:lump_coal", "default:lump_coal", "default:lump_coal"},
{"default:lump_coal", "default:lump_coal", "default:lump_coal"},
{"default:lump_coal", "default:lump_coal", "default:lump_coal"},
}
})
minetest.register_craft(
{
output = "default:dirt_path 4",
recipe = {
{"default:dirt", "default:dirt", "default:dirt"},
{"default:gravel", "default:gravel", "default:gravel"},
{"default:gravel", "default:gravel", "default:gravel"},
}
})
minetest.register_craft(
{
output = "default:heated_dirt_path 8",
recipe = {
{"default:ingot_steel", "default:dirt_path", "default:ingot_steel"},
{"default:dirt_path", "default:dirt_path", "default:dirt_path"},
{"default:gravel", "default:gravel", "default:gravel"},
}
})
minetest.register_craft(
{
output = "default:planks 4",
recipe = {
{"default:tree"},
}
})
minetest.register_craft(
{
output = "default:planks_oak 4",
recipe = {
{"default:tree_oak"},
}
})
minetest.register_craft(
{
output = "default:planks_birch 4",
recipe = {
{"default:tree_birch"},
}
})
minetest.register_craft(
{
output = "default:frame",
recipe = {
{"default:fiber", "default:stick", "default:fiber"},
{"default:stick", "group:planks", "default:stick"},
{"default:fiber", "default:stick", "default:fiber"},
}
})
minetest.register_craft(
{
output = "default:reinforced_frame",
recipe = {
{"default:fiber", "default:stick", "default:fiber"},
{"default:stick", "default:frame", "default:stick"},
{"default:fiber", "default:stick", "default:fiber"},
}
})
minetest.register_craft(
{
output = "default:stick 4",
recipe = {
{"group:planks"},
}
})
minetest.register_craft(
{
output = "default:fence 4",
recipe = {
{"default:stick", "", "default:stick"},
2015-10-03 00:16:08 +02:00
{"default:fiber", "default:planks", "default:fiber"},
{"default:stick", "", "default:stick"},
}
})
minetest.register_craft(
{
output = "default:fence_oak 4",
recipe = {
{"default:stick", "", "default:stick"},
{"default:fiber", "default:planks_oak", "default:fiber"},
{"default:stick", "", "default:stick"},
}
})
minetest.register_craft(
{
output = "default:fence_birch 4",
recipe = {
{"default:stick", "", "default:stick"},
{"default:fiber", "default:planks_birch", "default:fiber"},
2015-09-01 17:15:24 +02:00
{"default:stick", "", "default:stick"},
}
})
minetest.register_craft(
{
output = "default:sign 2",
recipe = {
{"group:planks", "default:fiber", "group:planks"},
{"group:planks", "group:planks", "group:planks"},
{"", "default:stick", ""},
}
})
minetest.register_craft(
{
output = "default:reinforced_cobble",
recipe = {
{"default:fiber", "default:stick", "default:fiber"},
{"default:stick", "default:cobble", "default:stick"},
{"default:fiber", "default:stick", "default:fiber"},
}
})
minetest.register_craft(
{
2015-09-24 19:59:16 +02:00
output = "default:torch 2",
2015-09-01 17:15:24 +02:00
recipe = {
{"default:lump_coal"},
{"default:fiber"},
{"default:stick"},
}
})
2015-09-24 19:59:16 +02:00
minetest.register_craft(
{
output = "default:torch_weak 2",
recipe = {
{"default:fiber"},
{"default:stick"},
}
})
minetest.register_craft(
{
output = "default:flint 2",
type = "shapeless",
recipe = {"default:gravel"},
})
minetest.register_craft(
{
output = "default:flint_and_steel",
2015-10-06 19:21:44 +02:00
recipe = {
{"default:ingot_steel", ""},
{"default:fiber", "default:flint"},
},
2015-09-24 19:59:16 +02:00
})
2015-09-01 17:15:24 +02:00
minetest.register_craft(
{
output = "default:chest",
recipe = {
{"group:planks", "group:planks", "group:planks"},
{"group:planks", "default:fiber", "group:planks"},
{"group:planks", "group:planks", "group:planks"},
}
})
minetest.register_craft(
{
output = "default:chest_locked",
recipe = {
{"default:fiber", "default:stick", "default:fiber"},
{"default:stick", "default:chest", "default:stick"},
{"default:fiber", "default:ingot_steel", "default:fiber"},
}
})
minetest.register_craft(
{
output = "default:furnace",
recipe = {
{"group:stone", "group:stone", "group:stone"},
{"group:stone", "", "group:stone"},
{"group:stone", "group:stone", "group:stone"},
}
})
minetest.register_craft(
2015-09-01 17:15:24 +02:00
{
output = "default:sandstone 2",
recipe = {
{"default:sand", "default:sand"},
{"default:sand", "default:sand"},
}
})
minetest.register_craft(
{
output = "default:sandstone 2",
type = "shapeless",
recipe = {"default:compressed_sandstone"},
})
minetest.register_craft(
{
output = "default:compressed_sandstone",
type = "shapeless",
recipe = {"default:sandstone", "default:sandstone"},
})
2015-09-01 17:15:24 +02:00
minetest.register_craft(
{
output = "default:paper",
recipe = {
{"default:papyrus", "default:papyrus", "default:papyrus"},
}
})
minetest.register_craft(
{
output = "default:book",
recipe = {
{"default:fiber", "default:stick", "default:paper"},
{"default:fiber", "default:stick", "default:paper"},
{"default:fiber", "default:stick", "default:paper"},
}
})
minetest.register_craft(
{
output = "default:bookshelf",
recipe = {
{"group:planks", "group:planks", "group:planks"},
{"default:book", "default:book", "default:book"},
{"group:planks", "group:planks", "group:planks"},
}
})
minetest.register_craft(
{
output = "default:ladder 2",
recipe = {
{"default:stick", "", "default:stick"},
{"default:fiber", "default:stick", "default:fiber"},
{"default:stick", "", "default:stick"},
}
})
minetest.register_craft(
{
output = "default:fertilizer 3",
recipe = {
{"", "default:fiber", ""},
{"default:fern", "default:fern", "default:fern"},
{"default:fern", "default:fern", "default:fern"},
},
})
2015-09-01 17:15:24 +02:00
--
-- Tool repair
2015-09-01 17:15:24 +02:00
--
minetest.register_craft(
{
type = "toolrepair",
additional_wear = -0.1,
})
--
-- Cooking
2015-09-01 17:15:24 +02:00
--
2015-10-06 19:10:27 +02:00
minetest.register_craft(
{
type = "cooking",
output = "default:torch_weak",
recipe = "default:torch_dead",
cooktime = 1,
})
minetest.register_craft(
{
type = "cooking",
output = "default:torch",
recipe = "default:torch_weak",
cooktime = 4,
})
2015-09-01 17:15:24 +02:00
minetest.register_craft(
{
type = "cooking",
output = "default:glass",
recipe = "default:sand",
cooktime = 3,
})
minetest.register_craft(
{
type = "cooking",
output = "default:lump_coal",
recipe = "default:tree",
cooktime = 4,
})
minetest.register_craft(
{
type = "cooking",
output = "default:stone",
recipe = "default:cobble",
cooktime = 6,
})
minetest.register_craft(
{
type = "cooking",
output = "default:ingot_steel",
recipe = "default:lump_iron",
cooktime = 3,
})
minetest.register_craft(
{
type = "cooking",
output = "default:ingot_carbonsteel",
recipe = "default:dust_carbonsteel",
cooktime = 5,
})
minetest.register_craft(
{
type = "cooking",
output = "default:lump_sugar",
recipe = "default:papyrus",
cooktime = 7,
})
--
-- Fuels
--
minetest.register_craft(
{
type = "fuel",
recipe = "group:leaves",
burntime = 1,
2015-09-01 17:15:24 +02:00
})
minetest.register_craft(
{
type = "fuel",
recipe = "default:dry_grass",
burntime = 1,
2015-09-01 17:15:24 +02:00
})
minetest.register_craft(
{
type = "fuel",
recipe = "default:fern",
burntime = 2,
})
2015-09-01 17:15:24 +02:00
minetest.register_craft(
{
type = "fuel",
recipe = "default:papyrus",
burntime = 2,
2015-09-01 17:15:24 +02:00
})
minetest.register_craft(
{
type = "fuel",
recipe = "default:apple",
burntime = 3,
2015-09-01 17:15:24 +02:00
})
minetest.register_craft(
{
type = "fuel",
recipe = "default:ladder",
burntime = 5,
2015-09-01 17:15:24 +02:00
})
minetest.register_craft(
{
type = "fuel",
recipe = "default:rope",
burntime = 5,
2015-09-01 17:15:24 +02:00
})
minetest.register_craft(
{
type = "fuel",
recipe = "group:planks",
burntime = 5,
2015-09-01 17:15:24 +02:00
})
minetest.register_craft(
{
type = "fuel",
recipe = "default:torch",
burntime = 5,
2015-09-01 17:15:24 +02:00
})
minetest.register_craft(
{
type = "fuel",
recipe = "group:sapling",
burntime = 7,
2015-09-01 17:15:24 +02:00
})
minetest.register_craft(
{
type = "fuel",
recipe = "default:fertilizer",
burntime = 8,
})
2015-09-01 17:15:24 +02:00
minetest.register_craft(
{
type = "fuel",
recipe = "group:planks",
burntime = 9,
2015-09-01 17:15:24 +02:00
})
minetest.register_craft(
{
type = "fuel",
recipe = "default:sign",
2015-09-01 17:15:24 +02:00
burntime = 10,
})
minetest.register_craft(
{
type = "fuel",
recipe = "default:cactus",
burntime = 10,
2015-09-01 17:15:24 +02:00
})
minetest.register_craft(
{
type = "fuel",
recipe = "default:fence",
burntime = 10,
2015-09-01 17:15:24 +02:00
})
minetest.register_craft(
{
type = "fuel",
recipe = "default:fence_oak",
burntime = 11,
2015-09-01 17:15:24 +02:00
})
minetest.register_craft(
{
type = "fuel",
recipe = "default:fence_birch",
burntime = 11,
2015-09-01 17:15:24 +02:00
})
minetest.register_craft(
{
type = "fuel",
recipe = "default:planks_oak",
burntime = 12,
2015-09-01 17:15:24 +02:00
})
minetest.register_craft(
{
type = "fuel",
recipe = "default:planks_birch",
burntime = 12,
2015-09-01 17:15:24 +02:00
})
minetest.register_craft(
{
type = "fuel",
recipe = "default:frame",
burntime = 12,
2015-09-01 17:15:24 +02:00
})
minetest.register_craft(
{
type = "fuel",
recipe = "default:reinforced_frame",
burntime = 17,
2015-09-01 17:15:24 +02:00
})
minetest.register_craft(
{
type = "fuel",
recipe = "group:tree",
burntime = 20,
2015-09-01 17:15:24 +02:00
})
minetest.register_craft(
2015-09-01 17:15:24 +02:00
{
type = "fuel",
recipe = "default:chest",
burntime = 24,
2015-09-01 17:15:24 +02:00
})
minetest.register_craft(
2015-09-01 17:15:24 +02:00
{
type = "fuel",
recipe = "default:bookshelf",
burntime = 30,
2015-09-01 17:15:24 +02:00
})
minetest.register_craft(
2015-09-24 19:59:16 +02:00
{
type = "fuel",
recipe = "default:lump_coal",
burntime = 30,
2015-09-24 19:59:16 +02:00
})
minetest.register_craft(
2015-09-24 19:59:16 +02:00
{
type = "fuel",
recipe = "default:block_coal",
burntime = 270,
2015-09-24 19:59:16 +02:00
})
2015-09-01 17:15:24 +02:00
default.log("crafting", "loaded")