Commit Graph

378 Commits

Author SHA1 Message Date
Starbeamrainbowlabs
0d7922d747
typo 2022-05-16 00:29:50 +01:00
Starbeamrainbowlabs
03fb033b70
//dome+: add option to make the resulting dome hollow inside 2022-05-15 15:38:50 +01:00
Starbeamrainbowlabs
04e971e12d
Add //dome+
Improvements oveer //dome:

 - Allow customising the direction it points in
 - Allow multiple pointing directions at once to give the effect of 
creating multiple domes on top of each other in a single command (it's 
actually implemented as an implicit union, and doesn't actually call 
wea.dome more than once).
2022-05-15 15:27:43 +01:00
Starbeamrainbowlabs
a4237dcca5
depends.txt → mod.conf 2022-05-01 17:07:30 +01:00
Starbeamrainbowlabs
3d12345972
//smake: fix luacheck warnings 2022-01-03 13:28:43 +00:00
Starbeamrainbowlabs
4c7bb6a980
//sfactor: fix luacheck warnings; fix crash 2022-01-03 13:26:51 +00:00
Starbeamrainbowlabs
81773c8556
//forest: use local wea alias 2022-01-02 17:17:05 +00:00
Starbeamrainbowlabs
6a1fd707d4
//sculpt: fix crash when pos2 is not defined 2022-01-02 14:45:46 +00:00
Starbeamrainbowlabs
98bf0ef386
//maze: Fix seed when generating multiple mazes in the same second 2021-12-31 14:02:53 +00:00
Starbeamrainbowlabs
9df5ba6fe5
//sculpt, //sculptlist: fix naming of static brushes; prettify output 2021-12-31 01:43:53 +00:00
Starbeamrainbowlabs
ef2dbc1806
Reorder brushes
circle_soft1 is now the default brush, as it's awesome
2021-12-28 19:07:02 +00:00
Starbeamrainbowlabs
732010a8ee
//layers: comment debug logging 2021-12-28 18:37:54 +00:00
Starbeamrainbowlabs
db5d25d1de
//convolve: update matrix & kernel to use Vector3
A lot of the maths remains in the old style, but at least it doesn't 
take a zero-indexed table
2021-12-28 18:31:46 +00:00
Starbeamrainbowlabs
17cc91ba1c
//sculpt: implement circle brush 2021-12-28 17:45:20 +00:00
Starbeamrainbowlabs
a2a9108d36
//sculpt: fix a bunch of bugs
including, but certainly not limited to, wea.make_heightmap now returns 
a Vector3 instance for heightmap_size
2021-12-28 15:22:51 +00:00
Starbeamrainbowlabs
b0c3d34dd0
Implement apply function for VoxelManipulators 2021-12-28 02:17:26 +00:00
Starbeamrainbowlabs
75ffa81b7e
bonemeal: tidy up split_shell call 2021-12-28 01:46:12 +00:00
Starbeamrainbowlabs
462570f2eb
//bonemeal: bugfix argument parsing 2021-12-28 01:26:53 +00:00
Starbeamrainbowlabs
d657ce1abe
//sculptlist: fix bugs. It works! 2021-12-27 19:36:57 +00:00
Starbeamrainbowlabs
10c9d6f886
Start implementing a //sculpt command, but it's not finished or tested yet.
First up: test that our initial basic dynamic brushes work as intended 
with the //sculptlist [preview] command.

Also on the todo list: document it in the chat command reference!
2021-12-27 03:11:52 +00:00
Starbeamrainbowlabs
af0e54cfdf
//maze: update to use Vector3 2021-12-26 22:48:37 +00:00
Starbeamrainbowlabs
b962ace8a8
//maze, //maze3d: Fix crash if no arguments are specified 2021-12-26 22:45:37 +00:00
Starbeamrainbowlabs
14ba42fa4a
//move+ add commented otu alias 2021-11-13 12:49:21 +00:00
Starbeamrainbowlabs
607f2bfdea
//move+: bugfix 2021-11-13 12:41:00 +00:00
Starbeamrainbowlabs
8ec89c3e67
Implement //move+, but it isn't working right just yet. 2021-11-13 12:36:10 +00:00
Starbeamrainbowlabs
eaabf40301
Add commented out alias overrides
Eventually, worldedit *will* become an optional dependency. The
rationale for this is that WorldEditAdditions is outgrowing the core
WorldEdit API, and we want to add new features such as toggling
safe_region on and off with a chat command and other such goodies.

