defer to farming for sugar

This commit is contained in:
Vanessa Dannenberg 2018-08-13 15:48:15 -04:00
parent 60c3664cbb
commit 3eb2befaa4

View File

@ -13,19 +13,26 @@ minetest.register_craft({
-- Sugar
minetest.register_craftitem(":bushes:sugar", {
if not minetest.registered_items["farming:sugar"] then
minetest.register_craftitem(":bushes:sugar", {
description = S("Sugar"),
inventory_image = "bushes_sugar.png",
on_use = minetest.item_eat(1),
groups = {food_sugar=1, flammable = 2}
})
})
minetest.register_craft({
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")
-- override farming_plus strawberry and add food_ group
if minetest.get_modpath("farming_plus") then