\r
Returns the number of nodes stacked.\r
\r
+### count = worldedit.stack2(pos1, pos2, direction, amount)\r
+\r
+Duplicates the region defined by positions `pos1` and `pos2` `amount` times with offset vector `direction`.\r
+\r
+Returns the number of nodes stacked.\r
+\r
### count, newpos1, newpos2 = worldedit.stretch(pos1, pos2, stretchx, stretchy, stretchz)\r
\r
Stretches the region defined by positions `pos1` and `pos2` by an factor of positive integers `stretchx`, `stretchy`. and `stretchz` along the X, Y, and Z axes, respectively, with `pos1` as the origin.\r
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