Add untested bonemeal mod compatibility shim

This commit is contained in:
teknomunk 2024-03-20 21:16:09 +00:00
parent cd25480f56
commit 545e752289
1 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
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