Commit Graph

2667 Commits

Author SHA1 Message Date
kno10
1e9ee97a7d update locales 2025-03-07 20:57:37 +01:00
teknomunk
6fab15e8df Fix crash when hostile mobs are disabled ()
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4989
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-03-07 20:05:47 +01:00
Mikita Wiśniewski
45ebb11e5f Update squid's appearance 2025-03-06 16:55:45 +01:00
Mikita Wiśniewski
50273e642b Update spiders' appearances 2025-03-06 16:55:45 +01:00
Mikita Wiśniewski
7a0f56e203 Update chicken's appearance 2025-03-06 16:55:45 +01:00
teknomunk
be83392a05 Guard against invalid ObjectRefs in mcl_burning.get_touching_nodes(), compensate for corrupted boat staticdata 2025-03-06 15:19:28 +01:00
teknomunk
17db7c2d7e Force loaded cart data to have uuid the same as in the mod storage key 2025-03-06 15:19:28 +01:00
teknomunk
1247140faa Change scale to fix upside-down head 2025-03-04 20:58:52 +01:00
teknomunk
e471a29b2d Fix axolotl heads on 5.11.0 2025-03-04 20:58:52 +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
teknomunk
814068197b Add friction back in 2025-03-01 16:32:23 +01:00
Robert de Forest
1b60c7fae0 Fixes : add gravity to acceleration on sloped track
I noticed that at
[movement.lua:303](cfd214df76/mods/ENTITIES/mcl_minecarts/movement.lua (L303))
in calculate_acceleration, the check for applying gravity overrides the
acceleration instead of taking power (`node_dev._rail_acceleration`)
into account.

I changed this to adding the gravity to the acceleration calculated so
far and confirmed that it fixes the bug.
2025-03-01 16:32:23 +01:00
cora
204fddebd2 Fix occurences of old itemframes itemstring in code 2025-02-21 19:39:13 +01:00
teknomunk
dd0aa487f5 Change all water mobs to use mobs_mc.water_level instead of assuming water = 0 2025-02-10 20:04:44 +07:00
teknomunk
ed66fdcc35 Finish converting to new mcl_mobs:spawn_setup() API 2025-02-10 20:04:44 +07:00
teknomunk
84a7787aff Next batch of mobs 2025-02-10 20:04:44 +07:00
teknomunk
e1d567fb0f Convert more mobs to the new spawn_setup() API 2025-02-10 20:04:44 +07:00
teknomunk
c8d2e74cf5 Correct chance/interval swap 2025-02-10 20:04:44 +07:00
teknomunk
7bf1c958e4 Start converting mob spawn registrations to use mcl_mobs:spawn_setup() 2025-02-10 20:04:44 +07:00
Nicu
bed4734618 Increase volume of sheep grazing ()
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4910
Reviewed-by: kno10 <kno10@noreply.git.minetest.land>
Co-authored-by: Nicu <kneekoo@noreply.git.minetest.land>
Co-committed-by: Nicu <kneekoo@noreply.git.minetest.land>
2025-02-09 17:10:43 +01:00
Nicu
7f01e46fd5 Tweak head_bone_position to fix head placement for sheared sheep ()
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4909
Reviewed-by: kno10 <kno10@noreply.git.minetest.land>
Reviewed-by: Mikita Wiśniewski <rudzik8@protonmail.com>
Co-authored-by: Nicu <kneekoo@noreply.git.minetest.land>
Co-committed-by: Nicu <kneekoo@noreply.git.minetest.land>
2025-02-09 17:09:42 +01:00
teknomunk
15ed7895cd Fix crash in skyblock spawning ()
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4905
Reviewed-by: kno10 <kno10@noreply.git.minetest.land>
Co-authored-by: teknomunk <teknomunk@protonmail.com>
Co-committed-by: teknomunk <teknomunk@protonmail.com>
2025-02-09 16:59:22 +01:00
teknomunk
da7cf8a723 Don't display global mob cap reached unless logging setting has been enabled ()
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4901
Reviewed-by: kno10 <kno10@noreply.git.minetest.land>
Co-authored-by: teknomunk <teknomunk@protonmail.com>
Co-committed-by: teknomunk <teknomunk@protonmail.com>
2025-02-09 16:58:26 +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
kno10
60b01a4daa Remove unnecessary jumping on breeding ()
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4900
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-09 16:42:03 +01:00
kno10
df08ba7e82 use new hashing functions 2025-02-09 16:41:22 +01:00
kno10
9472017fdb improve UUID functionality 2025-02-09 16:41:22 +01:00
teknomunk
73b675448e Prevent minecarts from being placed above air nodes ()
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4888
Reviewed-by: kno10 <kno10@noreply.git.minetest.land>
Co-authored-by: teknomunk <teknomunk@protonmail.com>
Co-committed-by: teknomunk <teknomunk@protonmail.com>
2025-01-25 20:15:49 +01:00
SmokeyDope
22ff4d3694 Add some missing sounds for mobs ()
- Eating sound for Sheep (file already here)
- Damage sound for Sheep
  - mobs_mc_sheep_damage.ogg all taken from https://freesound.org/people/Breviceps/sounds/644830/ released under CC0
