mirror of
https://notabug.org/TenPlus1/bonemeal.git
synced 2024-11-19 23:43:47 +01:00
26 lines
494 B
Lua
26 lines
494 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
|
|
|
|
|
|
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},
|
|
{name = "bonemeal:fertiliser", max = 10}
|
|
}}
|
|
})
|