teknomunk
18e5dd4088
Add compatibility shim for core.bulk_swap_node() ( #5093 )
...
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/5093
Reviewed-by: kno10 <kno10@noreply.git.minetest.land>
Co-authored-by: teknomunk <teknomunk@protonmail.com>
Co-committed-by: teknomunk <teknomunk@protonmail.com>
2025-04-06 12:23:41 +02:00
teknomunk
83fedc527c
Fix itemframe item duplication ( #5086 )
...
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/5086
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: teknomunk <teknomunk@protonmail.com>
Co-committed-by: teknomunk <teknomunk@protonmail.com>
2025-04-04 22:53:26 +02:00
kno10
f4bc162af5
Lua no-JIT compatibility ( #5037 )
...
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/5037
Reviewed-by: teknomunk <teknomunk@protonmail.com>
Co-authored-by: kno10 <erich.schubert@gmail.com>
Co-committed-by: kno10 <erich.schubert@gmail.com>
2025-03-22 11:27:28 +01:00
Mikita Wiśniewski
951e90bd8f
mcl_util: Improve set_bone_position
functionality
...
* Bring back the check for vector equality, but adjust it to not just
round to the nearest integer values (which doesn't make a lot of sense
for angles defined in radians), but to compare the distance between
vectors against an epsilon, defining the precision.
* Make interpolation actually work.
* Simplify the pre-5.9 code too, making it more readable.
* Annotate the whole shebang with comments for the future of the human
race to read.
2025-02-27 15:04:30 +01:00
Lars Mueller
3bab7a2287
Work around wrong character bone rotations on Luanti 5.11+
2025-02-27 15:04:30 +01:00
kno10
9472017fdb
improve UUID functionality
2025-02-09 16:41:22 +01:00
kno10
2d61cc1178
add highly efficient hashing functions
2025-02-09 16:41:22 +01:00
Mikita Wiśniewski
289816a7b4
Add a setting to control Christmas decorations ( #4809 )
...
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4809
Reviewed-by: kno10 <kno10@noreply.git.minetest.land>
Co-authored-by: Mikita Wiśniewski <rudzik8@protonmail.com>
Co-committed-by: Mikita Wiśniewski <rudzik8@protonmail.com>
2025-02-09 16:30:22 +01:00
teknomunk
3a54c67c4c
Remove unused table.find(), add comment on fallthru, fix typo in log message, switch to using mcl_log for two log messages, set guardians to no biomes (structures only)
2025-01-20 18:37:09 +01:00
teknomunk
b568a5cc49
Fix rebase missing moving a function to new mcl_util/table.lua
2025-01-20 18:37:09 +01:00
teknomunk
ee386080eb
Optimize table.intersect
2025-01-20 18:37:09 +01:00
teknomunk
e4b5673642
Resolve some review comments
2025-01-20 18:37:09 +01:00
teknomunk
bd7c926aaf
Move table.* functions to separate file in mcl_utils, add table.find() and table.intersect()
2025-01-20 18:37:09 +01:00
teknomunk
ab7d0544da
Add TODO for future planned work
2025-01-03 20:07:12 +01:00
teknomunk
d7bb017dca
Fix sweetberry bonemealing crash, fix sweetberry growth, fix double bonemeal usage
2025-01-03 20:07:12 +01:00
teknomunk
3cc8a8474d
Fix rebase duplicating code
2024-12-31 02:36:18 +01:00
teknomunk
00665063da
Address additional review comments
2024-12-31 02:36:18 +01:00
teknomunk
16caed401c
Rewrite mcl_util.hopper_pull in terms of mcl_util.hopper_pull_to_inventory
2024-12-31 02:36:18 +01:00
teknomunk
fa29e3410b
Fix several undefined global warnings, fix cart movement when over maximum speed, fix cart reattachment to sloped track
2024-12-31 02:36:18 +01:00
teknomunk
3bbd5a20fa
More fixes for minecart-hopper movement
2024-12-31 02:36:18 +01:00
teknomunk
e1ff394204
Create mcl_util.metadata_timer, fix crashes, add checks to prevent hoppers from pulling from carts that are not in the square above it
2024-12-31 02:36:18 +01:00
teknomunk
1eda16a1a1
Tune respawn distance limit
2024-12-31 02:36:18 +01:00
teknomunk
135eea4de4
Fix crashes
2024-12-31 02:36:18 +01:00
teknomunk
7bd95257bd
Give furnace minecart minimum velocity when lit, add train separation code, update logging code, add sequence number to entity staticdata to allow respawn/despawn when carts move when the entity is unloaded
2024-12-31 02:36:18 +01:00
teknomunk
09f044245e
Add utilities to convert between an ObjectRef, it's active object id and a 128bit uuid, move minecart data from entity staticdata to mod storage to eventually allow updating carts when out of range of players and also track what carts are alive, implement on-rail cart collisions
2024-12-31 02:36:18 +01:00
teknomunk
e7605b7abd
Make legacy rail update apply to all old rail types, add basic detached railcart physics with a stub to use mcl_physics when it gets merged
2024-12-31 02:36:18 +01:00
teknomunk
279733e711
Fix mcl_util.table_merge where a standard value overwrites a table, fix base definition usage, implement behavior difference when there is a solid block after a straight piece of track (this will eventually allow minecarts to fly off the end of the track)
2024-12-31 02:36:18 +01:00
teknomunk
40b62eea1d
Reorganize
2024-12-31 02:36:18 +01:00
teknomunk
718938b0fe
Fix call signature of mcl_util.hopper_pull_to_inventory, move cart-specific behaviors to _mcl_minecarts_on_step handlers, fix typo, change distance used in rail reattach code, move cart_id generation
2024-12-31 02:36:18 +01:00
teknomunk
121550a635
Hopper minecarts pull from containers above rail
2024-12-31 02:36:18 +01:00
kno10
631162e24c
Switch from deg to rad.
2024-12-27 10:48:00 +07:00
kno10
dd165ec0e9
Update to set_bone_override
2024-12-27 10:48:00 +07:00
teknomunk
bb934d09ee
Break long lines, add space between functions in vl_projectile/init.lua
2024-12-25 11:52:24 +01:00
teknomunk
0d8f7515c6
Update minetest->Luanti in affected documentation, update minetest. -> core. in affected code, factor out common subexpressions in mods/ITEMS/vl_projectile/init.lua
2024-12-25 11:52:24 +01:00
teknomunk
aa8cec9911
Implement mcl_util.remove_entity() and convert projectile code to use it
2024-12-25 11:52:24 +01:00
teknomunk
efa6e7d2d0
Move arrow self-collision grace logic to vl_projectile then apply to mob projectiles and splash and linger potions, allow entity luaentity to be passed to mcl_util.get_entity_id()
2024-12-25 11:52:24 +01:00
teknomunk
2d56deacf6
Replace _puncher with _owner, rework projectile code to make _owner a string, copy mcl_util.gen_uuid() from minecart branch, add mcl_util.get_entity_id(), fix crash
2024-12-25 11:52:24 +01:00
teknomunk
58042416c4
Add attribution with exact links for minetest code
2024-12-25 11:52:24 +01:00
teknomunk
b821f3d72f
Fix luacheck findings for this PR: remove unused variables, remove overwritten value, add missing dependencies, fix undefined variable usage
2024-12-25 11:52:24 +01:00
teknomunk
6829b0d2da
Remove unnecessary vectory copy
2024-12-25 11:52:24 +01:00
teknomunk
4e3e8aafc8
Address most of kno10's comments about mcl_utils/node.lua and a couple others, fix lingering potion sound
2024-12-25 11:52:24 +01:00
teknomunk
e120e267c2
Add empty line
2024-12-25 11:52:24 +01:00
teknomunk
276a277488
Update mcl_util.get_double_container_neighbor_pos() to use vector.offset
2024-12-25 11:52:24 +01:00
teknomunk
eeaa36e60b
Add in vl_projectile, add mcl_util.match_node_to_filter
2024-12-25 11:52:24 +01:00
teknomunk
7648dd58b8
Move node related functions to mods/CORE/mcl_util/nodes.lua
2024-12-25 11:52:24 +01:00
teknomunk
b582afeb1f
Update documentation for Minetest rename to Luanti ( #4706 )
...
This updates the VoxeLibre documentation by replacing "Minetest" with "Luanti" and updating links.
Done:
* Update "Minetest" in documentation and comments to "Luanti"
* Update links to forums, ContentDB and Luanti project web page
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4706
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: teknomunk <teknomunk@protonmail.com>
Co-committed-by: teknomunk <teknomunk@protonmail.com>
2024-11-28 20:55:48 +01:00
teknomunk
94d9e4c881
Address review comments
2024-11-09 20:30:35 -06:00
teknomunk
189a2c62ad
Address review comments on mcl_util.trace_nodes
2024-11-09 20:24:02 -06:00
teknomunk
66b5a369f1
Add mcl_util.trace_node(), rewrite bamboo growth code to fix bone meal growth
2024-11-09 20:24:02 -06:00
teknomunk
31a3788ce1
Address review comments
2024-09-16 13:32:06 +02:00