2021-07-29 21:32:40 +02:00
|
|
|
## Usage
|
|
|
|
|
2021-09-12 14:19:02 +02:00
|
|
|
* `//undo` undo the latest worldedit command
|
|
|
|
* `//redo` redo what was just undone
|
|
|
|
* `//show_journal` view what can be undone and redone
|
|
|
|
* With the [more_chatcommands](https://github.com/red-001/more_chatcommands)
|
|
|
|
mod, other player's changes can be undone with `/run_as <playername> //undo`,
|
|
|
|
where `<playername>` is the other player's name.
|
2017-11-12 20:39:02 +01:00
|
|
|
|
2021-07-30 17:13:46 +02:00
|
|
|
Undoing reverts changes of nodes (name, param1 and param2) and metadata.
|
|
|
|
Node timers are not yet supported.
|
|
|
|
The undo functionality should help against accidents;
|
|
|
|
however, it should not be considered reliable since there is no guarantee that
|
|
|
|
undoing always is possible or works correctly.
|
|
|
|
|
|
|
|
The changes of nodes after invoking a command such as /set are compressed to
|
|
|
|
improve memory usage.
|
2017-11-25 21:06:02 +01:00
|
|
|
|
2021-07-29 21:32:40 +02:00
|
|
|
|
|
|
|
## Related issues:
|
|
|
|
|
2017-11-12 19:16:36 +01:00
|
|
|
* https://github.com/Uberi/Minetest-WorldEdit/issues/43
|
2017-11-12 20:39:02 +01:00
|
|
|
* https://forum.minetest.net/viewtopic.php?p=296543#p296543
|
2017-11-12 19:16:36 +01:00
|
|
|
|
2021-07-29 21:32:40 +02:00
|
|
|
|
|
|
|
## Implemented and missing Worldedit commands
|
|
|
|
|
|
|
|
#### Supported chatcommands
|
|
|
|
|
2017-12-09 16:40:03 +01:00
|
|
|
* /pos1 and /1
|
|
|
|
* /pos2 and /2
|
2017-11-18 16:02:59 +01:00
|
|
|
* /p
|
2017-12-09 16:40:03 +01:00
|
|
|
* /set and /s
|
2018-02-02 07:32:29 +01:00
|
|
|
* /mix
|
2017-12-09 16:40:03 +01:00
|
|
|
* /replace and /r
|
|
|
|
* /replaceinverse and /ri
|
2021-07-29 21:32:40 +02:00
|
|
|
* /orient
|
2021-08-02 17:11:20 +02:00
|
|
|
* /flip
|
2021-07-29 14:43:32 +02:00
|
|
|
* /cube and /hollowcube
|
2017-12-09 16:55:25 +01:00
|
|
|
* /sphere and /spr
|
|
|
|
* /hollowsphere and /hspr
|
2018-02-01 20:13:41 +01:00
|
|
|
* /dome and /do
|
|
|
|
* /hollowdome and /hdo
|
2018-02-02 07:30:02 +01:00
|
|
|
* /cylinder and /cyl
|
|
|
|
* /hollowcylinder and /hcyl
|
2018-02-02 08:10:26 +01:00
|
|
|
* /pyramid and /pyr
|
|
|
|
* /hollowpyramid and /hpyr
|
2018-02-02 14:04:21 +01:00
|
|
|
* /spiral
|
2017-11-25 20:04:29 +01:00
|
|
|
* /load
|
2021-07-29 14:17:15 +02:00
|
|
|
* /mtschemplace
|
2021-08-02 17:11:20 +02:00
|
|
|
* /luatransform (nodes and metadata changes inside the selected area)
|
2017-11-18 16:30:19 +01:00
|
|
|
* /y
|
|
|
|
* /n
|
2017-11-12 19:16:36 +01:00
|
|
|
|
2021-07-29 21:32:40 +02:00
|
|
|
|
|
|
|
#### Ignored chatcommands
|
|
|
|
|
2017-12-09 16:40:03 +01:00
|
|
|
* /lua
|
|
|
|
* /clearobjects
|
2017-11-18 16:02:59 +01:00
|
|
|
* /fixlight
|
2017-11-20 19:22:53 +01:00
|
|
|
* /save
|
2017-12-09 16:40:03 +01:00
|
|
|
* /mtschemcreate
|
|
|
|
* /mtschemprob
|
2021-07-30 17:13:46 +02:00
|
|
|
* /hide
|
|
|
|
* /suppress
|
|
|
|
* /highlight
|
|
|
|
* /restore
|
2017-12-09 16:40:03 +01:00
|
|
|
* /inspect /i
|
|
|
|
* /mark /mk
|
|
|
|
* /unmark /umk
|
|
|
|
* /volume and /v
|
|
|
|
* /about
|
|
|
|
|
2021-07-29 21:32:40 +02:00
|
|
|
|
|
|
|
#### Not yet implemented
|
|
|
|
|
2017-12-09 16:40:03 +01:00
|
|
|
* /fixedpos /fp
|
|
|
|
* /reset /rst
|
|
|
|
* /shift
|
|
|
|
* /expand
|
|
|
|
* /contract
|
|
|
|
* /outset
|
|
|
|
* /inset
|
|
|
|
* /copy
|
|
|
|
* /move
|
|
|
|
* /stack
|
|
|
|
* /stack2
|
|
|
|
* /drain
|
|
|
|
* /allocate
|
|
|
|
* /deleteblocks
|
|
|
|
|
2017-11-12 19:16:36 +01:00
|
|
|
|
2021-07-29 21:32:40 +02:00
|
|
|
#### Partly implemented
|
|
|
|
|
2021-07-30 17:13:46 +02:00
|
|
|
* /transpose (the marker position change is not saved)
|
|
|
|
* /rotate (the marker position change is not saved)
|
|
|
|
* /stretch (the marker position change is not saved)
|
2021-07-29 21:32:40 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## TODO
|
2017-11-12 19:16:36 +01:00
|
|
|
|
2017-11-25 20:04:29 +01:00
|
|
|
* Allow undoing changes which happened before other changes (considered unsafe)
|
|
|
|
e.g. //undo ~1 to undo the change before the latest one
|
2021-09-12 14:19:02 +02:00
|
|
|
* Add code for more of the WorldEdit chat commands (see the lists above)
|
2021-09-13 12:12:32 +02:00
|
|
|
* Add a verbose option to the //show_journal output to show detailed information
|
|
|
|
such as the UTC time when the changes happened and the required memory to
|
|
|
|
store them
|