]> git.lizzy.rs Git - Crafter.git/blobdiff - mods/main/craft_recipes.lua
Overhaul mobs pathfinding even further
[Crafter.git] / mods / main / craft_recipes.lua
index 0c71e1e9c44e477b87474ce7272e267130fab0a1..3861aafa92f192050834f5cf4abf38055096d954 100644 (file)
 --crafting recipes
-local tool =     {"wood","stone", "iron","gold","diamond"}--the tool name
-local material = {"wood","cobble","iron","gold","diamond"}--material to craft
 
+--cooking
+minetest.register_craft({
+       type = "cooking",
+       output = "main:diamond",
+       recipe = "main:diamondore",
+       cooktime = 12,
+})
+minetest.register_craft({
+       type = "cooking",
+       output = "main:coal 4",
+       recipe = "main:coalore",
+       cooktime = 3,
+})
+minetest.register_craft({
+       type = "cooking",
+       output = "main:charcoal",
+       recipe = "main:tree",
+       cooktime = 2,
+})
+minetest.register_craft({
+       type = "cooking",
+       output = "main:gold",
+       recipe = "main:goldore",
+       cooktime = 9,
+})
+minetest.register_craft({
+       type = "cooking",
+       output = "main:iron",
+       recipe = "main:ironore",
+       cooktime = 6,
+})
+minetest.register_craft({
+       type = "cooking",
+       output = "main:stone",
+       recipe = "main:cobble",
+       cooktime = 2,
+})
+
+minetest.register_craft({
+       type = "cooking",
+       output = "main:glass",
+       recipe = "main:sand",
+       cooktime = 1,
+})
+
+
+--fuel fuel fuel
+minetest.register_craft({
+       type = "fuel",
+       recipe = "main:stick",
+       burntime = 1,
+})
+minetest.register_craft({
+       type = "fuel",
+       recipe = "main:sapling",
+       burntime = 1,
+})
+minetest.register_craft({
+       type = "fuel",
+       recipe = "main:paper",
+       burntime = 1,
+})
+minetest.register_craft({
+       type = "fuel",
+       recipe = "main:tree",
+       burntime = 24,
+})
+minetest.register_craft({
+       type = "fuel",
+       recipe = "main:wood",
+       burntime = 12,
+})
+minetest.register_craft({
+       type = "fuel",
+       recipe = "main:leaves",
+       burntime = 3,
+})
+minetest.register_craft({
+       type = "fuel",
+       recipe = "main:coal",
+       burntime = 20,
+})
 
+minetest.register_craft({
+       type = "fuel",
+       recipe = "main:charcoal",
+       burntime = 7,
+})
+---crafting
 minetest.register_craft({
        type = "shapeless",
        output = "main:wood 4",
        recipe = {"main:tree"},
 })
+minetest.register_craft({
+       type = "shapeless",
+       output = "main:sugar 3",
+       recipe = {"farming:sugarcane"},
+})
 
 minetest.register_craft({
        output = "main:stick 4",
@@ -17,6 +108,15 @@ minetest.register_craft({
        }
 })
 
+minetest.register_craft({
+       output = "main:paper",
+       recipe = {
+               {"farming:sugarcane","farming:sugarcane","farming:sugarcane"},
+       }
+})
+
+local tool =     {"wood","stone", "iron","gold","diamond"}--the tool name
+local material = {"wood","cobble","iron","gold","diamond"}--material to craft
 
 for id,tool in pairs(tool) do
        minetest.register_craft({
@@ -63,3 +163,37 @@ for id,tool in pairs(tool) do
                }
        })
 end
+
+minetest.register_craft({
+       output = "main:ladder",
+       recipe = {
+               {"main:stick","", "main:stick"},
+               {"main:stick","main:stick", "main:stick"},
+               {"main:stick", "", "main:stick"}
+       }
+})
+
+minetest.register_craft({
+       output = "main:shears",
+       recipe = {
+               {"","main:iron"},
+               {"main:iron",""},
+       }
+})
+
+minetest.register_craft({
+       output = "main:bucket",
+       recipe = {
+               {"main:iron","","main:iron"},
+               {"","main:iron",""},
+       }
+})
+
+--tool repair
+minetest.register_craft({
+       type = "toolrepair",
+       additional_wear = -0.02,
+})
+
+
+