We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e06369b + 0b006fc commit 284d648Copy full SHA for 284d648
mods/default/functions.lua
@@ -294,6 +294,12 @@ minetest.register_abm({
294
--
295
296
local in_dig_up = false
297
+
298
+---Find all nodes above this one that is the same, then dig them all
299
+---@param pos vector The position of the base node
300
+---@param node { name: string, param1: integer, param2: integer } Node table of the base node
301
+---@param digger ObjectRef The object (e.g. player) digging the node
302
+---@param max_height The maximum height to search for, excluding the base node
303
function default.dig_up(pos, node, digger, max_height)
304
if in_dig_up then return end -- Do not recurse
305
if digger == nil then return end
0 commit comments