1
0
mirror of https://codeberg.org/tenplus1/bonemeal.git synced 2025-03-21 11:50:31 +01:00
bonemeal/lucky_block.lua

26 lines
494 B
Lua
Raw Normal View History

2017-07-24 20:17:20 +01:00
-- add lucky blocks
2017-07-24 20:31:01 +01: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
2022-11-02 14:30:24 +00:00
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}
}}
})