Commit Graph

1091 Commits

Author SHA1 Message Date
Starbeamrainbowlabs 42fb6571da
Vector3.rotate_3d(): write tests 2023-01-20 23:43:20 +00:00
Starbeamrainbowlabs 9c66288827
Vector3: add rotate3d.
Thanks to GitHub Copilot for the implementation, it just needed
improving around the edges to make it work perfectly.
For the record, copilot generated it in JS, and then
I manually ported it to Lua.
If the Copilot code looks sufficiently similar to your own source,
get in touch and I will give you full credit.
2023-01-20 23:43:07 +00:00
Starbeamrainbowlabs cbd2ae7df8
copilot rotate: reapply origin offset 2023-01-20 23:41:31 +00:00
Starbeamrainbowlabs 3e123ddc56
comment 2023-01-19 23:30:43 +00:00
Starbeamrainbowlabs 8372a12f48
initial WIP 3d point rotation algorithm
Thanks to GitHub Copilot for the implementation!
Just need to fully check it actually works, and then we can port it to Lua and Vector3.
2023-01-17 02:13:15 +00:00
Starbeamrainbowlabs 53609ac83e
vector3: .volume() is already implemented
remove todo comment
2023-01-17 00:08:13 +00:00
Starbeamrainbowlabs 2e275e3993
docs: initial pass at a dark theme
some of the colours still suck though
2023-01-11 03:26:49 +00:00
Starbeamrainbowlabs cfc1fe3639
huh, weird. evidently we need all the checks ever
ref #88
2023-01-11 02:32:01 +00:00
Starbeamrainbowlabs 97bb896829
fixup, ref #88 2023-01-11 02:25:41 +00:00
Starbeamrainbowlabs 58dd3ea875
Bugfix new marker system: properly check that the lua entity is a thing
Missing ()
Might fix #88, but needs testing.
2023-01-11 02:18:06 +00:00
Starbeamrainbowlabs 554bc86b3d
reference: tweak //spline 2022-10-23 02:26:05 +01:00
Starbeamrainbowlabs 902d03ca0b
Update changelog 2022-10-23 00:54:29 +01:00
Starbeamrainbowlabs 410841562a
img2brush: allow customising the channel to pull from 2022-09-26 03:27:58 +01:00
Starbeamrainbowlabs dea51cb9a3
typos 2022-09-25 23:02:23 +01:00
Starbeamrainbowlabs 9f2bfb33c7
reference: add //spline 2022-09-25 23:02:18 +01:00
Starbeamrainbowlabs b493c0073a
//spline: add sample image 2022-09-25 22:57:49 +01:00
Starbeamrainbowlabs bc0276875d
//spline: update params description 2022-09-25 22:55:50 +01:00
Starbeamrainbowlabs c319be5840
fix //spline :D 2022-09-25 17:07:37 +01:00
Starbeamrainbowlabs fe30fd5c51
add comment 2022-09-25 16:16:03 +01:00
Starbeamrainbowlabs 2748f4cdfa
//spline: plot chaikin curve 2022-09-25 15:30:16 +01:00
Starbeamrainbowlabs 9a4b4beb76
EventEmitter: add debug printing (disabled by default) 2022-09-25 15:03:16 +01:00
Starbeamrainbowlabs 9806828760
core pos: fix worldedit compat 2022-09-25 15:02:48 +01:00
Starbeamrainbowlabs 888e4b0f78
saferegion: fix missing return 2022-09-25 14:39:57 +01:00
Starbeamrainbowlabs 5d9dee9523
pos: fix warning 2022-09-25 02:03:44 +01:00
Starbeamrainbowlabs 268e123221
run_command require_pos: also check WEA pos subsystem 2022-09-25 02:02:23 +01:00
Starbeamrainbowlabs 363acde496
core pos: make function names actually make sense 2022-09-25 01:59:59 +01:00
Starbeamrainbowlabs 7a14e8a590
comment all the debug prints 2022-09-25 01:57:41 +01:00
Starbeamrainbowlabs f998110303
core pos: Add (complicated) compat w/worldedit 2022-09-25 01:43:30 +01:00
Starbeamrainbowlabs 285572e16b
saferegion: allow nodes_needed to return string 2022-09-25 01:19:36 +01:00
Starbeamrainbowlabs 258a9c1cde
implement initial //spline, but it isn't finished yet 2022-09-25 01:18:40 +01:00
Starbeamrainbowlabs a768378dfd
core: add transparent WorldEdit compatibility to the position subsystem 2022-09-25 01:07:48 +01:00
Starbeamrainbowlabs c2d19105ed
get_pos_all → get_all 2022-09-24 23:50:45 +01:00
Starbeamrainbowlabs 3583de4731
wea_c.pos: add get_bounds
....though tbh, I think this should go elsewhere.
2022-09-24 23:48:36 +01:00
Starbeamrainbowlabs dfb24e679b
table_apply: write tests 2022-09-24 18:47:13 +01:00
Starbeamrainbowlabs da9f578e86
table_contains: write tests 2022-09-24 18:42:54 +01:00
Starbeamrainbowlabs 8f03c6473b
test makeset 2022-09-24 13:45:50 +01:00
Starbeamrainbowlabs bdaedf0e7a
fixup 2022-09-24 13:42:00 +01:00
Starbeamrainbowlabs 38a72468d9
utils: rename folder tables → table to match API 2022-09-24 13:41:44 +01:00
Starbeamrainbowlabs bc5dc6b2b4
write tests for parse.map 2022-09-24 03:15:44 +01:00
Starbeamrainbowlabs c9fd68fac3
fixup 2022-09-24 02:54:36 +01:00
Starbeamrainbowlabs 84226a9909
write tests for parse.chance+seed 2022-09-24 02:51:56 +01:00
Starbeamrainbowlabs 2473c1ce41
Implement Vector3.volume () 2022-09-24 02:33:10 +01:00
Starbeamrainbowlabs 6357d590d9
Merge branch 'main' of github.com:sbrl/Minetest-WorldEditAdditions 2022-09-20 20:03:42 +01:00
Starbeamrainbowlabs 440cdcc504
Fix luacheck
The problem was that we moved bit.lua from worldeditadditions to worldeditadditions_core, but failed to update .luacheckrc
2022-09-20 20:03:36 +01:00
VorTechnix 98a74c63dc fixed colour offset bug and refactored hex values 2022-09-20 08:59:49 -07:00
Starbeamrainbowlabs 7f2be74580
position markers: colourise numbers 2022-09-20 03:21:55 +01:00
Starbeamrainbowlabs 3fa6dbefcf
Update background of positional marker entities 2022-09-20 02:31:04 +01:00
Starbeamrainbowlabs 1473074d4a
Reference: add multi-point selection wand 2022-09-20 02:17:28 +01:00
Starbeamrainbowlabs fd1e3fb20f
fix crash on punching new position marker 2022-09-20 02:17:11 +01:00
Starbeamrainbowlabs f7bd17131a
Update changelog 2022-09-20 01:20:40 +01:00