\r
Scale the current WorldEdit positions and region by a factor of `<stretchx>`, `<stretchy>`, `<stretchz>` along the X, Y, and Z axes, repectively, with position 1 as the origin.\r
\r
- //scale 2 2 2\r
- //scale 1 2 1\r
- //scale 10 20 1\r
+ //stretch 2 2 2\r
+ //stretch 1 2 1\r
+ //stretch 10 20 1\r
\r
### `//transpose x/y/z/? x/y/z/?`\r
\r
stretchx, stretchy, stretchz = tonumber(stretchx), tonumber(stretchy), tonumber(stretchz)\r
if stretchx == 0 or stretchy == 0 or stretchz == 0 then\r
worldedit.player_notify(name, "invalid scaling factors: " .. param)\r
+ return nil\r
end\r
local count = check_region(name, param)\r
- if count then return tonumber(stretchx) * tonumber(stretchy) * tonumber(stretchz) * count end\r
+ if count then\r
+ return stretchx * stretchy * stretchz * count\r
+ end\r
return nil\r
end),\r
})\r