Merging the 2 mods is not something that has been discussed (due
mainly because I'm far too nervous to even ask the question in the
first place), but the 2 codebases are fundamentally different (and
for good reason, as WorldEditAdditions splits code over many different
files to improve maintainability and scalability) so this would
be a significant undertaking.

At no point however will WorldEditAdditions become incompatible
with WorldEdit itself. The 2 mods should happily co-exist with
one another (so long as you keep them both updated of course).
2021-11-11 02:54:44 +00:00
Starbeamrainbowlabs
acb1ef1a0a
//copy+: write docs 2021-11-11 02:36:37 +00:00
Starbeamrainbowlabs
d560583121
Make //copy+ a thing using the new wea.parse.axes 2021-11-11 02:20:37 +00:00
Starbeamrainbowlabs
3f48832fff
Merge branch 'main' into VorTechnix 2021-11-07 14:31:01 +00:00
Starbeamrainbowlabs
ea8a91568e
//spiral2: fix crash in parser 2021-10-31 19:48:51 +00:00
Starbeamrainbowlabs
f5133d287b
Default to square spirals 2021-10-31 17:11:24 +00:00
Starbeamrainbowlabs
e610eb7a92
//spiral2: fix bugs 2021-10-31 16:42:12 +00:00
Starbeamrainbowlabs
dae59b63db
//walls: Prevent crash if not parameters are specified by defaulting to dirt as the replace_node 2021-10-31 16:41:52 +00:00
Starbeamrainbowlabs
d3a8efb9b8
Add //spiral2, write glue for square spirals
Next up: circular spirals!
2021-10-31 15:11:01 +00:00
Starbeamrainbowlabs
5fca3e4322
Fix bonemeal mod detection to look for the global bonemeal, not whether the bonemeal mod name has been loaded 2021-10-25 15:18:03 +01:00
Starbeamrainbowlabs
2ae241aee5
Add //ellipsoid2 2021-10-14 01:50:27 +01:00
Starbeamrainbowlabs
653864be99
Start working on //copy, but it's not finished yet.
We need to merge @VorTechnix's branch in first to gain access to 
advanced axis parsing functions before we can complete it.

