mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-24 17:50:37 +01:00
Merge branch 'mgl512-sugar'
This commit is contained in:
commit
bf37db8dcd
12
mods/plantlife_modpack/bushes_classic/cooking.lua
Executable file → Normal file
12
mods/plantlife_modpack/bushes_classic/cooking.lua
Executable file → Normal file
@ -20,6 +20,17 @@ minetest.register_craft({
|
|||||||
|
|
||||||
-- Sugar
|
-- Sugar
|
||||||
|
|
||||||
|
-- Use the sugar from farming redo if available
|
||||||
|
if minetest.get_modpath("farming") and farming.mod == "redo" then
|
||||||
|
--[[ We really have nothing to do to use farming:sugar in the recipes
|
||||||
|
because they use the generic group group:food_sugar
|
||||||
|
which is added to the groups list of farming:sugar by the mod "food".
|
||||||
|
--]]
|
||||||
|
|
||||||
|
--Temporary alias to replace existing bushes:sugar in the world
|
||||||
|
--minetest.register_alias("bushes:sugar", "farming:sugar")
|
||||||
|
|
||||||
|
else
|
||||||
minetest.register_craftitem(":bushes:sugar", {
|
minetest.register_craftitem(":bushes:sugar", {
|
||||||
description = S("Sugar"),
|
description = S("Sugar"),
|
||||||
inventory_image = "bushes_sugar.png",
|
inventory_image = "bushes_sugar.png",
|
||||||
@ -33,6 +44,7 @@ minetest.register_craft({
|
|||||||
{ "default:papyrus", "default:papyrus" },
|
{ "default:papyrus", "default:papyrus" },
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
end
|
||||||
|
|
||||||
for i, berry in ipairs(bushes_classic.bushes) do
|
for i, berry in ipairs(bushes_classic.bushes) do
|
||||||
local desc = bushes_classic.bushes_descriptions[i]
|
local desc = bushes_classic.bushes_descriptions[i]
|
||||||
|
Loading…
Reference in New Issue
Block a user