Commit Graph

11567 Commits

Author SHA1 Message Date
teknomunk
c98e9b488f Rework gravity/rail acceleration so that gravity is only ignored goign uphill on rail that accelerates the cart 2025-01-25 20:57:54 +01:00
teknomunk
27e3062a8b Disable gravity when the rail applies an acceleration 2025-01-25 20:57:54 +01:00
teknomunk
73b675448e Prevent minecarts from being placed above air nodes (#4888)
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 (#4875)
- 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
SmokeyDope
373c6134fe Add placement and digging sounds to bamboo (#4874)
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4874
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:05:14 +01:00
kno10
fbb963f2f1 German grammar fix (#4898)
Trivial translation fix.

Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4898
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-25 20:04:04 +01:00
kno10
1a613a6fca add documentation 2025-01-25 14:28:24 +01:00
kno10
9aa35154d2 add jit parameter tuning and get_node_raw access 2025-01-25 14:28:24 +01:00
kno10
36f5abc4df Fix spawning ignoring mob cap (#4891)
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
teknomunk
b7538bb64d Fix mesecon.on_placenode to work with functions 2025-01-25 14:19:51 +01:00
teknomunk
15fbaedd9a Modify mesecons to allow functions in conductor.state, conductor.on and conductor.off 2025-01-25 14:19:51 +01:00
kno10
d297a90d3f Sort blocks and mobs by localized name in documentation (#4895)
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4895
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:38:08 +01:00
kno10
9564b69e6a Unnecessary use of mcl_vars.get_node (#4781)
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 (#4893)
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
SmokeyDope
94a0a0c008 Add placement sounds to scaffolding (#4872)
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4872
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: SmokeyDope <smokey@tilde.team>
Co-committed-by: SmokeyDope <smokey@tilde.team>
2025-01-20 19:06:49 +01:00
kno10
9d2e42165f snow should be supported_node (#4876)
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4876
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-20 18:51:52 +01:00
Elias Åström
5b7b2d8eb7 Adjust node sounds levels 2025-01-20 18:48:07 +01:00
Elias Åström
19c4e2526f Lower gain of glass breaking sound 2025-01-20 18:48:07 +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
74de26b3c8 Fix pulling partial stacks from double chests 2025-01-20 18:42:40 +01:00
Wuzzy
4eafc06531 playerphysics: Version 1.1.0 2025-01-20 18:41:22 +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
teknomunk
57f3ad4fd7 Change state serialization to use table.concat() with a persistent workspace table 2025-01-20 18:37:09 +01:00
teknomunk
9a34c124c1 Only create biomes_lookup if one wasn't provided in the definition 2025-01-20 18:37:09 +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
374db5ad24 Add seethru node list support to mcl_mobs.check_line_of_sight 2025-01-20 18:37:09 +01:00
teknomunk
299c209b60 Fix lava spawns 2025-01-20 18:37:09 +01:00
teknomunk
f4e2275ae1 Remove development logging, correct luacheck findings 2025-01-20 18:37:09 +01:00
teknomunk
5844dcfff9 Rewrite mcl_mobs:spawn_specific() in terms of mcl_mobs:spawn_setup() and mark as deprecated, cleanup mcl_mobs:spawn_setup(), compute cumulative chance once when the spawn list is created instead of every time a spawn is attempted 2025-01-20 18:37:09 +01:00
teknomunk
886098e5f4 Remove comment superceded by type annotations, give explicit values for mcl_mobs.SpawnDef.dimension 2025-01-20 18:37:09 +01:00
teknomunk
09eb6bde1e Fix crashes in generating state serialization, make adaptive spawn attempt rate actually work 2025-01-20 18:37:09 +01:00
teknomunk
2626a475ee Redo guardian spawn registration (copy biomes from glow squid) 2025-01-20 18:37:09 +01:00
teknomunk
8957bf300c Make sure all parameters to spawn_specific() get stored in the spawn definition, change select_random_mob_def() to remove possible error() call 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