2017-07-24 21:17:20 +02:00
|
|
|
|
|
|
|
-- add lucky blocks
|
|
|
|
|
2017-07-24 21:31:01 +02:00
|
|
|
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
|
|
|
|
|
|
|
|
|
2017-07-24 21:17:20 +02:00
|
|
|
if minetest.get_modpath("lucky_block") then
|
|
|
|
|
2017-10-12 13:00:42 +02:00
|
|
|
lucky_block:add_blocks({
|
|
|
|
{"lig"},
|
|
|
|
{"dro", {"bonemeal:mulch"}, 10},
|
|
|
|
{"dro", {"bonemeal:bonemeal"}, 10},
|
|
|
|
{"dro", {"bonemeal:fertiliser"}, 10},
|
|
|
|
{"cus", growy},
|
|
|
|
})
|
2017-07-24 21:17:20 +02:00
|
|
|
|
2017-10-12 13:00:42 +02:00
|
|
|
end
|