2020-10-26 17:38:53 +01:00
|
|
|
|
|
|
|
-- 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},
|
|
|
|
{"nod", "default:chest", 0, {
|
|
|
|
{name = "bonemeal:mulch", max = 20},
|
|
|
|
{name = "bonemeal:bonemeal", max = 15},
|
2022-01-16 20:12:39 +01:00
|
|
|
{name = "bonemeal:fertiliser", max = 10}
|
|
|
|
}}
|
2020-10-26 17:38:53 +01:00
|
|
|
})
|
|
|
|
end
|