- More random baa sounds for Sheep
  - mobs_mc_sheep_random.1.ogg is taken from here https://freesound.org/people/michaelperfect/sounds/710298/ and is released under CC0
  - mobs_mc_sheep_random.2.ogg is taken from here https://freesound.org/people/satoristudios3/sounds/677221/ and is released under CC0
- Footsteps for Skeletons fixed
- Random Sounds for Skeletons fixed
- Sounds for Iron Golem
  - mobs_mc_iron_golem_clank_damage.1.ogg comes from https://freesound.org/people/F.M.Audio/sounds/616200/ CC-BY-4.0
  - mobs_mc_iron_golem_clank_damage.2.ogg comes from https://freesound.org/people/F.M.Audio/sounds/620435/ CC-BY-4.0
  - mobs_mc_iron_golem_clank_damage.3.ogg comes from https://freesound.org/people/F.M.Audio/sounds/620830/ CC-BY-4.0
  - mobs_mc_iron_golem_death.ogg taken from https://freesound.org/people/yottasounds/sounds/175180/ under cc-by-3.0
  - mobs_mc_iron_golem_random.1.ogg taken from https://freesound.org/people/LemmaEOF/sounds/538065/ under cc-by-4.0
  - mobs_mc_iron_golem_random.2.ogg taken from  https://freesound.org/people/newagesoup/sounds/337841/ released under CC0

Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4875
Reviewed-by: kno10 <kno10@noreply.git.minetest.land>
Co-authored-by: SmokeyDope <smokey@tilde.team>
Co-committed-by: SmokeyDope <smokey@tilde.team>
2025-01-25 20:13:13 +01:00
kno10
36f5abc4df Fix spawning ignoring mob cap ()
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4891
Reviewed-by: teknomunk <teknomunk@protonmail.com>
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-01-25 14:22:30 +01:00
teknomunk
feaf000b00 Turn powered rail conductor states into functions 2025-01-25 14:19:51 +01:00
kno10
9564b69e6a Unnecessary use of mcl_vars.get_node ()
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4781
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-01-24 22:37:07 +01:00
kno10
a0fe68a6f1 Tiny fix in door pathfinding ()
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4893
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: kno10 <erich.schubert@gmail.com>
Co-committed-by: kno10 <erich.schubert@gmail.com>
2025-01-24 22:32:42 +01:00
teknomunk
c72ff616ab Change hopper minecart delay to 0.25 seconds from 0.05 seconds 2025-01-20 18:42:40 +01:00
teknomunk
53e1546219 Fix crash when hopper minecart is off rails 2025-01-20 18:42:40 +01:00
teknomunk
e08505d24d Make hopper minecart pull items from containers when stopped 2025-01-20 18:42:40 +01:00
teknomunk
9474da5e75 Fix crash 2025-01-20 18:37:09 +01:00
teknomunk
e5279a2723 Rework fixed_timestep() to be more accurate and remove maximum spawn cycle time 2025-01-20 18:37:09 +01:00
teknomunk
ed5a08ba36 Rework build_state_for_position so that more cases will return early and avoid computations and a table allocation, replace find_spawning_position() with get_next_spawning_position(), add (commented out) notes for tracking which cases lead to mobs not spawning to help guide optimization 2025-01-20 18:37:09 +01:00
teknomunk
94da5fe813 Replace minetest. with core., fix percentage calculation 2025-01-20 18:37:09 +01:00
teknomunk
f59beb9961 Address review comments 2025-01-20 18:37:09 +01:00
teknomunk
60d6d252b1 Further optimizations: pairs() -> for i=, remove most mcl_log() calls, remove unused parameter in mob_cap_space() 2025-01-20 18:37:09 +01:00
teknomunk
85155f8cd5 Convert state hash to number from string, exclude core.add_entity() time from profiling 2025-01-20 18:37:09 +01:00
teknomunk
23c04a6735 Add per-spawn-attempt timing calculation 2025-01-20 18:37:09 +01:00
teknomunk
29717808cd Add built-in mob spawn profiling 2025-01-20 18:37:09 +01:00
teknomunk
8cabee0621 Localize minetest.get_node() 2025-01-20 18:37:09 +01:00
teknomunk
ce993654f3 Finish converting to use localized version of math.* functions 2025-01-20 18:37:09 +01:00
teknomunk
e37c8a9530 Fix rebase 2025-01-20 18:37:09 +01:00
teknomunk
8f0fdfe03a Move registered_entity[] check to spawn registration, use localized math.* functions, fix typo, add error messages to asserts in spawn registration 2025-01-20 18:37:09 +01:00
teknomunk
43321083f7 Remove redundant room check 2025-01-20 18:37:09 +01:00