Commit Graph

12 Commits

Author SHA1 Message Date
teknomunk
8f8d27d7e0 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-07 19:15:38 +01:00
teknomunk
d85c7c395f Fix crashes in mcl_throwing 2024-12-07 19:15:38 +01:00
the-real-herowl
03c3447657 Fix throwables' punch allow check 2024-12-07 19:15:38 +01:00
teknomunk
64b2b5b125 Make egg and snowball stack count match master 2024-12-07 19:15:38 +01:00
teknomunk
8f7a020a0d Fix player-mcl_throwing collisions, fix chick spawning on egg collisions, luacheck fixes 2024-12-07 19:15:38 +01:00
teknomunk
9da0808142 Fix luacheck findings for this PR: remove unused variables, remove overwritten value, add missing dependencies, fix undefined variable usage 2024-12-07 19:15:38 +01:00
teknomunk
7723d3a470 Make snowballs have the same collision conditions as before 2024-12-07 19:15:38 +01:00
teknomunk
538ab13473 Convert flying bobber to vl_projectile, modify mcl_throwing.register_throwable_object() to check for _vl_projectile field 2024-12-07 19:15:38 +01:00
teknomunk
fef2090c26 Resolve more review comments, fix crash 2024-12-07 19:15:38 +01:00
teknomunk
40e44e5420 Start mcl_bows:arrow_entity refactor 2024-12-07 19:15:38 +01:00
teknomunk
ed880924a6 Remove _thrower from vl_projectile (uses self._vl_projectile.owner instead), reorder some code 2024-12-07 19:15:38 +01:00
teknomunk
feb3122490 Finish reworking all items in mcl_throwing 2024-12-07 19:15:38 +01:00