teknomunk
5564610b09
Small optimization for calculating _allow_punch
2024-10-27 16:03:20 +01:00
teknomunk
007d505a96
Make splash, lingering and othe projectiles hit players
2024-10-27 16:03:20 +01:00
teknomunk
db00c709db
Stop minimum draw arrows from hitting player that shot them
2024-10-27 16:03:20 +01:00
teknomunk
e12420b93e
Prevent collisions with entities until projectile is at least one node from where it started (to prevent always hitting yourself), modify mcl_bows.shoot_arrow() and mcl_bows_s.shoot_arrow_crossbow() to use vl_projectile.create(), fix projectiles damaging players
2024-10-27 16:03:20 +01:00
teknomunk
4b6fa8b869
Inline dir_to_pitch() and use correct formula for pitch
2024-10-27 16:03:20 +01:00
teknomunk
1bfb4b5d8b
Address most of kno10's comments about mcl_utils/node.lua and a couple others, fix lingering potion sound
2024-10-27 16:03:20 +01:00
teknomunk
42f4175930
Address more review comments
2024-10-27 16:03:20 +01:00
teknomunk
63748cd03f
Make arrows damage players, update API documentation, fix several crashes that occurred when arrows hit a player
2024-10-27 16:03:20 +01:00
teknomunk
9990c7937d
Fix picking up tipped arrows
2024-10-27 16:03:20 +01:00
teknomunk
4325ba0071
Fix crash with splash potions of harming, make splash particles match potion color
2024-10-27 16:03:20 +01:00
teknomunk
1d575df8b7
Fix splash potions, fix crash when projectiles hit unknown nodes
2024-10-27 16:03:20 +01:00
teknomunk
54b9861491
Remove logging in tipped_arrows, prevent crash when spawning chicks, add extra safety check in vl_projectile.collides_with_solids
2024-10-27 16:03:20 +01:00
teknomunk
f22224a162
Lingering potions should not collide with liquids, change behaviors assersion loop to catch nil members
2024-10-27 16:03:20 +01:00
teknomunk
fcb8b1ffb7
Convert lingering potion to vl_projectile
2024-10-27 16:03:20 +01:00
teknomunk
77e1b14030
Convert splash potion to vl_projectile, remove dead code, precompute several values in splash potion code, add check of behaviors array in vl_projectile
2024-10-27 16:03:20 +01:00
teknomunk
ef2bc7dbfa
Fix crash related to nil _time_in_air
2024-10-27 16:03:20 +01:00
teknomunk
e4bfaca30e
Revert entity->object for three lines
2024-10-27 16:03:20 +01:00
teknomunk
058e6d6c26
Fix typo _ -> .
2024-10-27 16:03:20 +01:00
teknomunk
e3fcbdf1cc
Fix typo in api.md, add TODO, change entity -> object
2024-10-27 16:03:20 +01:00
teknomunk
2214e6bdba
Fix typos documentation, add ignore_gravity and liquid_drag options, use vl_projectile.register() for enter pearl, move projectile physics to vl_projectile add hook for future vl_physics support
2024-10-27 16:03:20 +01:00
teknomunk
6c6e17ad6d
Resolve more review comments, fix crash
2024-10-27 16:03:20 +01:00
teknomunk
a58151d73d
Resolve review comments
2024-10-27 16:03:20 +01:00
teknomunk
59c342d626
Remove debug print
2024-10-27 16:03:20 +01:00
teknomunk
491be0f116
Give arrows a maximum lifetime to prevent them from getting stuck in mid-air forever
2024-10-27 16:03:20 +01:00
teknomunk
9d9b493651
Fix documentation for raycast_collides_with_entities
2024-10-27 16:03:20 +01:00
teknomunk
c950115b2c
Add API documentation, minor API cleanup
2024-10-27 16:03:20 +01:00
teknomunk
42d7f400c4
Convert rocket to use vl_projectile API using mcl_bows:arrow as a template, remove some dead code
2024-10-27 16:03:20 +01:00
teknomunk
e7f6405bf3
Fold tipped arrows into standard arrows and handle effects via item definition callback, remove arrows when they collide with entities, update handling of removing projectiles
2024-10-27 16:03:20 +01:00
teknomunk
4441f9ad5e
Fix crash on startup
2024-10-27 16:03:20 +01:00
teknomunk
ac6cc76aad
More refactoring to generalize arrow code into projectile
2024-10-27 16:03:20 +01:00
teknomunk
a12ff875f2
Start mcl_bows:arrow_entity refactor
2024-10-27 16:03:20 +01:00
teknomunk
1f7a810497
Remove _thrower from vl_projectile (uses self._vl_projectile.owner instead), reorder some code
2024-10-27 16:03:20 +01:00
teknomunk
ff5aab5d7c
Finish reworking all items in mcl_throwing
2024-10-27 16:03:20 +01:00
teknomunk
162ddbe7f5
Add in vl_projectile, add mcl_util.match_node_to_filter
2024-10-27 16:03:20 +01:00
teknomunk
0ece1ed996
Create vl_projectile and refactor snowball and partially refactor ender pearl
2024-10-27 16:03:20 +01:00
Mikita Wiśniewski
41b188caea
Remove "double drop" mechanics for bamboo ( fixes #4514 ) ( #4642 )
...
Reviewed-on: VoxeLibre/VoxeLibre#4642
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>
2024-10-27 14:16:06 +01:00
teknomunk
c34aecfcab
Don't make 'ignore' nodes break bamboo or kelp ( #4551 )
...
This modifies the behavior of kelp and bamboo so that neither breaks when an unloaded node is encountered.
Reviewed-on: VoxeLibre/VoxeLibre#4551
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-09-29 13:57:52 +02:00
Mikita Wiśniewski
9cb4f51468
Fix invalid global call in mcl_chests LBM ( #4667 )
...
Reviewed-on: VoxeLibre/VoxeLibre#4667
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>
2024-09-29 13:34:20 +02:00
kno10
d264ba70d8
Fix growth logic, clean up mcl_farming/shared_functions ( #4640 )
...
Reviewed-on: VoxeLibre/VoxeLibre#4640
Reviewed-by: teknomunk <teknomunk@protonmail.com>
Co-authored-by: kno10 <erich.schubert@gmail.com>
Co-committed-by: kno10 <erich.schubert@gmail.com>
2024-09-20 14:00:49 +02:00
Mikita Wiśniewski
513413afc7
Use `remove_node` instead of `dig_node` in mcl_core ABMs ( fixes #4628 ) ( #4629 )
...
The mycelium ABM has been left untouched because of the potential destructiveness. If we ever find that to be an issue, it can be fixed as part of a bigger PR.
Reviewed-on: VoxeLibre/VoxeLibre#4629
Reviewed-by: teknomunk <teknomunk@protonmail.com>
Co-authored-by: Mikita Wiśniewski <rudzik8@protonmail.com>
Co-committed-by: Mikita Wiśniewski <rudzik8@protonmail.com>
2024-09-19 18:54:39 +02:00
kno10
011be754ca
Allow deepslate copper to be mined with stone pickaxe ( #4635 )
...
Reviewed-on: VoxeLibre/VoxeLibre#4635
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>
2024-09-18 10:11:55 +02:00
seventeenthShulker
de3b34f5ea
Update English translation keys with soul soil
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
teknomunk
31a3788ce1
Address review comments
2024-09-16 13:32:06 +02:00
teknomunk
e65370b845
Fixes
2024-09-16 13:32:06 +02:00
teknomunk
6c50e0a82b
Fix volume used for room check during spawn, make mcl_mobs.spawn check for room before adding entity, change iron golems and mob spawners to use mcl_mobs.spawn
2024-09-16 13:32:06 +02:00
Mikita Wiśniewski
178cb9340d
Clean-up `set_string(..., nil)` usage ( fixes #4639 ) ( #4641 )
...
Reviewed-on: VoxeLibre/VoxeLibre#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
WillConker
ce5eb8d88d
Remove mobs_mc name check from mcl_mobspawners warning ( #4501 )
...
Fixes a warning.
Mobs spawners really only need to check the entity `.is_mob` as all mobs should have this set.
Reviewed-on: VoxeLibre/VoxeLibre#4501
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: WillConker <willconker@noreply.git.minetest.land>
Co-committed-by: WillConker <willconker@noreply.git.minetest.land>
2024-09-15 23:08:37 +02:00
teknomunk
1707eef672
Fix two additional dependency issues
2024-09-15 22:25:44 +02:00
SmallJoker
7f5b19cda8
Fix missing dependencies for random_mod_load_order
2024-09-15 22:25:44 +02:00