Commit graph

733 commits

Author SHA1 Message Date
Mikita Wiśniewski
9563e18b69 mcl_cozy: Check for walkability, not air below player
This fixes players being able to sit underwater and in other liquids, as
well as any other non-walkable nodes.
2025-03-13 16:18:22 +01:00
Mikita Wiśniewski
184046acbb mcl_cozy: Revert the hack; disable slab/stair override by default 2025-03-13 16:18:22 +01:00
Mikita Wiśniewski
02018323e5 mcl_cozy: Fix on_rightclick/on_place conflict for stairs/slabs
This is a *HACK* taking advantage of the weird way `mcl_stairs` calls
`on_rightclick` of the pointed node (without providing a `pointed_thing`
under the assumption that it won't be needed?).

BONUS: Don't fetch the node twice as it's part of the callback args.
2025-03-13 16:18:22 +01:00
Mikita Wiśniewski
87226c7bd4 mcl_cozy: Make the distance check more strict vertically
This fixes players being able to clip through roofs made out of slabs by
replacing the simple `vector.distance(a, b) > epsilon` check with a
custom function that is twice as strict on the Y axis as it is on X/Z.
2025-03-13 16:18:22 +01:00
Mikita Wiśniewski
2bfbeb31e5 mcl_cozy: Disallow sitting on double slabs 2025-03-13 16:18:22 +01:00
Mikita Wiśniewski
2b0503f84b mcl_cozy: Update Russian i18n 2025-03-07 20:03:25 +01:00
kno10
bf753346a1 mcl_cozy translation updates + German 2025-03-07 20:03:25 +01:00
Mikita Wiśniewski
4d2788e223 mcl_cozy: Code clean-up based on review comments 2025-03-07 20:03:25 +01:00
Mikita Wiśniewski
0f65037482 mcl_cozy: Restore backwards compatibility
Some mods might expect `mcl_cozy.pos` to be an existing table, the
functionality of which was changed to be included in `mcl_cozy.players`.
2025-03-07 20:03:25 +01:00
Mikita Wiśniewski
d463bba91f mcl_cozy: Don't mount with no space above, fix action switching 2025-03-07 20:03:25 +01:00
Mikita Wiśniewski
33000e5f8c Integrate mcl_cozy: add the ability to sit and lay on blocks 2025-03-07 20:03:25 +01:00
Mikita Wiśniewski
3f898917cd Fix swimming and flying player rotations (5.11+) ()
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4969
Reviewed-by: teknomunk <teknomunk@protonmail.com>
Co-authored-by: Mikita Wiśniewski <rudzik8@protonmail.com>
Co-committed-by: Mikita Wiśniewski <rudzik8@protonmail.com>
2025-03-04 20:56:13 +01:00
Mikita Wiśniewski
ef0d38e530 Fix "hud_elem_type" deprecation warning spam (5.9+) ()
`mcl_vars.hud_type_field` is introduced to determine the right HUD element type field to use. All mods adding HUDs, together with their `mod.conf` files, are changed accordingly to silence the warnings.

Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4965
Reviewed-by: teknomunk <teknomunk@protonmail.com>
Co-authored-by: Mikita Wiśniewski <rudzik8@protonmail.com>
Co-committed-by: Mikita Wiśniewski <rudzik8@protonmail.com>
2025-03-04 20:50:10 +01:00
Lars Mueller
3bab7a2287 Work around wrong character bone rotations on Luanti 5.11+ 2025-02-27 15:04:30 +01:00
potatoalienof13
7327f866ba Sprint criticals now do extra damage, if the conditions are met. 2025-02-27 10:38:55 +01:00
potatoalienof13
3a415b834f Fixes criticals knockbacks. 2025-02-27 10:38:55 +01:00
kno10
56a3b08d47 Remove complex spawn position search code ()
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4816
Reviewed-by: Mikita Wiśniewski <rudzik8@protonmail.com>
Co-authored-by: kno10 <erich.schubert@gmail.com>
Co-committed-by: kno10 <erich.schubert@gmail.com>
2025-02-24 23:25:33 +01:00
Mikita Wiśniewski
12ad6f586d Update erle's name in code and docs ()
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4844
Reviewed-by: kno10 <kno10@noreply.git.minetest.land>
Reviewed-by: teknomunk <teknomunk@protonmail.com>
Reviewed-by: the-real-herowl <the-real-herowl@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:49:58 +01:00
Wuzzy
4eafc06531 playerphysics: Version 1.1.0 2025-01-20 18:41:22 +01:00
kno10
288bdf18b4 Always use standing animation in player formspec ()
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4686
Reviewed-by: Mikita Wiśniewski <rudzik8@protonmail.com>
Co-authored-by: kno10 <kno10@noreply.git.minetest.land>
Co-committed-by: kno10 <kno10@noreply.git.minetest.land>
2025-01-07 16:14:02 +01:00
Mikita Wiśniewski
0385abc277 Fix undeclared (global) variable usage ()
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4803
Reviewed-by: teknomunk <teknomunk@protonmail.com>
Co-authored-by: Mikita Wiśniewski <rudzik8@protonmail.com>
Co-committed-by: Mikita Wiśniewski <rudzik8@protonmail.com>
2025-01-05 15:57:02 +01:00
kno10
25a832c4b6 rerun mod_translation_updater 2025-01-03 11:56:04 +01:00
ninjum
b407cc9628 Squashed: Galician translation 2025-01-03 11:56:04 +01:00
the-real-herowl
bd7524d712 Actually working spear aiming animation 2024-12-31 03:49:01 +01:00
the-real-herowl
9cd807d5c5 Basic 3rd person spear aim anim 2024-12-31 03:49:01 +01:00
teknomunk
22f5369db9 Add persistent player-specific metadata into mcl_playerinfo, simple cart reattachment (only exists if the luaentity for the cart exists when the player logs in) 2024-12-31 02:36:18 +01:00
teknomunk
265a25d6ae Make trains containing a player in a minecart function, minor cleanup in mcl_playerinfo 2024-12-31 02:36:18 +01:00
the-real-herowl
bf77996b57 Added spears 2024-12-29 08:09:33 +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
kno10
c73baa3886 German translation updates 2024-12-18 18:42:25 +01:00
kno10
306f10b3b8 Update translations to follow string changes 2024-12-16 01:16:32 +01:00
kno10
62ac7fd4b9 fix some typos 2024-12-16 01:16:32 +01:00
kno10
3ecda2e70d auto-update translation files 2024-12-16 01:16:32 +01:00
kno10
f9d331e0de Update German translations 2024-12-16 01:16:32 +01:00
ethan
4db34098d9 Contributed simplified Chinese translations 2024-12-16 01:16:32 +01:00
Bloodaxe
7856f97f8e Added all my localization files for Norwegian Bokmål 2024-12-16 01:16:32 +01:00
AFCMS
8e908870f9
Use get instead of get_string 2024-12-03 15:04:03 +01:00
AFCMS
bd1e50b007
Save default value 2024-12-03 14:57:31 +01:00
AFCMS
1e7f065134
Fix mcl_gamemode.get_gamemode 2024-12-03 14:52:26 +01:00
teknomunk
b582afeb1f Update documentation for Minetest rename to Luanti ()
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
seventeenthShulker
e2bcd129c1 Use soul_block group for soul speed bonus 2024-09-18 10:06:03 +02:00
seventeenthShulker
79e8452f62 Soul speed works on soul soil too
(needs localization)
2024-09-18 10:06:03 +02:00
Mikita Wiśniewski
178cb9340d Clean-up set_string(..., nil) usage (fixes ) ()
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4641
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>
2024-09-16 12:12:55 +02:00
kno10
d85febdb15 Cactus damage cleanup, drop redundant conditions ()
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4625
Reviewed-by: Mikita Wiśniewski <rudzik8@protonmail.com>
Co-authored-by: kno10 <erich.schubert@gmail.com>
Co-committed-by: kno10 <erich.schubert@gmail.com>
2024-09-08 05:21:42 +02:00
kno10
ebee85db7e Fix incorrect usages of math.random ()
random() does not support float arguments

Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4621
Reviewed-by: Mikita Wiśniewski <rudzik8@protonmail.com>
Co-authored-by: kno10 <erich.schubert@gmail.com>
Co-committed-by: kno10 <erich.schubert@gmail.com>
2024-09-07 14:58:12 +02:00
teknomunk
dc074ff555 Remove debug logging 2024-08-19 03:02:02 +02:00
teknomunk
0e1a2cbc1e Correct conditions for water-air transition forced skycolor update 2024-08-19 03:02:02 +02:00
WillConker
406e0e8169 Made soul speed and depth strider speed boosts additive instead of exclusive ()
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4422
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: WillConker <waj01@joanes.net>
Co-committed-by: WillConker <waj01@joanes.net>
2024-08-18 06:25:04 +02:00
the-real-herowl
a4eaaad1a9 Remove unused function in mcl_hunger 2024-05-22 21:03:43 +02:00