summaryrefslogtreecommitdiff
path: root/farming/compatibility.lua
diff options
context:
space:
mode:
authorVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2018-05-11 10:22:53 -0400
committerVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2018-05-11 10:22:53 -0400
commit249daeb0e6a7d9b637eeb4e5cfda4710a68d59d3 (patch)
tree915217a9657158d2a02eb8d93507944f618d5142 /farming/compatibility.lua
parentaf2fedcf9998bb4a854c2cfd63e4cdad91a6dd5d (diff)
downloaddreambuilder_modpack-249daeb0e6a7d9b637eeb4e5cfda4710a68d59d3.tar
dreambuilder_modpack-249daeb0e6a7d9b637eeb4e5cfda4710a68d59d3.tar.gz
dreambuilder_modpack-249daeb0e6a7d9b637eeb4e5cfda4710a68d59d3.tar.bz2
dreambuilder_modpack-249daeb0e6a7d9b637eeb4e5cfda4710a68d59d3.tar.xz
dreambuilder_modpack-249daeb0e6a7d9b637eeb4e5cfda4710a68d59d3.zip
Add readme.md mostly taken from the forum thread (and markdown-ified)
Updated several mods: castles, homedecor, digilines, farming redo, jumping, maptools, mesecons, moreblocks, moretrees, pipeworks, signs_lib, technic, unified_dyes Deleted the peaceful_npc mod, as it is broken and unmaintained.
Diffstat (limited to 'farming/compatibility.lua')
-rw-r--r--farming/compatibility.lua19
1 files changed, 16 insertions, 3 deletions
diff --git a/farming/compatibility.lua b/farming/compatibility.lua
index b7c906c..ccc46a5 100644
--- a/farming/compatibility.lua
+++ b/farming/compatibility.lua
@@ -1,3 +1,16 @@
+-- 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
@@ -20,7 +33,7 @@ else
type = "fixed",
fixed = {-0.2, -0.5, -0.2, 0.2, 0.2, 0.2}
},
- groups = {fleshy = 3, dig_immediate = 3, flammable = 2},
+ groups = {food_banana = 1, fleshy = 3, dig_immediate = 3, flammable = 2},
on_use = minetest.item_eat(2),
sounds = default.node_sound_leaves_defaults(),
})
@@ -68,7 +81,7 @@ else
type = "fixed",
fixed = {-0.2, -0.3, -0.2, 0.2, 0.2, 0.2}
},
- groups = {fleshy = 3, dig_immediate = 3, flammable = 2},
+ groups = {food_orange = 1, fleshy = 3, dig_immediate = 3, flammable = 2},
on_use = minetest.item_eat(4),
sounds = default.node_sound_leaves_defaults(),
})
@@ -94,7 +107,6 @@ minetest.register_alias("farming:big_pumpkin_side", "air")
minetest.register_alias("farming:big_pumpkin_corner", "air")
minetest.register_alias("farming:big_pumpkin_top", "air")
minetest.register_alias("farming:scarecrow", "farming:jackolantern")
-minetest.register_alias("farming:scarecrow_bottom", "default:fence_wood")
minetest.register_alias("farming:scarecrow_light", "farming:jackolantern_on")
minetest.register_alias("farming:pumpkin_flour", "farming:pumpkin_dough")
@@ -118,6 +130,7 @@ else
description = "Strawberry",
inventory_image = "strawberry.png",
wield_image = "strawberry.png",
+ groups = {food_strawberry = 1, flammable = 2},
on_use = minetest.item_eat(1),
})