summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2017-07-24 20:31:01 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2017-07-24 20:31:01 +0100
commitc662f2f91edb1c14cc662a8415d2e161a6f0df87 (patch)
treeb9844203b1a31b2462a7a503e72c667d0069bc94
parent2fd74073666d924513b0e474bb7ede7121c804c3 (diff)
add lb custom function
-rw-r--r--lucky_block.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/lucky_block.lua b/lucky_block.lua
index da96949..f3ecd31 100644
--- a/lucky_block.lua
+++ b/lucky_block.lua
@@ -1,11 +1,22 @@
-- add lucky blocks
+local function growy(pos, player)
+
+ local dpos = minetest.find_node_near(pos, 1, "group:soil")
+
+ if dpos then
+ bonemeal:on_use(dpos, 5)
+ end
+end
+
+
if minetest.get_modpath("lucky_block") then
lucky_block:add_blocks({
{"lig"},
{"dro", {"bonemeal:mulch", "bonemeal:bonemeal", "bonemeal:fertiliser"}, 10},
+ {"cus", growy},
})
end -- END IF