Skip to content

Commit

Permalink
Add missing fuel recipes for wood and cactus armor.
Browse files Browse the repository at this point in the history
  • Loading branch information
mckaygerhard committed Oct 28, 2021
1 parent 17d6b71 commit 66741e9
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
26 changes: 26 additions & 0 deletions 3d_armor/armor.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
10 changes: 10 additions & 0 deletions shields/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,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
Expand Down Expand Up @@ -108,6 +113,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
Expand Down

0 comments on commit 66741e9

Please sign in to comment.