For this reason, the command registration for //copy is currently 
commented out.
2021-10-11 02:41:45 +01:00
VorTechnix
0352595e41 Merge branch 'main' into VorTechnix 2021-10-10 18:37:58 -07:00
Starbeamrainbowlabs
be3166624a
//replacemix: fix crash caused by invalid invocation 2021-09-18 12:16:03 +01:00
VorTechnix
bc0658b545 Update init.lua 2021-09-05 09:35:07 -07:00
VorTechnix
a5960983e7 Merge branch 'main' into VorTechnix 2021-09-05 09:34:54 -07:00
Starbeamrainbowlabs
2920f7081d
Add //noiseapply 2021-08-07 23:01:15 +01:00
Starbeamrainbowlabs
6cd367915d
//airapply: fix rogue args_parsed 2021-08-07 22:37:45 +01:00
Starbeamrainbowlabs
fcd4de3429
//airapply: fix nodes_needed 2021-08-07 22:35:32 +01:00
Starbeamrainbowlabs
10a649e597
//airapply: error handling 2021-08-07 21:16:17 +01:00
Starbeamrainbowlabs
e1b1efb7ed
//spop: fix wording 2021-08-07 17:50:28 +01:00
Starbeamrainbowlabs
82c1ebd42c
//sstack: add human-readable approx volume to output 2021-08-07 17:44:26 +01:00
VorTechnix
cff58792bf Merge branch 'main' into VorTechnix 2021-08-05 10:43:00 -07:00
Starbeamrainbowlabs
f5f486f303
Bugfix //walls: correct nodes_needed calculations to take thickness into account 2021-08-05 02:07:20 +01:00
Starbeamrainbowlabs
f30ddbae3b
//walls: add optional thickness argument 2021-08-05 02:00:38 +01:00
Starbeamrainbowlabs
87f84e2482
//bonmeal: add optional node list constraint 2021-08-05 01:17:43 +01:00
Starbeamrainbowlabs
ef678e6a05
//layers: fix 2021-08-04 12:17:39 +01:00
Starbeamrainbowlabs
db830c6633
Implement slope constraint for //layers, but it isn't tested yet 2021-08-04 01:41:51 +01:00
VorTechnix
b20c8f9af1 Merge branch 'main' into VorTechnix 2021-08-01 07:03:31 -07:00
Starbeamrainbowlabs
45def53294
various commands: Upgrade to use wea.split_shell 2021-07-31 16:03:04 +01:00
VorTechnix
bd84979393 //sshift added 2021-07-30 14:02:46 -07:00
Starbeamrainbowlabs
655d9ebac9
//many, //multi, parse_reference: various luacheck fixes 2021-07-30 20:07:08 +01:00
Starbeamrainbowlabs
c14bb40f7e
//ellipsoidapply: undefined variable fixes 2021-07-30 20:03:31 +01:00
Starbeamrainbowlabs
23e08c5693
//multi: luacheck fix 2021-07-30 20:03:16 +01:00
Starbeamrainbowlabs
1c8d572bb8
//airapply: fix undefined variables 2021-07-30 20:01:38 +01:00
Starbeamrainbowlabs
47303acac1
//convolve: fix wea.convolve returns false, then return the associated error message 2021-07-30 20:00:41 +01:00
Starbeamrainbowlabs
9ccd62845f
//line: correctly return error in parsing function 2021-07-30 19:59:34 +01:00
Starbeamrainbowlabs
ee561cd6e4
//convolve: fix luacheck issue 2021-07-30 19:58:23 +01:00
Starbeamrainbowlabs
f7cda8c817
//subdivide: Fix referencing undefined global variable 2021-07-30 18:06:44 +01:00
Starbeamrainbowlabs
92451cf125
scale.lua: fix inconsistent whitespace 2021-07-30 18:05:45 +01:00
VorTechnix
b795f3b169 dissabled macros -- too buggy 2021-07-29 15:49:37 -07:00
VorTechnix
5757ef892d added //macro 2021-07-28 18:13:15 -07:00
VorTechnix
ebae1cd844 update to use player_vector 2021-07-28 18:08:22 -07:00
VorTechnix
0ecd6233ad Update for.lua 2021-07-28 18:06:26 -07:00
VorTechnix
43a59b68ff converted //for to step function 2021-07-28 13:35:52 -07:00
VorTechnix
57369099a7 Update basename.lua 2021-07-28 10:15:03 -07:00
VorTechnix
1436974e9b added //for 2021-07-27 19:56:45 -07:00
VorTechnix
f6ed5241b4 documentation for wireframe stuff 2021-07-23 14:12:20 -07:00
VorTechnix
24569c37d3 fixed single nodename crash 2021-07-23 13:13:47 -07:00
VorTechnix
8718e59206 added wcompass 2021-07-23 12:11:08 -07:00
VorTechnix
4b35142044 params to params_text 2021-07-22 13:29:29 -07:00
VorTechnix
d7d96ae263 //wbox added 2021-07-20 12:52:19 -07:00
VorTechnix
1a78e61c31 selector aliases to init 2021-07-19 08:55:28 -07:00
VorTechnix
f7323afe10 wireframe corner 2021-07-18 17:27:37 -07:00
VorTechnix
7f9c8796d0 meta link fix 2021-07-18 17:27:21 -07:00
VorTechnix
d94ebd7e54 separate init for meta commands 2021-07-18 13:12:45 -07:00
VorTechnix
5ea6ac18d2 wireframe blanks 2021-07-18 13:12:19 -07:00
Starbeamrainbowlabs
8b4ba8ccc1
airapply, ellipsoidapply: allow //multi to be a subcommand 2021-07-16 23:00:31 +01:00
Starbeamrainbowlabs
271032a6d7
Merge pull request #68 from sbrl/VorTechnix
Add measurement tools, the start of worldeditadditions_core, some bug fixes, and other goodness :D
2021-07-15 22:13:01 +01:00
VorTechnix
0ad0c63def
Fix typos in mtools
Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>
2021-07-15 13:44:56 -07:00
Starbeamrainbowlabs
57caddece7
airapply: fix header 2021-07-15 21:39:25 +01:00
VorTechnix
c57e8e6558 Merge branch 'main' into VorTechnix 2021-07-15 13:27:30 -07:00
VorTechnix
e3dd7ae428 fixed optional dependency on worleditdebug 2021-07-15 12:00:05 -07:00
Starbeamrainbowlabs
0b379c48cb
Implement //airapply
For #56, but the docs aren't written yet so we'll wait on closing it 
until I've written them.
2021-07-15 02:17:14 +01:00
VorTechnix
5ac0b8a04c Update mtrig.lua 2021-07-13 19:43:56 -07:00
VorTechnix
428ec12918 Update mtrig.lua 2021-07-13 09:59:53 -07:00
VorTechnix
9d2a0ca23c round mtrig values 2021-07-13 09:54:11 -07:00
VorTechnix
3f6b8f4d21 Fix and stabilize //mtrig 2021-07-13 09:09:40 -07:00
VorTechnix
f94906c854 force output syntax in msize 2021-07-13 09:08:56 -07:00
Starbeamrainbowlabs
46c2a02ade
//noise2d: add white algorithm; fix nasty bug in apply_2d 2021-07-12 02:45:32 +01:00
VorTechnix
d69dae5087 comment out worldedit debug stuff 2021-07-08 21:04:51 -07:00
VorTechnix
71460cb316 Added mtrig (vector3 broken) 2021-07-08 20:54:05 -07:00
Starbeamrainbowlabs
0b0595a1d3
Remove a whole bunch of stray debug print statements 2021-07-04 14:35:02 +01:00
Starbeamrainbowlabs
1d82013d86
//noise2d: add sin; sort out apply_mode as number 2021-07-04 13:21:13 +01:00
Starbeamrainbowlabs
b2eb76d280
//noise2d works!
...just.

