summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2018-03-16 19:21:35 +0000
committerTenPlus1 <kinsellaja@yahoo.com>2018-03-16 19:21:35 +0000
commit6eac7041efce943dc0706d79385c3fc6beca4386 (patch)
tree468fbec4d84ccd4a101bd20d37fe1dcb17b15ecf
parent289141dd32775059f9216ed93bc41ae8e9519c40 (diff)
add mushroom override to add food_ group
-rw-r--r--compatibility.lua9
1 files changed, 8 insertions, 1 deletions
diff --git a/compatibility.lua b/compatibility.lua
index 5637e70..d32cae6 100644
--- a/compatibility.lua
+++ b/compatibility.lua
@@ -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