Commit graph

209 commits

Author SHA1 Message Date
1310dae884
Refactor: Split up terrain.lua, make subtable wea.terrain
This is just the start, if my plans work out.

The eventual aim here is to implement a generic Heightmap2D class, just 
like Vector3.

This will make interacting with heightmaps much easier.
2021-12-31 02:42:32 +00:00
dd8cd78d6b
wea.inspect: pull metatable names from item.__name
this is completely arbitrary, but will assist in discovering types of 
tables etc.
2021-12-31 01:38:24 +00:00
4597edcf1e
str_ends: write tests 2021-12-31 01:33:44 +00:00
08cff1c967
strings/polyfill/str_ends: actually export it correctly 2021-12-31 01:14:08 +00:00
f259f85771
Add io compatibility layer
....I can't believe that Lua doesn't have an inbuilt scandir 
equivalent?!
2021-12-31 00:57:17 +00:00
1e9a651537
stings/polyfill: add str_ends
....because seriously, Lua *really* should have this.
2021-12-31 00:55:46 +00:00
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
f1a433b5e3
split_shell: automatically trim whitespace; ignore args that consist solely of whitespace
Hence "//bonemeal       1     4     " now functions correctly
2021-12-28 01:27:39 +00:00
d657ce1abe
//sculptlist: fix bugs. It works! 2021-12-27 19:36:57 +00:00
c030acfd7e
Vector3: add new .clamp() function 2021-12-27 02:18:56 +00:00
f7a5e223d4
really fix #72 2021-12-26 22:40:00 +00:00
502595579e
Try fixing #72 2021-12-26 22:36:24 +00:00
d560583121
Make //copy+ a thing using the new wea.parse.axes 2021-11-11 02:20:37 +00:00
9729e82e35
parse_axes: support "true" as alias to activate mirrorring submode 2021-11-11 01:50:12 +00:00
94f675ddce
parse_axes: add mirroring function 2021-11-11 01:47:22 +00:00
41604d19ac
player.lua: tidy up comments 2021-11-11 01:33:08 +00:00
43ea6e34c1
fixup 2021-11-10 02:07:34 +00:00
e82440a096
Add deep copy table function 2021-11-10 02:07:13 +00:00
35970b31b3
Implement tests for parse_axes 2021-11-08 00:47:35 +00:00
4fb59a160f
parse_relative_axis_name: write tests 2021-11-08 00:16:51 +00:00
96c3ede365
parse_axes: bugfix, start writing tests 2021-11-07 18:04:18 +00:00
2babba9c55
first pass on writing an advanced axes parser, but it's untested 2021-11-07 17:14:11 +00:00
VorTechnix
46bd5d4fce Merge branch 'VorTechnix' of https://github.com/sbrl/Minetest-WorldEditAdditions into VorTechnix 2021-11-07 07:36:45 -08:00
VorTechnix
54268431b5 added missing quotation marks 2021-11-07 07:36:43 -08:00
3f48832fff
Merge branch 'main' into VorTechnix 2021-11-07 14:31:01 +00:00
9d7000baed
Add circular spirals :D 2021-10-31 16:59:52 +00:00
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
191e99f0b5 refactored table_tosting 2021-10-10 14:39:50 -07:00
VorTechnix
b72d36816e added to_boolean 2021-10-10 14:39:30 -07:00
VorTechnix
a5960983e7 Merge branch 'main' into VorTechnix 2021-09-05 09:34:54 -07:00
d1b0866af2
//floodfill: fix crash 2021-08-07 02:30:38 +01:00
VorTechnix
551f0c7e16 player_dir debugged (hopefully) 2021-08-05 20:38:59 -07:00
VorTechnix
cff58792bf Merge branch 'main' into VorTechnix 2021-08-05 10:43:00 -07:00
VorTechnix
4cf30a0e74 updated @return on sort 2021-08-05 10:41:35 -07:00
VorTechnix
533519d318 streamlined getsign 2021-08-05 10:40:36 -07:00
e9398862b9
wea.inspect: comment out debug 2021-08-05 15:58:14 +01:00
9bcf242443
Add worldeditadditions.inspect function 2021-08-05 15:55:30 +01:00
c48e9f2ab8
Vector3.min, Vector3.max: allow arguments to be numbers 2021-08-04 21:23:01 +01:00
7c7abf4509
Queue: document with comments 2021-08-04 21:11:47 +01:00
ef678e6a05
//layers: fix 2021-08-04 12:17:39 +01:00
db830c6633
Implement slope constraint for //layers, but it isn't tested yet 2021-08-04 01:41:51 +01:00
902d5ddc8b
wea.calculate_normals: update comment 2021-08-04 00:53:47 +01:00
1833e68ec5
terrain.lua: add wea.calculate_slope() 2021-08-04 00:51:16 +01:00
VorTechnix
b20c8f9af1 Merge branch 'main' into VorTechnix 2021-08-01 07:03:31 -07:00
a9b746986a
fixup 2021-07-31 16:08:01 +01:00
07c55dc740
split_shell: comment debug
also, in 45def53 we fixed a bug with quotes being left behind at the and 
of a string
2021-07-31 16:07:48 +01:00
45def53294
various commands: Upgrade to use wea.split_shell 2021-07-31 16:03:04 +01:00
8c76b3b760
Queue: fix accessing undefined variable result 2021-07-30 19:57:16 +01:00
f0e1111b7c
tokenise_commands: fix luacheck issue 2021-07-30 19:56:44 +01:00
0164a9b9eb
wea.parse.map: fix autoconverting to number / bool 2021-07-30 19:56:01 +01:00