mirror of
https://codeberg.org/tenplus1/bonemeal.git
synced 2025-01-08 17:20:24 +01:00
add lb custom function
This commit is contained in:
parent
2fd7407366
commit
c662f2f91e
@ -1,11 +1,22 @@
|
|||||||
|
|
||||||
-- add lucky blocks
|
-- 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
|
if minetest.get_modpath("lucky_block") then
|
||||||
|
|
||||||
lucky_block:add_blocks({
|
lucky_block:add_blocks({
|
||||||
{"lig"},
|
{"lig"},
|
||||||
{"dro", {"bonemeal:mulch", "bonemeal:bonemeal", "bonemeal:fertiliser"}, 10},
|
{"dro", {"bonemeal:mulch", "bonemeal:bonemeal", "bonemeal:fertiliser"}, 10},
|
||||||
|
{"cus", growy},
|
||||||
})
|
})
|
||||||
|
|
||||||
end -- END IF
|
end -- END IF
|
||||||
|
Loading…
Reference in New Issue
Block a user