549 lines
10 KiB
Lua
Raw Normal View History

2016-02-07 03:24:38 +02:00
-- mods/default/crafting.lua
minetest.register_craft({
2019-07-07 20:40:09 +02:00
output = "default:wood 4",
recipe = {
{"default:tree"}
}
2016-02-07 03:24:38 +02:00
})
minetest.register_craft({
2019-07-07 20:40:09 +02:00
output = "default:junglewood 4",
recipe = {
{"default:jungletree"}
}
2016-02-07 03:24:38 +02:00
})
minetest.register_craft({
2019-07-07 20:40:09 +02:00
output = "default:pine_wood 4",
2016-02-07 03:24:38 +02:00
recipe = {
{"default:pine_tree"}
2016-02-07 03:24:38 +02:00
}
})
minetest.register_craft({
2019-07-07 20:40:09 +02:00
output = "default:acacia_wood 4",
recipe = {
{"default:acacia_tree"}
}
2016-02-07 03:24:38 +02:00
})
2019-07-10 12:26:20 +02:00
minetest.register_craft({
output = "default:birch_wood 4",
recipe = {
{"default:birch_tree"}
2019-07-10 12:26:20 +02:00
}
})
2016-02-07 03:24:38 +02:00
minetest.register_craft({
2019-07-07 20:40:09 +02:00
output = "default:mossycobble",
recipe = {
{"default:cobble", "default:vine"}
}
2016-02-07 03:24:38 +02:00
})
minetest.register_craft({
2019-07-07 20:40:09 +02:00
output = "default:stonebrickmossy",
recipe = {
{"default:stonebrick", "default:vine"}
}
2016-02-07 03:24:38 +02:00
})
minetest.register_craft({
output = "default:stonebrickcarved",
recipe = {
{"default:stonebrick", "default:stonebrick"}
}
})
2016-02-07 03:24:38 +02:00
minetest.register_craft({
2019-07-07 20:40:09 +02:00
output = "default:stick 4",
recipe = {
2019-07-07 20:40:09 +02:00
{"group:wood"},
{"group:wood"}
}
2016-02-07 03:24:38 +02:00
})
minetest.register_craft({
2019-07-07 20:40:09 +02:00
output = "default:diamondblock",
recipe = {
2019-07-07 20:40:09 +02:00
{"default:diamond", "default:diamond", "default:diamond"},
{"default:diamond", "default:diamond", "default:diamond"},
{"default:diamond", "default:diamond", "default:diamond"}
}
2016-02-07 03:24:38 +02:00
})
2019-06-26 20:23:16 +02:00
minetest.register_craft({
2019-07-07 20:40:09 +02:00
output = "default:diamond 9",
2019-06-26 20:23:16 +02:00
recipe = {
{"default:diamondblock"}
2019-06-26 20:23:16 +02:00
}
})
2016-02-07 03:24:38 +02:00
minetest.register_craft({
output = "default:pole",
recipe = {
{"", "", "default:stick"},
{"", "default:stick", "farming:string"},
{"default:stick", "", "farming:string"}
}
2016-02-07 03:24:38 +02:00
})
2019-06-26 20:23:16 +02:00
minetest.register_craft({
2019-07-07 20:40:09 +02:00
output = "default:coalblock",
2019-06-26 20:23:16 +02:00
recipe = {
2019-07-07 20:40:09 +02:00
{"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"}
2019-06-26 20:23:16 +02:00
}
})
2016-02-07 03:24:38 +02:00
minetest.register_craft({
2019-07-07 20:40:09 +02:00
output = "default:coal_lump 9",
recipe = {
{"default:coalblock"}
}
2016-02-07 03:24:38 +02:00
})
minetest.register_craft({
2019-07-07 20:40:09 +02:00
output = "default:steelblock",
recipe = {
2019-07-07 20:40:09 +02:00
{"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"}
}
2016-02-07 03:24:38 +02:00
})
minetest.register_craft({
2019-07-07 20:40:09 +02:00
output = "default:steel_ingot 9",
recipe = {
{"default:steelblock"}
}
2016-02-07 03:24:38 +02:00
})
minetest.register_craft({
2019-07-07 20:40:09 +02:00
output = "default:goldblock",
recipe = {
2019-07-07 20:40:09 +02:00
{"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"}
}
2016-02-07 03:24:38 +02:00
})
minetest.register_craft({
2019-07-07 20:40:09 +02:00
output = "default:gold_ingot 9",
recipe = {
{"default:goldblock"}
}
2016-02-07 03:24:38 +02:00
})
minetest.register_craft({
2019-07-07 20:40:09 +02:00
output = "default:sandstone",
recipe = {
{"default:sand", "default:sand"},
{"default:sand", "default:sand"}
}
2016-02-07 03:24:38 +02:00
})
2020-03-07 17:06:46 +01:00
minetest.register_craft({
type = "cooking",
output = "default:sandstonesmooth",
recipe = "default:sandstone"
})
2020-03-03 16:16:39 +01:00
minetest.register_craft({
output = "default:redsandstone",
recipe = {
{"default:redsand", "default:redsand"},
{"default:redsand", "default:redsand"}
}
})
2020-03-07 17:06:46 +01:00
minetest.register_craft({
type = "cooking",
output = "default:redsandstonesmooth",
recipe = "default:redsandstone"
})
2019-12-20 21:17:38 +01:00
minetest.register_craft({
output = "default:cement 8",
recipe = {
{"default:gravel", "default:gravel", "default:sand"},
{"default:gravel", "bucket:bucket_water", "default:sand"},
{"default:gravel", "default:sand", "default:sand"}
},
replacements = {{"bucket:bucket_water", "bucket:bucket_empty"}}
})
minetest.register_craft({
output = "default:cement 8",
recipe = {
{"default:gravel", "default:gravel", "default:sand"},
{"default:gravel", "bucket:bucket_river_water", "default:sand"},
{"default:gravel", "default:sand", "default:sand"}
},
replacements = {{"bucket:bucket_river_water", "bucket:bucket_empty"}}
})
2016-02-07 03:24:38 +02:00
minetest.register_craft({
2019-07-07 20:40:09 +02:00
output = "default:clay",
recipe = {
2019-07-07 20:40:09 +02:00
{"default:clay_lump", "default:clay_lump"},
{"default:clay_lump", "default:clay_lump"}
}
2016-02-07 03:24:38 +02:00
})
minetest.register_craft({
2019-07-07 20:40:09 +02:00
output = "default:brick",
recipe = {
2019-07-07 20:40:09 +02:00
{"default:clay_brick", "default:clay_brick"},
{"default:clay_brick", "default:clay_brick"}
}
2016-02-07 03:24:38 +02:00
})
minetest.register_craft({
2019-07-07 20:40:09 +02:00
output = "default:clay_brick 4",
recipe = {
{"default:brick"}
}
2016-02-07 03:24:38 +02:00
})
minetest.register_craft({
2019-07-07 20:40:09 +02:00
output = "default:paper",
recipe = {
{"default:sugarcane", "default:sugarcane", "default:sugarcane"}
}
2016-02-07 03:24:38 +02:00
})
minetest.register_craft({
2019-07-07 20:40:09 +02:00
output = "default:book",
recipe = {
2019-07-07 20:40:09 +02:00
{"default:paper"},
{"default:paper"},
{"default:paper"}
}
2016-02-07 03:24:38 +02:00
})
minetest.register_craft({
2019-07-07 20:40:09 +02:00
output = "default:bookshelf",
recipe = {
2019-07-07 20:40:09 +02:00
{"group:wood", "group:wood", "group:wood"},
{"default:book", "default:book", "default:book"},
{"group:wood", "group:wood", "group:wood"}
}
2016-02-07 03:24:38 +02:00
})
minetest.register_craft({
2019-12-20 21:17:38 +01:00
output = "default:ladder_wood",
recipe = {
2019-07-07 20:40:09 +02:00
{"default:stick", "", "default:stick"},
{"default:stick", "default:stick", "default:stick"},
{"default:stick", "", "default:stick"}
}
2016-02-07 03:24:38 +02:00
})
2019-12-20 21:17:38 +01:00
minetest.register_craft({
2020-03-07 17:05:24 +01:00
output = "default:grill_bar 4",
2019-12-20 21:17:38 +01:00
recipe = {
{"default:steel_ingot", "", "default:steel_ingot"},
{"", "default:steel_ingot", ""},
{"default:steel_ingot", "", "default:steel_ingot"}
}
})
2016-02-07 03:24:38 +02:00
minetest.register_craft({
2019-07-07 20:40:09 +02:00
output = "default:stonebrick",
recipe = {
{"default:stone", "default:stone"}
}
2016-02-07 03:24:38 +02:00
})
minetest.register_craft({
type = "shapeless",
output = "default:gunpowder",
recipe = {
2019-07-07 20:40:09 +02:00
"default:sand",
"default:gravel"
}
2016-02-07 03:24:38 +02:00
})
minetest.register_craft({
output = "default:emeraldblock",
recipe = {
2019-07-07 20:40:09 +02:00
{"default:emerald", "default:emerald", "default:emerald"},
{"default:emerald", "default:emerald", "default:emerald"},
{"default:emerald", "default:emerald", "default:emerald"}
}
2016-02-07 03:24:38 +02:00
})
minetest.register_craft({
2019-07-07 20:40:09 +02:00
output = "default:emerald 9",
recipe = {
{"default:emeraldblock"}
}
2016-02-07 03:24:38 +02:00
})
2020-03-07 17:06:46 +01:00
minetest.register_craft({
output = "default:rubyblock",
recipe = {
{"default:ruby", "default:ruby", "default:ruby"},
{"default:ruby", "default:ruby", "default:ruby"},
{"default:ruby", "default:ruby", "default:ruby"}
}
})
minetest.register_craft({
output = "default:ruby 9",
recipe = {
{"default:rubyblock"}
}
})
2016-02-07 03:24:38 +02:00
minetest.register_craft({
output = "default:glowstone",
recipe = {
2019-07-07 20:40:09 +02:00
{"default:glowstone_dust", "default:glowstone_dust"},
{"default:glowstone_dust", "default:glowstone_dust"}
}
2016-02-07 03:24:38 +02:00
})
minetest.register_craft({
2019-07-07 20:40:09 +02:00
output = "default:glowstone_dust 4",
recipe = {
{"default:glowstone"}
}
2016-02-07 03:24:38 +02:00
})
minetest.register_craft({
output = "default:apple_gold",
recipe = {
{"default:gold_ingot", "default:gold_ingot", "default:gold_ingot"},
2019-07-07 20:40:09 +02:00
{"default:gold_ingot", "default:apple", "default:gold_ingot"},
{"default:gold_ingot", "default:gold_ingot", "default:gold_ingot"}
}
2016-02-07 03:24:38 +02:00
})
minetest.register_craft({
output = "default:sugar",
recipe = {
{"default:sugarcane"}
}
2016-02-07 03:24:38 +02:00
})
minetest.register_craft({
2019-07-07 20:40:09 +02:00
output = "default:snowblock",
recipe = {
2019-07-07 20:40:09 +02:00
{"default:snowball", "default:snowball", "default:snowball"},
{"default:snowball", "default:snowball", "default:snowball"},
{"default:snowball", "default:snowball", "default:snowball"}
}
2016-02-07 03:24:38 +02:00
})
minetest.register_craft({
2019-07-07 20:40:09 +02:00
output = "default:snowball 9",
recipe = {
{"default:snowblock"}
}
2016-02-07 03:24:38 +02:00
})
minetest.register_craft({
2019-07-07 20:40:09 +02:00
output = "default:quartz_block",
recipe = {
2019-07-07 20:40:09 +02:00
{"default:quartz_crystal", "default:quartz_crystal"},
{"default:quartz_crystal", "default:quartz_crystal"}
}
2016-02-07 03:24:38 +02:00
})
minetest.register_craft({
2019-07-07 20:40:09 +02:00
output = "default:quartz_pillar 2",
recipe = {
2019-07-07 20:40:09 +02:00
{"default:quartz_block"},
{"default:quartz_block"}
}
2016-02-07 03:24:38 +02:00
})
--
-- Cooking recipes
--
minetest.register_craft({
type = "cooking",
output = "default:glass",
recipe = "group:sand"
2016-02-07 03:24:38 +02:00
})
minetest.register_craft({
type = "cooking",
output = "default:stone",
recipe = "default:cobble"
2016-02-07 03:24:38 +02:00
})
minetest.register_craft({
type = "cooking",
output = "default:steel_ingot",
recipe = "default:stone_with_iron"
2016-02-07 03:24:38 +02:00
})
minetest.register_craft({
type = "cooking",
output = "default:gold_ingot",
recipe = "default:stone_with_gold"
2016-02-07 03:24:38 +02:00
})
minetest.register_craft({
type = "cooking",
output = "default:clay_brick",
recipe = "default:clay_lump"
2016-02-07 03:24:38 +02:00
})
minetest.register_craft({
type = "cooking",
output = "default:hardened_clay",
recipe = "default:clay"
})
2016-02-07 03:24:38 +02:00
minetest.register_craft({
type = "cooking",
output = "default:fish",
recipe = "default:fish_raw",
-- cooktime = 2
2016-02-07 03:24:38 +02:00
})
minetest.register_craft({
type = "cooking",
output = "default:charcoal_lump",
recipe = "group:tree"
2016-02-07 03:24:38 +02:00
})
minetest.register_craft({
type = "cooking",
output = "default:steak",
recipe = "default:beef_raw"
2016-02-07 03:24:38 +02:00
})
minetest.register_craft({
type = "cooking",
output = "default:chicken_cooked",
recipe = "default:chicken_raw"
2016-02-07 03:24:38 +02:00
})
minetest.register_craft({
type = "cooking",
output = "default:coal_lump",
recipe = "default:stone_with_coal"
2016-02-07 03:24:38 +02:00
})
minetest.register_craft({
type = "cooking",
output = "default:diamond",
recipe = "default:stone_with_diamond"
2016-02-07 03:24:38 +02:00
})
minetest.register_craft({
type = "cooking",
output = "default:stonebrickcracked",
recipe = "default:stonebrick"
2016-02-07 03:24:38 +02:00
})
--
-- Fuels
--
minetest.register_craft({
type = "fuel",
recipe = "group:tree",
burntime = 15
2016-02-07 03:24:38 +02:00
})
minetest.register_craft({
type = "fuel",
2019-12-12 15:25:24 +01:00
recipe = "group:fence_wood",
burntime = 15
2016-02-07 03:24:38 +02:00
})
minetest.register_craft({
type = "fuel",
2019-07-07 20:40:09 +02:00
recipe = "group:wood",
burntime = 15
2016-02-07 03:24:38 +02:00
})
minetest.register_craft({
type = "fuel",
2019-07-07 20:40:09 +02:00
recipe = "group:leaves",
burntime = 5
2016-02-07 03:24:38 +02:00
})
2019-12-20 21:18:08 +01:00
minetest.register_craft({
type = "fuel",
recipe = "default:vine",
burntime = 3
})
2016-02-07 03:24:38 +02:00
minetest.register_craft({
type = "fuel",
recipe = "bucket:bucket_lava",
burntime = 1000
2016-02-07 03:24:38 +02:00
})
2019-07-07 20:40:09 +02:00
minetest.register_craft({
type = "fuel",
recipe = "default:bookshelf",
burntime = 30
2019-07-07 20:40:09 +02:00
})
2016-02-07 03:24:38 +02:00
minetest.register_craft({
type = "fuel",
2019-05-23 15:17:23 +02:00
recipe = "group:sapling",
burntime = 5
2016-02-07 03:24:38 +02:00
})
minetest.register_craft({
type = "fuel",
recipe = "default:coal_block",
burntime = 800
2016-02-07 03:24:38 +02:00
})
minetest.register_craft({
type = "fuel",
recipe = "default:coal_lump",
burntime = 80
2016-02-07 03:24:38 +02:00
})
minetest.register_craft({
type = "fuel",
recipe = "default:charcoal_lump",
burntime = 80
2016-02-07 03:24:38 +02:00
})
minetest.register_craft({
type = "fuel",
recipe = "default:junglesapling",
burntime = 5
2016-02-07 03:24:38 +02:00
})
2019-07-07 20:40:09 +02:00
minetest.register_craft({
type = "fuel",
recipe = "default:book",
burntime = 5
2016-02-07 03:24:38 +02:00
})
minetest.register_craft({
type = "fuel",
2019-07-07 20:40:09 +02:00
recipe = "default:book_written",
burntime = 5
2016-02-07 03:24:38 +02:00
})
minetest.register_craft({
type = "fuel",
2019-07-07 20:40:09 +02:00
recipe = "default:dry_shrub",
burntime = 5
2019-07-07 20:40:09 +02:00
})
minetest.register_craft({
type = "fuel",
2019-10-27 21:39:57 +01:00
recipe = "default:stick",
burntime = 3
2019-07-07 20:40:09 +02:00
})