mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-15 15:41:06 +01:00
12 lines
297 B
Lua
12 lines
297 B
Lua
bonemeal = {}
|
|
|
|
function bonemeal:on_use(pos, strength, node)
|
|
-- Fake itemstack for bone meal
|
|
local itemstack = ItemStack("mcl_bone_meal:bone_meal")
|
|
|
|
local pointed_thing = {
|
|
above = pos,
|
|
under = vector.offset(pos, 0, -1, 0)
|
|
}
|
|
mcl_bone_meal.use_bone_meal(itemstack, nil, pointed_thing)
|
|
end
|