bace2c1686
This will allow players to eat chocolate, waffle, and candycane armor, even while wearing it, if ediblestuff_api is present
12 lines
488 B
Lua
12 lines
488 B
Lua
if minetest.get_modpath("waffles") then
|
|
-- A waffle block is 9 waffles, 8 stamina each. This is huge.
|
|
-- Let's just do 20 for all waffle armor peices.
|
|
ediblestuff.make_armor_edible_while_wearing("moarmour","waffle",20,true)
|
|
end
|
|
if minetest.get_modpath("farming") and farming.mod == "redo" then
|
|
ediblestuff.make_armor_edible_while_wearing("moarmour","chocolate",2.5)
|
|
end
|
|
if minetest.get_modpath("candycane") then
|
|
ediblestuff.make_armor_edible_while_wearing("moarmour","cane",3.5)
|
|
end
|