From 4bed5f7c10916f95d72463c86a5e68bd0d96421a Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 10 Jan 2017 06:43:07 +0100 Subject: [PATCH] Update all fuel recipes --- API.txt | 10 +++++- mods/boat/init.lua | 7 ++++ mods/craftingpack/crafting/init.lua | 7 ++++ mods/default/crafting.lua | 36 +++++++++++++++++++ mods/doors/init.lua | 36 +++++++++++++++++++ mods/farming/hoes.lua | 5 +++ mods/fences/init.lua | 12 +++++-- mods/redstone/mesecons_button/init.lua | 7 ++++ mods/redstone/mesecons_noteblock/init.lua | 6 ++++ .../redstone/mesecons_pressureplates/init.lua | 6 ++++ mods/redstone/mesecons_solarpanel/init.lua | 11 ++++++ mods/stairs/init.lua | 24 +++++++++---- mods/throwing/init.lua | 5 +++ mods/wool/init.lua | 11 ++++++ 14 files changed, 173 insertions(+), 10 deletions(-) diff --git a/API.txt b/API.txt index ca83834c55..e5704e5156 100644 --- a/API.txt +++ b/API.txt @@ -30,6 +30,9 @@ Groups (mostly) used for crafting recipes quartz_block=1 Quartz Block and variants (chiseled, pillar, etc.) (only full blocks) + stonebrick=1 + Stone Bricks and related nodes (only full blocks) + tree=1 Oak Wood, Birch Wood, etc. (tree trunks) @@ -37,11 +40,16 @@ Groups (mostly) used for crafting recipes Oak Wood Planks, Birch Wood Planks, etc. (only full blocks) wood_slab=1 - Slabs made out of wooden planks + Slabs made out of a kind of wooden planks + + wood_stiars=1 + Stairs made out of a kind of wooden planks coal=1 Coal of any kind (coal lump) + boat=1 + Boat Other groups water=1 diff --git a/mods/boat/init.lua b/mods/boat/init.lua index 382c6bdf23..62e0b4dbce 100644 --- a/mods/boat/init.lua +++ b/mods/boat/init.lua @@ -148,6 +148,7 @@ minetest.register_craftitem("boat:boat", { description = "Boat", inventory_image = "boat_inventory.png", liquids_pointable = true, + groups = { boat = 1, }, on_place = function(itemstack, placer, pointed_thing) if pointed_thing.type ~= "node" then @@ -174,5 +175,11 @@ minetest.register_craft({ }, }) +minetest.register_craft({ + type = "fuel", + recipe = "group:boat", + burntime = 20, +}) + local time_to_load= os.clock() - init print(string.format("[MOD] "..minetest.get_current_modname().." loaded in %.4f s", time_to_load)) diff --git a/mods/craftingpack/crafting/init.lua b/mods/craftingpack/crafting/init.lua index f7f16cb012..abf7e8aded 100644 --- a/mods/craftingpack/crafting/init.lua +++ b/mods/craftingpack/crafting/init.lua @@ -181,3 +181,10 @@ minetest.register_craft({ {"group:wood", "group:wood"} } }) + +minetest.register_craft({ + type = "fuel", + recipe = "crafting:workbench", + burntime = 15, +}) + diff --git a/mods/default/crafting.lua b/mods/default/crafting.lua index 5c09e8a9fa..37da6bac40 100644 --- a/mods/default/crafting.lua +++ b/mods/default/crafting.lua @@ -1028,12 +1028,48 @@ minetest.register_craft({ burntime = 15, }) +minetest.register_craft({ + type = "fuel", + recipe = "default:fishing_rod", + burntime = 15, +}) + +minetest.register_craft({ + type = "fuel", + recipe = "default:pick_wood", + burntime = 10, +}) + +minetest.register_craft({ + type = "fuel", + recipe = "default:shovel_wood", + burntime = 10, +}) + +minetest.register_craft({ + type = "fuel", + recipe = "default:sword_wood", + burntime = 10, +}) + +minetest.register_craft({ + type = "fuel", + recipe = "default:axe_wood", + burntime = 10, +}) + minetest.register_craft({ type = "fuel", recipe = "group:sapling", burntime = 5, }) +minetest.register_craft({ + type = "fuel", + recipe = "default:stick", + burntime = 5, +}) + -- --Temporary -- diff --git a/mods/doors/init.lua b/mods/doors/init.lua index 1438115b2d..ce12ffbc22 100644 --- a/mods/doors/init.lua +++ b/mods/doors/init.lua @@ -408,6 +408,36 @@ minetest.register_craft({ } }) +minetest.register_craft({ + type = "fuel", + recipe = "doors:door_wood", + burntime = 10, +}) +minetest.register_craft({ + type = "fuel", + recipe = "doors:door_jungle", + burntime = 10, +}) +minetest.register_craft({ + type = "fuel", + recipe = "doors:door_dark_oak", + burntime = 10, +}) +minetest.register_craft({ + type = "fuel", + recipe = "doors:door_birch", + burntime = 10, +}) +minetest.register_craft({ + type = "fuel", + recipe = "doors:door_acacia", + burntime = 10, +}) +minetest.register_craft({ + type = "fuel", + recipe = "doors:door_spruce", + burntime = 10, +}) --- Door in Iron --- doors:register_door("doors:door_steel", { @@ -556,6 +586,12 @@ minetest.register_craft({ } }) +minetest.register_craft({ + type = "fuel", + recipe = "doors:trapdoor", + burntime = 15, +}) + --- Iron Trapdoor ---- local me local meta diff --git a/mods/farming/hoes.lua b/mods/farming/hoes.lua index 8bde35c2ad..4e617db999 100644 --- a/mods/farming/hoes.lua +++ b/mods/farming/hoes.lua @@ -50,6 +50,11 @@ minetest.register_craft({ {"default:stick", ""} } }) +minetest.register_craft({ + type = "fuel", + recipe = "farming:hoe_wood", + burntime = 10, +}) minetest.register_tool("farming:hoe_stone", { description = "Stone Hoe", diff --git a/mods/fences/init.lua b/mods/fences/init.lua index 24b36c1498..85c554db70 100644 --- a/mods/fences/init.lua +++ b/mods/fences/init.lua @@ -568,8 +568,16 @@ minetest.register_craft({ } }) - - +minetest.register_craft({ + type = "fuel", + recipe = "fences:fence_wood", + burntime = 15, +}) +minetest.register_craft({ + type = "fuel", + recipe = "fences:fencegate", + burntime = 15, +}) local meta2 local state2 = 0 diff --git a/mods/redstone/mesecons_button/init.lua b/mods/redstone/mesecons_button/init.lua index f17f70279f..4d66dfe09a 100644 --- a/mods/redstone/mesecons_button/init.lua +++ b/mods/redstone/mesecons_button/init.lua @@ -151,3 +151,10 @@ minetest.register_craft({ {'group:wood'}, } }) + +minetest.register_craft({ + type = "fuel", + recipe = 'mesecons_button:button_wood_off', + burntime = 5, +}) + diff --git a/mods/redstone/mesecons_noteblock/init.lua b/mods/redstone/mesecons_noteblock/init.lua index 23ed70a2cd..6b69c54686 100644 --- a/mods/redstone/mesecons_noteblock/init.lua +++ b/mods/redstone/mesecons_noteblock/init.lua @@ -32,6 +32,12 @@ minetest.register_craft({ } }) +minetest.register_craft({ + type = "fuel", + recipe = "mesecons_noteblock:noteblock", + burntime = 15 +}) + mesecon.noteblock_play = function (pos, param2) local soundname if param2==8 then diff --git a/mods/redstone/mesecons_pressureplates/init.lua b/mods/redstone/mesecons_pressureplates/init.lua index 8c03464f63..cc5b3f648a 100644 --- a/mods/redstone/mesecons_pressureplates/init.lua +++ b/mods/redstone/mesecons_pressureplates/init.lua @@ -122,3 +122,9 @@ mesecon:register_pressure_plate( "default_stone.png", "default_stone.png", {{"default:stone", "default:stone"}}) + +minetest.register_craft({ + type = "fuel", + recipe = "mesecons_pressureplates:pressure_plate_wood_off", + burntime = 15 +}) diff --git a/mods/redstone/mesecons_solarpanel/init.lua b/mods/redstone/mesecons_solarpanel/init.lua index 3b363b93fb..55f79da986 100644 --- a/mods/redstone/mesecons_solarpanel/init.lua +++ b/mods/redstone/mesecons_solarpanel/init.lua @@ -176,3 +176,14 @@ minetest.register_abm( end, }) +minetest.register_craft({ + type = "fuel", + recipe = "mesecons_solarpanel:solar_panel_off", + burntime = 15 +}) + +minetest.register_craft({ + type = "fuel", + recipe = "mesecons_solarpanel:solar_panel_inverted_off", + burntime = 15 +}) diff --git a/mods/stairs/init.lua b/mods/stairs/init.lua index 8e213f5554..c4ca1c5062 100644 --- a/mods/stairs/init.lua +++ b/mods/stairs/init.lua @@ -236,7 +236,7 @@ function stairs.register_stair_and_slab(subname, recipeitem, groups, images, des end stairs.register_stair("wood", "default:wood", - {snappy=2,choppy=2,oddly_breakable_by_hand=2,flammable=3}, + {snappy=2,choppy=2,oddly_breakable_by_hand=2,flammable=3,wood_stairs=1}, {"default_wood.png"}, "Oak Wood Stairs", default.node_sound_wood_defaults()) @@ -247,7 +247,7 @@ stairs.register_slab("wood", "default:wood", default.node_sound_wood_defaults()) stairs.register_stair("junglewood", "default:junglewood", - {snappy=2,choppy=2,oddly_breakable_by_hand=2,flammable=3}, + {snappy=2,choppy=2,oddly_breakable_by_hand=2,flammable=3,wood_stairs=1}, {"default_junglewood.png"}, "Jungle Wood Stairs", default.node_sound_wood_defaults()) @@ -258,7 +258,7 @@ stairs.register_slab("junglewood", "default:junglewood", default.node_sound_wood_defaults()) stairs.register_stair("acaciawood", "default:acaciawood", - {snappy=2,choppy=2,oddly_breakable_by_hand=2,flammable=3}, + {snappy=2,choppy=2,oddly_breakable_by_hand=2,flammable=3,wood_stairs=1}, {"default_acaciawood.png"}, "Acacia Wood Stairs", default.node_sound_wood_defaults()) @@ -270,7 +270,7 @@ stairs.register_slab("acaciawood", "default:acaciawood", default.node_sound_wood_defaults()) stairs.register_stair("sprucewood", "default:sprucewood", - {snappy=2,choppy=2,oddly_breakable_by_hand=2,flammable=3}, + {snappy=2,choppy=2,oddly_breakable_by_hand=2,flammable=3,wood_stairs=1}, {"default_sprucewood.png"}, "Spruce Wood Stairs", default.node_sound_wood_defaults()) @@ -281,7 +281,7 @@ stairs.register_slab("sprucewood", "default:sprucewood", default.node_sound_wood_defaults()) stairs.register_stair("birchwood", "default:birchwood", - {snappy=2,choppy=2,oddly_breakable_by_hand=2,flammable=3}, + {snappy=2,choppy=2,oddly_breakable_by_hand=2,flammable=3,wood_stairs=1}, {"default_planks_birch.png"}, "Birch Wood Stairs", default.node_sound_wood_defaults()) @@ -292,7 +292,7 @@ stairs.register_slab("birchwood", "default:birchwood", default.node_sound_wood_defaults()) stairs.register_stair("darkwood", "default:darkwood", - {snappy=2,choppy=2,oddly_breakable_by_hand=2,flammable=3}, + {snappy=2,choppy=2,oddly_breakable_by_hand=2,flammable=3,wood_stairs=1}, {"default_planks_big_oak.png"}, "Dark Oak Wood Stairs", default.node_sound_wood_defaults()) @@ -393,7 +393,17 @@ minetest.register_craft({ } }) - +-- Fuel +minetest.register_craft({ + type = "fuel", + recipe = "group:wood_stairs", + burntime = 15, +}) +minetest.register_craft({ + type = "fuel", + recipe = "group:wood_slab", + burntime = 15, +}) local time_to_load= os.clock() - init print(string.format("[MOD] "..minetest.get_current_modname().." loaded in %.4f s", time_to_load)) diff --git a/mods/throwing/init.lua b/mods/throwing/init.lua index 6d7fb56582..7da7d68c76 100644 --- a/mods/throwing/init.lua +++ b/mods/throwing/init.lua @@ -129,3 +129,8 @@ minetest.register_craft({ } }) +minetest.register_craft({ + type = "fuel", + recipe = "throwing:bow", + burntime = 15, +}) diff --git a/mods/wool/init.lua b/mods/wool/init.lua index b9b102aa30..98d93d73bd 100644 --- a/mods/wool/init.lua +++ b/mods/wool/init.lua @@ -73,3 +73,14 @@ for _, row in ipairs(wool.dyes) do end end +minetest.register_craft({ + type = "fuel", + recipe = "group:wool", + burntime = 5, +}) +minetest.register_craft({ + type = "fuel", + recipe = "group:carpet", + -- Original value: 3.35 + burntime = 3, +})