summaryrefslogtreecommitdiff
path: root/grass.lua
diff options
context:
space:
mode:
authortenplus1 <kinsellaja@yahoo.com>2014-11-09 19:06:28 +0000
committertenplus1 <kinsellaja@yahoo.com>2014-11-09 19:06:28 +0000
commitd95be676d7efa30fd02ae6b35efb6d84121d9f9a (patch)
tree712b214bb1b1443ce0c2f6bc779466faa46ea608 /grass.lua
Signed-off-by: tenplus1
Diffstat (limited to 'grass.lua')
-rw-r--r--grass.lua28
1 files changed, 28 insertions, 0 deletions
diff --git a/grass.lua b/grass.lua
new file mode 100644
index 0000000..e3d1b6c
--- /dev/null
+++ b/grass.lua
@@ -0,0 +1,28 @@
+
+-- Override default grass and have it drop Wheat Seeds
+
+for i=1,5 do
+
+ minetest.override_item("default:grass_"..i, {
+ drop = {
+ max_items = 1,
+ items = {
+ {items = {'farming:seed_wheat'},rarity = 5},
+ {items = {'default:grass_1'}},
+ }
+ },
+ })
+
+end
+
+-- Override default Jungle Grass and have it drop Cotton Seeds
+
+minetest.override_item("default:junglegrass", {
+ drop = {
+ max_items = 1,
+ items = {
+ {items = {'farming:seed_cotton'},rarity = 8},
+ {items = {'default:junglegrass'}},
+ }
+ },
+})