From dbc6ccf089410b9a43ea06708ed414ee3fc79df7 Mon Sep 17 00:00:00 2001 From: orbea Date: Wed, 29 Apr 2020 20:04:16 -0700 Subject: [PATCH] Add missing fuel recipes for wood and cactus armor. Fixes https://github.com/stujones11/minetest-3d_armor/issues/174 --- 3d_armor/armor.lua | 26 ++++++++++++++++++++++++++ shields/init.lua | 10 ++++++++++ 2 files changed, 36 insertions(+) diff --git a/3d_armor/armor.lua b/3d_armor/armor.lua index 85d120a..171ce03 100644 --- a/3d_armor/armor.lua +++ b/3d_armor/armor.lua @@ -79,6 +79,19 @@ if armor.materials.wood then damage_groups = {cracky=3, snappy=2, choppy=3, crumbly=2, level=1}, groups = {armor_feet=1, armor_heal=0, armor_use=2000, flammable=1}, }) + local wood_armor_fuel = { + helmet = 6, + chestplate = 8, + leggings = 7, + boots = 5 + } + for armor, burn in pairs(wood_armor_fuel) do + minetest.register_craft({ + type = "fuel", + recipe = "3d_armor:" .. armor .. "_wood", + burntime = burn, + }) + end end if armor.materials.cactus then @@ -110,6 +123,19 @@ if armor.materials.cactus then armor_groups = {fleshy=5}, damage_groups = {cracky=3, snappy=3, choppy=2, crumbly=2, level=1}, }) + local cactus_armor_fuel = { + helmet = 14, + chestplate = 16, + leggings = 15, + boots = 13 + } + for armor, burn in pairs(cactus_armor_fuel) do + minetest.register_craft({ + type = "fuel", + recipe = "3d_armor:" .. armor .. "_cactus", + burntime = burn, + }) + end end if armor.materials.steel then diff --git a/shields/init.lua b/shields/init.lua index ada503e..754b093 100644 --- a/shields/init.lua +++ b/shields/init.lua @@ -68,6 +68,11 @@ if armor.materials.wood then {"default:steel_ingot"}, }, }) + minetest.register_craft({ + type = "fuel", + recipe = "shields:shield_wood", + burntime = 8, + }) end if armor.materials.cactus then @@ -107,6 +112,11 @@ if armor.materials.cactus then {"default:steel_ingot"}, }, }) + minetest.register_craft({ + type = "fuel", + recipe = "shields:shield_cactus", + burntime = 16, + }) end if armor.materials.steel then