forked from mtcontrib/plantlife_modpack
defer to farming for sugar
This commit is contained in:
parent
60c3664cbb
commit
3eb2befaa4
@ -13,19 +13,26 @@ minetest.register_craft({
|
|||||||
|
|
||||||
-- Sugar
|
-- Sugar
|
||||||
|
|
||||||
minetest.register_craftitem(":bushes:sugar", {
|
if not minetest.registered_items["farming:sugar"] then
|
||||||
description = S("Sugar"),
|
minetest.register_craftitem(":bushes:sugar", {
|
||||||
inventory_image = "bushes_sugar.png",
|
description = S("Sugar"),
|
||||||
on_use = minetest.item_eat(1),
|
inventory_image = "bushes_sugar.png",
|
||||||
groups = {food_sugar=1, flammable = 2}
|
on_use = minetest.item_eat(1),
|
||||||
})
|
groups = {food_sugar=1, flammable = 2}
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "bushes:sugar 1",
|
||||||
|
recipe = {
|
||||||
|
{ "default:papyrus", "default:papyrus" },
|
||||||
|
},
|
||||||
|
})
|
||||||
|
else
|
||||||
|
minetest.register_alias("bushes:sugar", "farming:sugar")
|
||||||
|
end
|
||||||
|
|
||||||
|
minetest.register_alias("farming_plus:carrot_seed", "farming:carrot")
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = "bushes:sugar 1",
|
|
||||||
recipe = {
|
|
||||||
{ "default:papyrus", "default:papyrus" },
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
-- override farming_plus strawberry and add food_ group
|
-- override farming_plus strawberry and add food_ group
|
||||||
if minetest.get_modpath("farming_plus") then
|
if minetest.get_modpath("farming_plus") then
|
||||||
|
Loading…
Reference in New Issue
Block a user