1
0
mirror of https://codeberg.org/tenplus1/farming.git synced 2024-11-05 01:40:40 +01:00

add mushroom override to add food_ group

This commit is contained in:
TenPlus1 2018-03-16 19:21:35 +00:00
parent 289141dd32
commit 6eac7041ef

View File

@ -1,9 +1,16 @@
-- add food group to default apple
-- add food group to default apple and brown mushroom
minetest.override_item("default:apple", {
groups = {food_apple = 1, fleshy = 3, dig_immediate = 3, flammable = 2,
leafdecay = 3, leafdecay_drop = 1},
})
if minetest.registered_nodes["flowers:mushroom_brown"] then
minetest.override_item("flowers:mushroom_brown", {
light_source = 1,
groups = {food_mushroom = 1, snappy = 3, attached_node = 1, flammable = 2},
})
end
-- is Ethereal mod installed?
local eth = minetest.get_modpath("ethereal") or nil