return count\r
end\r
\r
+--copies the region defined by positions `pos1` and `pos2` along the `axis` axis ("x" or "y" or "z") by `amount` nodes, returning the number of nodes copied\r
worldedit.copy = function(pos1, pos2, axis, amount) --wip: replace the old version below\r
local pos1, pos2 = worldedit.sort_pos(pos1, pos2)\r
\r
end\r
end\r
\r
+--duplicates the region defined by positions `pos1` and `pos2` `amount` times with offset vector `direction`, returning the number of nodes stacked\r
worldedit.stack2 = function(pos1, pos2, direction, amount, finished)\r
local i = 0\r
local translated = {x=0,y=0,z=0}\r
end\r
end\r
nextone()\r
- return nil\r
+ return worldedit.volume(pos1, pos2) * amount\r
end\r
\r
--copies the region defined by positions `pos1` and `pos2` along the `axis` axis ("x" or "y" or "z") by `amount` nodes, returning the number of nodes copied\r