mirror of
https://codeberg.org/tenplus1/bonemeal.git
synced 2024-11-14 20:10:17 +01:00
25 lines
392 B
Lua
25 lines
392 B
Lua
|
|
-- 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"}, 10},
|
|
{"dro", {"bonemeal:bonemeal"}, 10},
|
|
{"dro", {"bonemeal:fertiliser"}, 10},
|
|
{"cus", growy},
|
|
})
|
|
|
|
end
|