Add and edit fuel registrations
authorcx384 <muelladresse84@web.de>
Sun, 30 Oct 2016 10:29:58 +0000 (11:29 +0100)
committerparamat <mat.gregory@virginmedia.com>
Wed, 2 Nov 2016 13:04:25 +0000 (13:04 +0000)
Edited fuels: fences, wooden ladder.
New fuels:
boat, paper, book, dry shrub, stick, vessels shelf, wooden tools,
wooden door, trapdoor, fence gates, farming crops, stairs, slabs, beds.

mods/beds/beds.lua
mods/boats/init.lua
mods/default/crafting.lua
mods/doors/init.lua
mods/farming/init.lua
mods/stairs/init.lua
mods/vessels/init.lua

index 5f31f136bf4bbe8605c93d6784dfb6efeb1e3e56..b41992c3cf7b19b9e34bf78797e0a15b057c7236 100644 (file)
@@ -88,3 +88,17 @@ beds.register_bed("beds:bed", {
 
 minetest.register_alias("beds:bed_bottom_red", "beds:bed_bottom")
 minetest.register_alias("beds:bed_top_red", "beds:bed_top")
+
+-- Fuel
+
+minetest.register_craft({
+       type = "fuel",
+       recipe = "beds:fancy_bed_bottom",
+       burntime = 13,
+})
+
+minetest.register_craft({
+       type = "fuel",
+       recipe = "beds:bed_bottom",
+       burntime = 12,
+})
index cc55b93c871577d76ca3631a6f4234bcaf7fa026..4c6937e8c4aa8a205a5990f28ac03bafd0833d23 100644 (file)
@@ -248,3 +248,9 @@ minetest.register_craft({
                {"group:wood", "group:wood", "group:wood"},
        },
 })
+
+minetest.register_craft({
+       type = "fuel",
+       recipe = "boats:boat",
+       burntime = 20,
+})
index a7a0daa2a05de86fda5f3d75890028df56aac247..fe9862a0c4703bd59c63c7d3fe4b92d2d2d4c060 100644 (file)
@@ -915,31 +915,31 @@ minetest.register_craft({
 minetest.register_craft({
        type = "fuel",
        recipe = "default:fence_aspen_wood",
-       burntime = 11,
+       burntime = 5,
 })
 
 minetest.register_craft({
        type = "fuel",
        recipe = "default:fence_pine_wood",
-       burntime = 13,
+       burntime = 6,
 })
 
 minetest.register_craft({
        type = "fuel",
        recipe = "default:fence_wood",
-       burntime = 15,
+       burntime = 7,
 })
 
 minetest.register_craft({
        type = "fuel",
        recipe = "default:fence_acacia_wood",
-       burntime = 17,
+       burntime = 8,
 })
 
 minetest.register_craft({
        type = "fuel",
        recipe = "default:fence_junglewood",
-       burntime = 19,
+       burntime = 9,
 })
 
 
@@ -988,7 +988,7 @@ minetest.register_craft({
 minetest.register_craft({
        type = "fuel",
        recipe = "default:ladder_wood",
-       burntime = 5,
+       burntime = 2,
 })
 
 minetest.register_craft({
@@ -1050,3 +1050,52 @@ minetest.register_craft({
        recipe = "default:dry_grass_1",
        burntime = 2,
 })
+
+minetest.register_craft({
+       type = "fuel",
+       recipe = "default:paper",
+       burntime = 1,
+})
+
+minetest.register_craft({
+       type = "fuel",
+       recipe = "default:book",
+       burntime = 3,
+})
+
+minetest.register_craft({
+       type = "fuel",
+       recipe = "default:dry_shrub",
+       burntime = 2,
+})
+
+minetest.register_craft({
+       type = "fuel",
+       recipe = "group:stick",
+       burntime = 1,
+})
+
+
+minetest.register_craft({
+       type = "fuel",
+       recipe = "default:pick_wood",
+       burntime = 6,
+})
+
+minetest.register_craft({
+       type = "fuel",
+       recipe = "default:shovel_wood",
+       burntime = 4,
+})
+
+minetest.register_craft({
+       type = "fuel",
+       recipe = "default:axe_wood",
+       burntime = 6,
+})
+
+minetest.register_craft({
+       type = "fuel",
+       recipe = "default:sword_wood",
+       burntime = 5,
+})
index 52564b0be5dfb3c3c3c7f4de657dd534860aa9d8..01a549b74afaf1cd8c9f455c27220deb42510138 100644 (file)
@@ -745,3 +745,48 @@ doors.register_fencegate("doors:gate_aspen_wood", {
        material = "default:aspen_wood",
        groups = {choppy = 3, oddly_breakable_by_hand = 2, flammable = 3}
 })
+
+
+----fuels----
+
+minetest.register_craft({
+       type = "fuel",
+       recipe = "doors:trapdoor",
+       burntime = 7,
+})
+
+minetest.register_craft({
+       type = "fuel",
+       recipe = "doors:door_wood",
+       burntime = 14,
+})
+
+minetest.register_craft({
+       type = "fuel",
+       recipe = "doors:gate_wood_closed",
+       burntime = 7,
+})
+
+minetest.register_craft({
+       type = "fuel",
+       recipe = "doors:gate_acacia_wood_closed",
+       burntime = 8,
+})
+
+minetest.register_craft({
+       type = "fuel",
+       recipe = "doors:gate_junglewood_closed",
+       burntime = 9,
+})
+
+minetest.register_craft({
+       type = "fuel",
+       recipe = "doors:gate_pine_wood_closed",
+       burntime = 6,
+})
+
+minetest.register_craft({
+       type = "fuel",
+       recipe = "doors:gate_aspen_wood_closed",
+       burntime = 5,
+})
index 9fff36e03aa7f7831e58ddadbb06ee2be4deda67..796e987168cf01ad5cfe7bda91451482e5c1eda2 100644 (file)
@@ -80,3 +80,28 @@ minetest.register_craft({
                {"farming:straw"},
        }
 })
+
+-- Fuels
+minetest.register_craft({
+       type = "fuel",
+       recipe = "farming:straw",
+       burntime = 3,
+})
+
+minetest.register_craft({
+       type = "fuel",
+       recipe = "farming:wheat",
+       burntime = 1,
+})
+
+minetest.register_craft({
+       type = "fuel",
+       recipe = "farming:cotton",
+       burntime = 1,
+})
+
+minetest.register_craft({
+       type = "fuel",
+       recipe = "farming:hoe_wood",
+       burntime = 5,
+})
index 6a43352515e10b5bb02bba75a106dd291eea5a7a..191c78df961be7913c0a441c5525497f87e744d9 100644 (file)
@@ -106,6 +106,20 @@ function stairs.register_stair(subname, recipeitem, groups, images, description,
                                {recipeitem, recipeitem, recipeitem},
                        },
                })
+
+               -- Fuel
+               local baseburntime = minetest.get_craft_result({
+                       method = "fuel",
+                       width = 1,
+                       items = {recipeitem}
+               }).time
+               if baseburntime > 0 then
+                       minetest.register_craft({
+                               type = "fuel",
+                               recipe = 'stairs:stair_' .. subname,
+                               burntime = math.floor(baseburntime * 0.75),
+                       })
+               end
        end
 end
 
@@ -207,6 +221,20 @@ function stairs.register_slab(subname, recipeitem, groups, images, description,
                                {recipeitem, recipeitem, recipeitem},
                        },
                })
+
+               -- Fuel
+               local baseburntime = minetest.get_craft_result({
+                       method = "fuel",
+                       width = 1,
+                       items = {recipeitem}
+               }).time
+               if baseburntime > 0 then
+                       minetest.register_craft({
+                               type = "fuel",
+                               recipe = 'stairs:slab_' .. subname,
+                               burntime = math.floor(baseburntime * 0.5),
+                       })
+               end
        end
 end
 
index f0362568867613dcf1c0560c7957d4b92cc461d2..64ad66eb952a922ee6894ab145fa934671c6fb6c 100644 (file)
@@ -195,3 +195,9 @@ minetest.register_craft( {
        output = "default:steel_ingot",
        recipe = "vessels:steel_bottle",
 })
+
+minetest.register_craft({
+       type = "fuel",
+       recipe = "vessels:shelf",
+       burntime = 30,
+})