From 23ba2d3a0c918281e01402a9160902b865aa2580 Mon Sep 17 00:00:00 2001 From: cx384 Date: Sun, 30 Oct 2016 11:29:58 +0100 Subject: [PATCH] Add and edit fuel registrations 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 | 14 +++++++++ mods/boats/init.lua | 6 ++++ mods/default/crafting.lua | 61 +++++++++++++++++++++++++++++++++++---- mods/doors/init.lua | 45 +++++++++++++++++++++++++++++ mods/farming/init.lua | 25 ++++++++++++++++ mods/stairs/init.lua | 28 ++++++++++++++++++ mods/vessels/init.lua | 6 ++++ 7 files changed, 179 insertions(+), 6 deletions(-) diff --git a/mods/beds/beds.lua b/mods/beds/beds.lua index 5f31f136..b41992c3 100644 --- a/mods/beds/beds.lua +++ b/mods/beds/beds.lua @@ -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, +}) diff --git a/mods/boats/init.lua b/mods/boats/init.lua index cc55b93c..4c6937e8 100644 --- a/mods/boats/init.lua +++ b/mods/boats/init.lua @@ -248,3 +248,9 @@ minetest.register_craft({ {"group:wood", "group:wood", "group:wood"}, }, }) + +minetest.register_craft({ + type = "fuel", + recipe = "boats:boat", + burntime = 20, +}) diff --git a/mods/default/crafting.lua b/mods/default/crafting.lua index a7a0daa2..fe9862a0 100644 --- a/mods/default/crafting.lua +++ b/mods/default/crafting.lua @@ -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, +}) diff --git a/mods/doors/init.lua b/mods/doors/init.lua index 52564b0b..01a549b7 100644 --- a/mods/doors/init.lua +++ b/mods/doors/init.lua @@ -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, +}) diff --git a/mods/farming/init.lua b/mods/farming/init.lua index 9fff36e0..796e9871 100644 --- a/mods/farming/init.lua +++ b/mods/farming/init.lua @@ -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, +}) diff --git a/mods/stairs/init.lua b/mods/stairs/init.lua index 6a433525..191c78df 100644 --- a/mods/stairs/init.lua +++ b/mods/stairs/init.lua @@ -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 diff --git a/mods/vessels/init.lua b/mods/vessels/init.lua index f0362568..64ad66eb 100644 --- a/mods/vessels/init.lua +++ b/mods/vessels/init.lua @@ -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, +}) -- 2.25.1