add alias for bushes:strawberry item

This commit is contained in:
TenPlus1 2018-05-17 11:04:54 +01:00
parent 6e52f96703
commit b9a9a8e8d8

View File

@ -1,3 +1,7 @@
-- wait until mods are finished loading
minetest.after(0, function()
-- add food group to default apple and brown mushroom -- add food group to default apple and brown mushroom
minetest.override_item("default:apple", { minetest.override_item("default:apple", {
groups = {food_apple = 1, fleshy = 3, dig_immediate = 3, flammable = 2, groups = {food_apple = 1, fleshy = 3, dig_immediate = 3, flammable = 2,
@ -12,7 +16,7 @@ minetest.override_item("flowers:mushroom_brown", {
end end
-- is Ethereal mod installed? -- is Ethereal mod installed?
local eth = minetest.get_modpath("ethereal") or nil local eth = minetest.get_modpath("ethereal")
-- Banana -- Banana
if eth then if eth then
@ -140,9 +144,11 @@ else
minetest.register_alias("farming_plus:strawberry_2", "farming:raspberry_2") minetest.register_alias("farming_plus:strawberry_2", "farming:raspberry_2")
minetest.register_alias("farming_plus:strawberry_3", "farming:raspberry_3") minetest.register_alias("farming_plus:strawberry_3", "farming:raspberry_3")
minetest.register_alias("farming_plus:strawberry", "farming:raspberry_4") minetest.register_alias("farming_plus:strawberry", "farming:raspberry_4")
end end
minetest.register_alias("bushes:strawberry", "ethereal:strawberry")
-- Tomato -- Tomato
minetest.register_alias("farming_plus:tomato_seed", "farming:tomato") minetest.register_alias("farming_plus:tomato_seed", "farming:tomato")
minetest.register_alias("farming_plus:tomato_item", "farming:tomato") minetest.register_alias("farming_plus:tomato_item", "farming:tomato")
@ -165,5 +171,6 @@ if minetest.get_modpath("bushes_classic") then
minetest.register_alias("bushes:blueberry", "farming:blueberries") minetest.register_alias("bushes:blueberry", "farming:blueberries")
minetest.register_alias("bushes:raspberry", "farming:raspberries") minetest.register_alias("bushes:raspberry", "farming:raspberries")
end end
end)