Commit Graph

2380 Commits

Author SHA1 Message Date
the-real-herowl
43539e1392 Make sure self.rotate is not nil before use (#4759)
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4759
Co-authored-by: the-real-herowl <wiktor_t-i@proton.me>
Co-committed-by: the-real-herowl <wiktor_t-i@proton.me>
2024-12-29 08:05:52 +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
7de503770f Address review concerns 2024-12-25 11:52:24 +01:00
teknomunk
2732976404 Move fireball redirection service award check to ghast from fireball 2024-12-25 11:52:24 +01:00
teknomunk
60e3c139cc Change mcl_mobs to use mcl_util.remove_entity() when killing mobs, add guard in vl_projectile against removed mobs 2024-12-25 11:52:24 +01:00
teknomunk
bb934d09ee Break long lines, add space between functions in vl_projectile/init.lua 2024-12-25 11:52:24 +01:00
teknomunk
bc321ccae4 Add _vl_projectile.can_punch() to mob API and move hard-coded entity behavior from arrow to rover code 2024-12-25 11:52:24 +01:00
teknomunk
a2167e7dfc Change to use nil radius in within_limits(pos,radius) check 2024-12-25 11:52:24 +01:00
teknomunk
88cd54a03b Add reference to Projectile API documentatino from mob API documentation 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
7c8da2eba7 Rework self.timer and _owner collision conditions 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
2fcd4ff69f Fix condition on node collision for mob projectiles 2024-12-25 11:52:24 +01:00
teknomunk
1df10c8dd3 Correct damage for mob projectiles 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
the-real-herowl
515b5bc5c7 Fixed abnormal skull rotation 2024-12-25 11:52:24 +01:00
the-real-herowl
254b100fac Fixed wither skulls
- wither skulls now hit players again
- wither skulls (strong version) don't cause a crash anymore
2024-12-25 11:52:24 +01:00
teknomunk
ee3ea9d3f5 Prevent dereferencing nil in wither.lua, fix minor typo in debug statement 2024-12-25 11:52:24 +01:00
teknomunk
642c474012 Stop wither from shooting itself 2024-12-25 11:52:24 +01:00
teknomunk
f9aa61ff5a Fix unintentional collision box change 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
b8fcc4c02e Prevent projectiles from crashing server when removed when it punched something (wither skull hitting the wither will cause this), mark wither skull with _removed = true when death timer removes it 2024-12-25 11:52:24 +01:00
teknomunk
b23b16842c Allow mob projectiles to hit their owner after 2 seconds (used by ghast fireball) 2024-12-25 11:52:24 +01:00
teknomunk
b339d5f13f Remove redundant check 2024-12-25 11:52:24 +01:00
teknomunk
2864e8fa30 Correct behavior when ignore_gravity flag is true, fix mob projectile velocity calculation, add missing entity_def lookup 2024-12-25 11:52:24 +01:00
teknomunk
b4e6417b92 Convert mcl_mobs.register_arrow() to use vl_projectile, tested only with shulker bullet so far 2024-12-25 11:52:24 +01:00
kno10
e96bec0ad0 Fix strider spawning (#4747)
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4747
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-12-23 13:48:18 +01:00
kno10
2fb04076f8 fix inconsistent capitalization of Tropical fish 2024-12-19 08:47:40 +01:00
kno10
6f12e173aa Improve extraction of strings, for banner colors and villagers 2024-12-19 08:47:40 +01:00
kno10
979105efbf German translation updates 2024-12-18 21:30:19 +01:00
kno10
c73baa3886 German translation updates 2024-12-18 18:42:25 +01:00
kno10
3ecda2e70d auto-update translation files 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
Bloodaxe
277a5d5857 Added mobs_mc.nb.tr 2024-12-16 01:16:32 +01:00
0ldude
6e3a5b53b1 tr mods/CORE & mods/ENTITIES to it [typo] 2024-12-16 01:16:32 +01:00
0ldude
3fd1b9d96f tr mods/CORE & mods/ENTITIES to it 2024-12-16 01:16:32 +01:00
Peter Hartauer
88580d53b6 Initial Commit with translations 2024-12-16 01:16:32 +01:00
Mikita Wiśniewski
e42a863d92 Fix crash on mobs spawning in <5.9 (#4737)
This patches a copypaste blunder made in ef763e396c.

Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4737
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-12-07 14:58:17 +01:00
villager8472
c6c5de7335 Fixed hoglins never dropping leather. (#4736)
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4736
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: villager8472 <gecko15x@gmx.de>
Co-committed-by: villager8472 <gecko15x@gmx.de>
2024-12-06 20:26:40 +01:00
kno10
f14ff83737 mob attack tweaks 2024-12-01 00:53:42 +01:00
kno10
6510ea4777 fix child == true when child = 1 2024-12-01 00:53:42 +01:00
kno10
932118f10b More tweaks to pathfinding 2024-12-01 00:53:42 +01:00
kno10
4388152650 Make villagers hurry for long paths and night 2024-12-01 00:53:42 +01:00
kno10
5779be305c avoid trivial fences, open some fence gates 2024-12-01 00:53:42 +01:00
kno10
86f4d8243d Improve starting and end point of pathfinding. 2024-12-01 00:53:42 +01:00
kno10
f377f97348 pathfinding improvements 2024-12-01 00:53:42 +01:00
kno10
230cd5154c Improve danger avoidance code. 2024-12-01 00:53:42 +01:00