Next up more engines and documentation
2021-07-03 22:53:16 +01:00
VorTechnix
e047372c22 Added //msize 2021-07-02 20:10:03 -07:00
VorTechnix
d479e167b9 //midpos implemented 2021-06-30 11:14:45 -07:00
VorTechnix
d65fe98de6 added mface 2021-06-28 21:15:47 -07:00
VorTechnix
71fb8da089 refactor s-tool init 2021-06-28 20:17:43 -07:00
Starbeamrainbowlabs
643790dc07
Merge pull request #64 from sbrl/selection-tools
sfactor and housekeeping
2021-06-28 01:08:10 +01:00
Starbeamrainbowlabs
db7b20d485
Refactor table functions into subtable of wea
Also, you can return a value from dofile()!!!!

This changes everything.
2021-06-28 00:56:29 +01:00
VorTechnix
29bb6a0063 Merge branch 'main' into selection-tools 2021-06-27 15:22:55 -07:00
VorTechnix
5d28179bab remove release block 2021-06-27 15:11:57 -07:00
VorTechnix
79211cf8cb collapse check 2021-06-27 15:11:00 -07:00
VorTechnix
df209a9f61 removed tests 2021-06-27 15:06:03 -07:00
VorTechnix
03093112bb added sfactor 2021-06-27 14:54:17 -07:00
VorTechnix
d176cb5419 revised comments 2021-06-27 14:53:33 -07:00
VorTechnix
0b23f0174b added separate init.lua for selectors 2021-06-27 14:39:36 -07:00
Starbeamrainbowlabs
25e6ff467c
//smake: describe operation & mode a bit better 2021-06-26 02:26:06 +01:00
VorTechnix
3f96fa708f fixed a bug (trailing comma) 2021-06-25 18:15:43 -07:00
VorTechnix
16b7748ac6 some refactoring and commenting in smake 2021-06-25 18:12:30 -07:00
VorTechnix
e592e6746f smake documentation 2021-06-25 13:30:40 -07:00
VorTechnix
88c70ee233 restored indentation in torus.lua 2021-06-25 11:58:44 -07:00
VorTechnix
70972f4084 //smake equal stable 2021-06-25 11:42:16 -07:00
VorTechnix
7c92c811e5 odd and even tested, stable 2021-06-22 17:32:24 -07:00
VorTechnix
99c0b26086 Update to smake, fixed odd 2021-06-22 09:41:05 -07:00
VorTechnix
efef201fde //smake added 2021-06-22 09:33:49 -07:00
VorTechnix
8bffeda5b5 Merge branch 'main' into vortechnix 2021-06-02 17:59:06 -07:00
VorTechnix
75c998f369 ellipsoid parse tweak 2021-05-31 08:43:42 -07:00
Starbeamrainbowlabs
9c4e23daa8
//floodfill: fix error handling 2021-05-31 00:38:01 +01:00
VorTechnix
956fc5370a Ellipsoid parsing overhaul with hollow option addition 2021-05-30 15:29:14 -07:00
VorTechnix
8884c938e0 Merge branch 'main' into vortechnix 2021-05-30 09:35:41 -07:00
Starbeamrainbowlabs
5083ea05ca
Start on #55, but because Minetest blocks our read attempts to Chat-Command-Reference (symlinks don't help), we can't continue this 2021-05-30 16:18:08 +01:00
Starbeamrainbowlabs
ccf27c8629
Bugfix new //erode river implementation
next stop: docs!
2021-05-30 01:42:06 +01:00
Starbeamrainbowlabs
ffdef17761
//multi: add { curly brace } syntax support for grouping blocks of commands 2021-05-29 01:17:24 +01:00
Starbeamrainbowlabs
e111decd3a
//multi: reduce code duplication 2021-05-28 21:10:23 +01:00
VorTechnix
912ecf09c2 Merge branch 'main' into vortechnix 2021-05-21 09:21:17 -07:00
VorTechnix
639c2061ef
Bugfix/torus: fix hollow implementation; improve clarity 2021-05-18 15:22:52 +01:00
VorTechnix
0a44992676
reference: add hollow example to torus 2021-05-18 14:56:19 +01:00
VorTechnix
184ca1a328 recovery 2021-05-17 21:12:46 -07:00
VorTechnix
d4b457f85d
Merge branch 'main' into vortechnix 2021-05-17 20:45:28 -07:00
VorTechnix
0ca9ed30bc Update torus.lua 2021-05-17 20:33:08 -07:00
VorTechnix
7defe829c3 Revert "Merge branch 'main' of https://github.com/sbrl/Minetest-WorldEditAdditions into main"
This reverts commit d9069b3cfa9cc45229d510b0080856df7b62a0dc, reversing
changes made to 35eeb918d0a7f3805b8bd58f2ccdeb19ecfe66d4.
2021-05-17 18:49:07 -07:00
VorTechnix
5b893901dc //torus update 2021-05-17 17:16:04 -07:00
Starbeamrainbowlabs
bf8c847dc1
torus: fix and improve the error messages 2021-05-15 02:15:14 +01:00
Starbeamrainbowlabs
3fbfc1fb15
torus: rework to add axes, but it's not finished yet 2021-05-15 02:00:40 +01:00
Starbeamrainbowlabs
4e544c555c
replacemix: add support for wea.parse.chance
TODO: use wea.parse.weighted_nodes

The problem here is that we have a target_node with an optional chance 
too, so a finite state machine is needed to parse it currently

Once we've extracted the target_node and it's optional chance though, we 
should be able to use wea.parse.weighted_nodes in theory
2021-05-11 22:29:15 +01:00
Starbeamrainbowlabs
ea05d5f559
bonemeal: use wea.parse.chance 2021-05-11 22:20:29 +01:00
Starbeamrainbowlabs
8877e356f0
refactor: refactor utils/strings.lua into multiple files 2021-03-20 01:48:56 +00:00
VorTechnix
866748a5c3 dir function rename 2021-03-19 16:25:26 -07:00
VorTechnix
d4edeaeff7 renamed translation function 2021-03-18 09:37:53 -07:00
VorTechnix
00b9a1f517 srel stable? 2021-03-17 11:36:12 -07:00
VorTechnix
20a879a7af scentre and some sorting 2021-03-15 20:51:23 -07:00
VorTechnix
0b55863d55
scloud.lua second typo fix
Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>
2021-03-12 19:26:38 -08:00
VorTechnix
5ffa67b7ac refactor func names, move punchnode function 2021-03-12 18:01:17 -08:00