summaryrefslogtreecommitdiff
path: root/worldedit/manipulations.lua
AgeCommit message (Collapse)Author
2017-01-02Make //fixlight work againsfan5
The dig-air-nodes method seems to have stopped working a few Minetest version ago
2016-01-05Fix //stack2 not working (closes #94)sfan5
2015-05-04Fix crash (worldedit/manipulations.lua:526: attempt to call global ↵sfan5
'set_node' (a nil value))
2015-02-01Cleanup and fixupShadowNinja
Non-stylistic changes: * Add LuaDoc/LDoc support. * Fix `clear_objects` area size calculation. * Fix `clear_objects` removing player objects. * Fix shadowing of marker entity name with player name. * Make visualization functions use `swap_node`. * Make hidden nodes unwalkable. * Prevent `hide` from hiding air. * Make deprecated functions log to deprecated stream when called. * Fixed `replaceinverse` not using normalized node names. * Added .gitignore. * Bump version to 1.1. Stylistic changes: * Change `x = function` to `function x`. * Change comment format. * Make missing VoxelManip error less obnoxious. * Move `sort_pos` into `common.lua`, which is a required module. * Remove local copies of `minetest`. * Remove `worldedit = worldedit or {}` from modules. * Replace replaceinverse with an inverse argument to `replace`. * Added `error()`s on on invalid axes. * Change `wip` to `TODO`. * Rename `clearobjects` to `clear_objects`. * Remove `hollow_{sphere,dome,cylinder}` and replace them with a hollow parameter to each function. * Add helpers to reduce code duplication. * Renamed `Chat Commands.md` to `ChatCommands.md`.
2014-12-16Fix stack2 paramKodexKy
Fix stack2 amount count Fix stack2 sign recognition for y & z
2014-07-23Fix runtime error checking with lua* commandsShadowNinja
2014-07-14Oops, fix //set.Uberi
2014-07-12Coding style updates.Uberi
2014-07-09CPS-ifying stackCy
Continuation Passing Style lets me use minetest.after, so the server gets a chance to not hang in between every stack iteration. Could even set minetest.after(1000,nextone) if you want to see it extend once every second.
2014-07-09Slight optimization to //setCy
Just noticed I box the one type version in a list, to avoid testing whether it's the one type version, but have to test for that to decide whether to box it or not. Should shave like a whole 3ms from each //set command.
2014-07-07Oops, fix `//set`.Uberi
2014-07-06Update `stack2` API documentation.Uberi
2014-07-06Documentation for `//stack2`, code style fixes, add author section to README.Uberi
2014-06-30Improved stackingCy
This stack / copy uses a direction vector, so it's not limited to only along the X/Y/Z axis, and can go diagonally. This enables things like building staircases.
2014-06-30Randomized setCy
Can /set node node2 node3 and it will randomly choose between those three.
2013-12-20Improve node inspector to show player axis, replace //scale with //stretch, ↵Uberi
which supports per-axis stretching (full backwards compatibility retained), and secure schematic file loading functions.
2013-08-16Changes to support the latest schematic probability specification.Uberi
2013-08-01Final changes and version number bump.Anthony Zhang
2013-07-31Rewrite spirals from scratch and fix upside-down pyramids. Use voxelmanip ↵Anthony Zhang
for markers to ensure area is emerged.
2013-07-31//pyramid works along any axis and backwards. Working //clearobjects and ↵Anthony Zhang
//cylinder command, begin implementing super marker. Remove EnvRef usages and the block queue (the block queue does not work with VoxelManips). More block emergers.
2013-07-29Support negative values to make upside-down domes and pyramids (slight ↵Anthony Zhang
changes to worldedit.pyramid interface for coming changes). Add experimental //clearobjects, make node inspector work per-player.
2013-07-21Super duper VoxelManipulator speedups to nearly every API function, and plus ↵Anthony Zhang
support for unloaded areas. Still in progress. Also, fix //allocate for very large schematics.
2013-07-12Even bigger speed gains by using LuaVoxelManipulator in a few choice places! ↵Anthony Zhang
Faster //set, //cylinder, etc., but plenty of room for improvements still.
2013-06-23Avoid using slower and deprecated EnvRef, fix schematic data MapNodes, huge ↵Anthony Zhang
speed boost to worldedit.hollow_cylinder, fix some bugs.
2013-06-22Super-speed a few primitives and visualization functions, including ↵Anthony Zhang
hollowsphere, sphere, hollowdome, dome, and suppress.
2013-06-22Significant but highly experimental speed-ups for worldedit.set, replace, ↵Anthony Zhang
and scale, plus preparation for more.
2013-06-18Add `//scale <factor>` command (suggested by Jordach), fix transposition ↵Anthony Zhang
description in docs.
2013-05-30Block queue doesn't lag anymore on slow operations like digging and placing ↵Anthony Zhang
nodes, better and more efficient //fixlight.
2013-04-28Add Block QueueSfan5
2013-02-17Fixed bug where unmodified axis used pos1 coords instead of pos2 coords.Anthony Zhang
2013-01-12Replace //homogenize with //replaceinverse (//homogenize x is equivalent to ↵Anthony Zhang
//replaceinverse air x), add documentation for it.
2013-01-12New command: //orient, that rotates oriented nodes such as furnaces around ↵Anthony Zhang
the Y-axis by a specified angle.
2013-01-12Change all references of //dig to //fixlight, document the changes, fix a ↵Anthony Zhang
small typo.
2013-01-12Fix my Code again (I've use Python too much)sfan5
2013-01-12Fix Code againsfan5
2013-01-12Fix Codesfan5
2013-01-12Rename //dig to //fixlightsfan5
2013-01-12Only dig air Nodessfan5
2012-12-12Many thanks to Smitje for providing a working example of roations.Anthony Zhang
Changes: fixed rotation and transposition of non-sqaure regions, makers are now moved to the new region boundaries after rotation/transposition, small consistency fixes, finally fix the /hide command.
2012-10-13Separate components into separate mods, add visualization API with hide(), ↵Anthony Zhang
suppress(), find(), and restore() for nondestructive node visualization. Corresponding chat commands are //hide, //suppress, //find, and //restore. Commands and functions documented.