c1a5cf776b
to the one in the moreblocks mod. Got rid of jungle tree planks recipe, default already has it. But that's not the important part... Acorns, fir/spruce/pine cones, and coconuts are now edible! Fir/spruce/pine cones can be cooked to extract fir/spruce/pine nuts. One cone yields 4 portions of nuts, each of which heals 1/2 heart. Coconuts can be broken apart to get milk and raw coconut solids (e.g. the "meat"). Craft one coconut, one drinking glass, and one cutting tool (*see below). Yields one portion of coconut solids, one glass full of coconut milk, and the tool is returned. The coconut milk heals 1 heart and returns the empty glass, while one portion of coconut solids heals two hearts. Coconut milk can be crafted with four acorns to produce acorn muffin batter. One portion of this batter can be cooked into four acorn muffins. Each muffin restores two hearts. Enjoy :-) ----- * Since Minetest doesn't have any default cutting tools that would normally be suitable for this purpose, the following tools may be used instead to cut the coconuts open: Default bronze, diamond, Mese, or steel axe, ...or... glooptest Alatro or Arol axe, ...or... moreores Mithril or silver axe, ...or... titanium axe. (note that stone and wooden axes are deliberately not usable)
150 lines
3.3 KiB
Lua
150 lines
3.3 KiB
Lua
|
|
for i in ipairs(moretrees.treelist) do
|
|
treename = moretrees.treelist[i][1]
|
|
|
|
minetest.register_craft({
|
|
output = "moretrees:"..treename.."_trunk_sideways 2",
|
|
recipe = {
|
|
{"moretrees:"..treename.."_trunk", "moretrees:"..treename.."_trunk"}
|
|
}
|
|
})
|
|
|
|
minetest.register_craft({
|
|
output = "moretrees:"..treename.."_trunk 2",
|
|
recipe = {
|
|
{"moretrees:"..treename.."_trunk_sideways"},
|
|
{"moretrees:"..treename.."_trunk_sideways"}
|
|
}
|
|
})
|
|
|
|
minetest.register_craft({
|
|
type = "shapeless",
|
|
output = "moretrees:"..treename.."_planks 4",
|
|
recipe = {
|
|
"moretrees:"..treename.."_trunk"
|
|
}
|
|
})
|
|
|
|
minetest.register_craft({
|
|
type = "shapeless",
|
|
output = "moretrees:"..treename.."_planks 4",
|
|
recipe = {
|
|
"moretrees:"..treename.."_trunk_sideways"
|
|
}
|
|
})
|
|
|
|
minetest.register_craft({
|
|
type = "fuel",
|
|
recipe = "moretrees:"..treename.."_sapling",
|
|
burntime = 10,
|
|
})
|
|
end
|
|
|
|
minetest.register_craft({
|
|
type = "fuel",
|
|
recipe = "group:moretrees_leaves",
|
|
burntime = 1,
|
|
})
|
|
|
|
-- Food recipes!
|
|
|
|
minetest.register_craftitem("moretrees:coconut_milk", {
|
|
description = "Coconut Milk",
|
|
inventory_image = "moretrees_coconut_milk_inv.png",
|
|
wield_image = "moretrees_coconut_milk.png",
|
|
on_use = minetest.item_eat(2),
|
|
})
|
|
|
|
minetest.register_craftitem("moretrees:raw_coconut", {
|
|
description = "Raw Coconut",
|
|
inventory_image = "moretrees_raw_coconut.png",
|
|
on_use = minetest.item_eat(4),
|
|
})
|
|
|
|
minetest.register_craftitem("moretrees:acorn_muffin_batter", {
|
|
description = "Acorn Muffin batter",
|
|
inventory_image = "moretrees_acorn_muffin_batter.png",
|
|
})
|
|
|
|
minetest.register_craftitem("moretrees:acorn_muffin", {
|
|
description = "Acorn Muffin",
|
|
inventory_image = "moretrees_acorn_muffin.png",
|
|
on_use = minetest.item_eat(4),
|
|
})
|
|
|
|
minetest.register_craftitem("moretrees:spruce_nuts", {
|
|
description = "Roasted Spruce Cone Nuts",
|
|
inventory_image = "moretrees_spruce_nuts.png",
|
|
on_use = minetest.item_eat(1),
|
|
})
|
|
|
|
minetest.register_craftitem("moretrees:pine_nuts", {
|
|
description = "Roasted Pine Cone Nuts",
|
|
inventory_image = "moretrees_pine_nuts.png",
|
|
on_use = minetest.item_eat(1),
|
|
})
|
|
|
|
minetest.register_craftitem("moretrees:fir_nuts", {
|
|
description = "Roasted Fir Cone Nuts",
|
|
inventory_image = "moretrees_fir_nuts.png",
|
|
on_use = minetest.item_eat(1),
|
|
})
|
|
|
|
for i in ipairs(moretrees.cutting_tools) do
|
|
local tool = moretrees.cutting_tools[i]
|
|
minetest.register_craft({
|
|
type = "shapeless",
|
|
output = "moretrees:coconut_milk",
|
|
recipe = {
|
|
"moretrees:coconut",
|
|
"vessels:drinking_glass",
|
|
tool
|
|
},
|
|
replacements = {
|
|
{ "moretrees:coconut", "moretrees:raw_coconut" },
|
|
{ tool, tool }
|
|
}
|
|
})
|
|
end
|
|
|
|
minetest.register_craft({
|
|
type = "shapeless",
|
|
output = "moretrees:acorn_muffin_batter",
|
|
recipe = {
|
|
"moretrees:acorn",
|
|
"moretrees:acorn",
|
|
"moretrees:acorn",
|
|
"moretrees:acorn",
|
|
"moretrees:coconut_milk",
|
|
},
|
|
replacements = {
|
|
{ "moretrees:coconut_milk", "vessels:drinking_glass" }
|
|
}
|
|
})
|
|
|
|
minetest.register_craft({
|
|
type = "cooking",
|
|
output = "moretrees:acorn_muffin 4",
|
|
recipe = "moretrees:acorn_muffin_batter",
|
|
})
|
|
|
|
minetest.register_craft({
|
|
type = "cooking",
|
|
output = "moretrees:spruce_nuts 4",
|
|
recipe = "moretrees:spruce_cone",
|
|
})
|
|
|
|
minetest.register_craft({
|
|
type = "cooking",
|
|
output = "moretrees:pine_nuts 4",
|
|
recipe = "moretrees:pine_cone",
|
|
})
|
|
|
|
minetest.register_craft({
|
|
type = "cooking",
|
|
output = "moretrees:fir_nuts 4",
|
|
recipe = "moretrees:fir_cone",
|
|
})
|
|
|
|
|