1
0
mirror of https://github.com/Uberi/Minetest-WorldEdit.git synced 2024-12-27 11:10:39 +01:00
Commit Graph

175 Commits

Author SHA1 Message Date
sfan5
adab528f8a Fix nodename normalization with translated descriptions 2019-09-18 18:48:31 +02:00
sfan5
68f7bcc728 Warn when "misaligned" schematics are created
The underlying issue is the size detection worldedit.allocate does
and can't be fixed or worked around in a simple way.
2019-09-09 01:07:17 +02:00
sfan5
0919f7cab3 Clean up command code for //stack, //stack2 2019-09-08 22:14:07 +02:00
sfan5
0edcd1a59d Fix crash on loading invalid schematic (fixes #160) 2019-09-06 17:56:11 +02:00
sfan5
f589c988b1 Handle invalid //rotate usage gracefully, fixes #150 2019-07-17 02:35:57 +02:00
sfan5
b8453a0e0b Remove deprecated depends.txt, add descriptions to mod.conf 2019-07-17 02:15:04 +02:00
sfan5
0a16f11d93 Replace more deprecated functions 2019-07-17 02:06:29 +02:00
Panquesito7
3ffecdd9c4 Replace deprecated functions with newer ones
These commits create compatibility with MT/MTG 5.0.0+.
However, these commits may/will break with the 0.4-series.
2019-07-17 01:23:40 +02:00
sfan5
4f2c7b18cc Fix //allocate with 0 nodes 2019-07-17 01:20:40 +02:00
sfan5
f242f2f722
Change description for //about, fix #170 2018-12-08 21:52:36 +01:00
sfan5
b2b2b9364d Warn about invalid //stretch usage 2018-11-15 20:49:19 +01:00
Starbeamrainbowlabs
b37605943b //mix: Add node weighting support 2018-10-29 00:36:33 +01:00
beyondlimits
f7256633c0 Wand: select node under or above depending on pressed sneak key. 2018-08-06 17:43:08 +02:00
sfan5
12270dc094 Correct spelling of Minetest 2017-11-07 14:20:50 +01:00
sfan5
415000e797 Fix a few assignments to undeclared globals 2017-11-07 14:19:57 +01:00
sfan5
7b1deb1b61 Add configurable brush item
texture was supposed to be a brush, i suck at this :(
2017-09-17 23:47:29 +02:00
sfan5
4605596215 Fix assignment to undeclared global "sign" @ worldedit_commands/init.lua:791 2017-09-12 14:58:26 +02:00
sfan5
283f47f10d Fix invalid node error message of //set and //mix 2017-09-12 14:56:01 +02:00
Wuzzy
3c61759bae Allow to bulk-set param2 of regions (#144) 2017-09-05 14:40:46 +02:00
sfan5
2cb3fcde66 Improve node name normalization 2017-08-31 20:38:38 +02:00
sfan5
870873ad15 Add //hollowcube and //cube
closes #143
2017-08-31 19:08:10 +02:00
Kyle
bf8e2a8233 Dual-based cylinder 2017-08-31 16:25:22 +02:00
shivajiva101
acc9188828 Add logging for //lua and //luatransform 2017-05-21 17:31:59 +02:00
sfan5
ea465f8fe4 Remove useless privilege checks
This is covered by the privs = {...},
2017-05-13 11:51:36 +02:00
sfan5
56f77a2f27 Remove unused toolcaps of the wand tool 2017-03-11 12:50:27 +01:00
MT-Modder
6e7b9a60be Update wand definition (#129)
Fixes "maxwear" deprecated warning
2017-02-11 00:04:04 +01:00
sfan5
bcac45a476 Fix "safe region" functionality errornously rejecting pos1-only commands (e.g. //sphere) 2017-01-31 19:52:54 +01:00
sfan5
426f3b949f Show light level a node receives with //inspect, fixes #128 2017-01-26 22:27:30 +01:00
sfan5
78e4ba828e Show light level with //inspect 2017-01-03 17:11:38 +01:00
sfan5
3a7fb5bf1e Add //help command (fixes #123) 2017-01-01 22:27:22 +01:00
sfan5
aa0e46d4e2 Handle failure of minetest.add_entity()
(see minetest/minetest#4923)
2016-12-21 14:26:24 +01:00
sfan5
83288c969e Don't mark or load areas into memory when they are over a certain size, fixes #97 2016-12-10 22:02:40 +01:00
sfan5
f9311b2b15 Move wand.lua to worldedit_commands 2016-12-10 21:54:51 +01:00
sfan5
6e2e2385e9 Merge remote-tracking branch 'tmp/hollowpyramid' 2016-10-13 17:51:01 +02:00
sfan5
d040d324e8 Fix //spiral requiring a selected region despite using only pos1 2016-10-12 19:45:38 +02:00
sfan5
df6b54d2f5 Fix blowing up TNT near worldedit markers 2016-10-12 19:38:41 +02:00
sfan5
5abe1cee3d Fix exiting mtschemprob entry dialog with ESC 2016-08-05 16:41:37 +02:00
sfan5
5afea424ba Move cuboidapi.lua to correct place 2016-07-04 19:57:48 +02:00
sfan5
2aed498849 Add completion chat message to //expand and //contract 2016-07-04 19:53:12 +02:00
sfan5
0b68b2aec6 Fix //shift with absolute axis (x/y/z) 2016-07-04 19:51:28 +02:00
Daniel Sosa
e18525d8c9 Modify outset and inset to accept both hv and vh combinations. Update documentation accordingly. 2016-07-03 21:44:02 -05:00
Daniel Sosa
48f3f59fc3 Implement some safety mechanisms 2016-07-03 21:44:02 -05:00
Daniel Sosa
f8f1f3b9cc Reimplement /expand and /contract to conform to WE standards 2016-07-03 21:44:02 -05:00
Daniel Sosa
d5e004be67 Fix /outset and /inset to conform to WE standards 2016-07-03 21:44:02 -05:00
Daniel Sosa
fad021d0ba Remove some debug code 2016-07-03 21:44:02 -05:00
Daniel Sosa
f1fe0c6bba Fix /shift command to conform to worldedit command standard 2016-07-03 21:44:02 -05:00
Daniel Sosa
40cee99700 Fix a crash that happened when trying to shift the cuboid using relative direction while looking straight up or down 2016-07-03 21:44:02 -05:00
Daniel Sosa
04d20de4cd Fix several typos 2016-07-03 21:44:02 -05:00
Daniel Sosa
859c6bd12a Implement /expand and /contract 2016-07-03 21:44:02 -05:00
Daniel Sosa
240380ff16 Implement /inset and /shift 2016-07-03 21:44:02 -05:00
Daniel Sosa
8d213d32a0 refactor code for mantainability and reusability. Start of chat command refactor. Implement /outset. 2016-07-03 21:44:02 -05:00
Daniel Sosa
ae29a9f064 Reimplement inset/outset to make use of new marker functions 2016-07-03 21:44:02 -05:00
Daniel Sosa
6cf8b92434 Reimplement /shift to make use of new marker functions 2016-07-03 21:44:02 -05:00
Daniel Sosa
0b97a7c740 Finish /expand implementation. Add /contract command. 2016-07-03 21:44:02 -05:00
Daniel Sosa
900b2f25aa Fix faulty regex in expand. Add relative direction decoding. 2016-07-03 21:44:02 -05:00
Daniel Sosa
f49663902c Major progress and simplification in /expand function 2016-07-03 21:44:02 -05:00
Daniel Sosa
d475682d8f Add common functions to move and update the markers 2016-07-03 21:44:02 -05:00
Daniel Sosa
9e087ff995 Add outset, inset, shift and initial draft of expand 2016-07-03 21:44:02 -05:00
sfan5
61ab240cea Add //drain 2016-03-23 22:09:55 +01:00
Sebastien Ponce
5f9efb1205 Added hollow pyramids 2015-09-13 22:08:04 +02:00
ShadowNinja
90d6b3d237 Allow more characters in file names 2015-06-01 17:08:43 -04:00
ShadowNinja
4bd5d56909 Localize mkdir helper 2015-06-01 16:53:03 -04:00
ShadowNinja
163dffccb3 Fix leaking {safe,check}_region 2015-05-16 19:52:48 -04:00
ShadowNinja
6b2fe397e6 Use minetest.mkdir when available 2015-05-16 19:46:33 -04:00
est31
bea38a116a Add //deleteblocks command 2015-02-20 22:30:34 +01:00
ShadowNinja
bb8456b711 Cleanup and fixup
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`.
2015-02-01 15:56:16 -05:00
Anthony Zhang
7f580611f5 Fix some warnings. 2014-12-29 18:16:36 -05:00
KodexKy
5b03c83f6b Fix stack2 param
Fix stack2 amount count
Fix stack2 sign recognition for y & z
2014-12-16 02:14:22 -04:30
sfan5
fb49cc4bcc Revert "Use "we-" prefix for commands"
This is currently being discussed, see #62.
This reverts commit 1024eace6f.
2014-10-25 07:53:20 +02:00
Anthony Zhang
eb88bf6ade Merge pull request #61 from ShadowNinja/cleanup-serialization
Clean up serialization
2014-10-24 22:03:31 -04:00
ShadowNinja
796aa3870d Clean up serialization
* Adds a header to serialized data (to make version checking sane).
  * Removes the duplicate deserialization for `worldedit.deserialize` and `worldedit.allocate`.
  * Optimizes `worldedit.deserialize` by only deserializing the data once.
  * Makes some fields optional.
  * Cleans up the comments and a little of the code style.
2014-10-24 16:45:10 -04:00
ShadowNinja
1024eace6f Use "we-" prefix for commands 2014-10-24 16:09:51 -04:00
Uberi
70c24c9501 Fix #57 (thanks Zeno-!). 2014-08-15 19:23:23 -04:00
Uberi
38fbc0a046 Fix //mix and improve normalize_nodename. 2014-07-18 16:09:57 -04:00
Uberi
4b178bf709 Rename the randomized //set to //mix, style update, document changes. 2014-07-18 15:51:09 -04:00
Uberi
175ac211ca Documentation for //stack2, code style fixes, add author section to README. 2014-07-06 19:42:02 -04:00
Cy
c22b556511 Improved stacking
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-30 16:14:14 -07:00
Cy
174416b010 Randomized set
Can /set node node2 node3 and it will randomly choose between those
three.
2014-06-30 16:13:44 -07:00
Uberi
4660927ca0 Fix safe region functionality (thanks ChaosWormz). 2014-04-19 23:33:20 -04:00
Uberi
2784a25561 Fix region checking (thanks PenguinDad). 2014-03-15 14:28:47 -04:00
Uberi
b29523db4d Implement full size checking for every possible command. 2014-03-12 16:11:00 -04:00
Uberi
0dddffa544 Add warning for really huge regions. 2014-03-10 17:58:15 -04:00
ShadowNinja
f8d3614a32 Make /lua and /luatransform administrator-only 2014-01-21 11:14:24 -05:00
Uberi
2e41f0076d Mark the region with an entity cube. 2013-12-24 14:07:42 -05:00
Uberi
674d6473e4 Improve node inspector to show player axis, replace //scale with //stretch, which supports per-axis stretching (full backwards compatibility retained), and secure schematic file loading functions. 2013-12-20 18:41:13 -05:00
Uberi
3767ea84d2 Include WorldEdit GUI in the documentation, improve privilege handling, simplify main dialog. 2013-12-18 15:56:50 -05:00
Uberi
6c03ab9c4a Refine GUI. 2013-12-12 15:34:05 -05:00
Uberi
ac7430e02f Version information is now available via the API. 2013-12-10 01:47:32 -05:00
Uberi
203c3da2af Add //about. 2013-08-28 20:28:49 -04:00
Anthony Zhang
8bd5db51b2 Final changes and version number bump. 2013-08-01 23:53:38 -04:00
Anthony Zhang
b0bf52e9b6 Rewrite spirals from scratch and fix upside-down pyramids. Use voxelmanip for markers to ensure area is emerged. 2013-07-31 22:15:08 -04:00
Anthony Zhang
3c51ec8c4a //pyramid works along any axis and backwards. Working //clearobjects and //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-31 00:02:37 -04:00
Anthony Zhang
49b683f27f Support negative values to make upside-down domes and pyramids (slight changes to worldedit.pyramid interface for coming changes). Add experimental //clearobjects, make node inspector work per-player. 2013-07-29 12:43:24 -04:00
Anthony Zhang
c1f3cfc1e4 Fix bugs in visualization API and make it ore robust. Fix bugs in //fixedpos, //suppress, and //highlight. 2013-07-28 18:15:46 -04:00
Anthony Zhang
7e1be63344 Add //fixedpos command and document it. 2013-07-28 17:07:47 -04:00
Anthony Zhang
faa4a7b065 More speedups for //hollowsphere, //sphere, //hollowdome, //dome, //cylinder, better module loader, fix message in //volume. 2013-07-27 21:34:42 -04:00
Anthony Zhang
0fddd17f23 Add the node inspector, a tool for finding information about nodes. Configurable via the //inspect command. 2013-07-21 17:16:29 -04:00
Anthony Zhang
48009b6c62 Support aliases in node name resolution. For example, //set mapgen_dirt. Technique outlined by kharl in IRC. 2013-06-24 17:13:10 -04:00
Anthony Zhang
58970e7fab Clarify the documentation regarding the the positioning of WorldEdit primitives relative to position 1. 2013-06-22 23:05:34 -04:00
Sfan5
a192d51a58 Add initial support for Minetest schematic API
Thanks to kwolekr for the code
2013-06-22 08:25:59 +02:00