1
0
Fork 0
Commit Graph

732 Commits

Author SHA1 Message Date
Eliy21 fbdbeed94b Prevent dying mobs from catapulting to strong knockbacks like bow/arrows with Punch II 2023-11-21 06:05:54 +00:00
Eliy21 e0bd5e7f33 Balance player velocity added knockbacks from catapulting mobs 2023-11-20 14:52:10 +00:00
Eliy21 0fbfe99c1d Prevent time traveling mobs from being invulnerable if the clock is adjusted 2023-11-20 14:02:38 +00:00
Eliy21 ce1f09f679 Use the dot product mathematical formula 2023-11-20 13:55:55 +00:00
Eliy21 7b7a9a34e5 Fix not adding player velocity on mob hit when moving in perfect x/z direction where the other is 0 2023-11-19 18:52:38 +00:00
Eliy21 1f826b6224 Don't add player velocity if mob velocity is the same or greater to avoid projectile-like knockbacks 2023-11-19 13:07:13 +00:00
Eliy21 0955b9981b Add player velocity to mob knockback 2023-11-19 11:46:38 +00:00
Eliy21 5a7f297e3e Use proper distance calculating tools 2023-11-19 10:14:57 +00:00
Eliy21 1f18c6556a Return vertical knockback to previous commit to account for beginner players 2023-11-18 06:17:16 +00:00
Eliy21 0e320d3965 Rebalance vertical knockback to account for the ease of spamming knockback juggles 2023-11-18 05:40:10 +00:00
Eliy21 ba65880800 Nerf the knockback enchant a bit to accomodate other stacking knockback modifiers 2023-11-18 05:35:59 +00:00
Eliy21 28e157210f Reduce that unnaturally long knockback on second hit after a full cooldown 2023-11-18 05:33:15 +00:00
Eliy21 1d8e6c32d5 Limit attack reach on mobs to 3 blocks
Thanks to the-real-herowl for the code logic suggestion.
2023-11-16 16:33:03 +00:00
Eliy21 68bfeca18f Re-adjust vertical mob knockback to find the right balance in difficulty 2023-11-16 16:24:03 +00:00
Eliy21 bb77e218ba Reduce that weird long knockback on death 2023-11-16 16:19:13 +00:00
Eliy21 8cdf4bea7c Re-buff vertical knockback despite floatiness as the combat becomes harder when lessened
This will make snipe locking with mob juggles easier with the recent commit buffing hand range. Not ideal.
2023-11-14 17:52:21 +00:00
Eliy21 61c96e00ca Optimize code by checking invulnerability time first and dropping the rest of the check if true 2023-11-14 16:56:43 +00:00
Eliy21 c632b77cdb Don't update mob xp when in invulnerable state 2023-11-14 16:44:37 +00:00
Eliy21 782505056d Fix held attack key not hitting mobs bug (this time for sure)
Reverting to old code in the previous PR but with the new optimizations kept
2023-11-14 14:29:50 +00:00
Eliy21 e6dd0b40fd Add mob's last invulnerability time variable (preparing for held attack key not hitting mobs bugfix) 2023-11-14 14:22:01 +00:00
Eliy21 be2fcc925a Optimize code by checking invulnerability1st before the rest and drop checking the others when true 2023-11-12 06:30:57 +00:00
Eliy21 5ebe9f549b Reduce knockback floatiness 2023-11-11 16:42:06 +00:00
Eliy21 107fb0b082 Fix a bug that prevents continuous attacks on mobs when the attack key is held 2023-11-11 16:20:06 +00:00
Eliy21 b2da2b2f63 Give mobs invulnerability for 0.4 seconds after getting hit 2023-11-11 15:23:17 +00:00
Freedom 83d6e2a5d2 polar bear fix typo (#3846)
horrizonatal -> horizontal

Reviewed-on: MineClone2/MineClone2#3846
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: Freeman <project@gnuhacker.org>
Co-committed-by: Freeman <project@gnuhacker.org>
2023-11-03 00:06:06 +00:00
the-real-herowl 59f3b53a51 Merge pull request 'Use MC 1.18+ light levels to control mob spawning' (#3946) from spawn_lighting into master
Reviewed-on: MineClone2/MineClone2#3946
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
2023-10-22 01:35:00 +00:00
ancientmarinerdev 3564f6ebde Fixed a crash in minetest vector code that isn't propogated to lua. Create util for ease of use. 2023-10-15 22:03:48 +01:00
the-real-herowl 966712f4ff Optimisation and cleanup
-optimised and cleaned up wither rose withering effect code
-removed unused code
2023-10-11 00:54:31 +00:00
the-real-herowl 17c8f220e6 A few more wither fixes 2023-10-11 00:54:31 +00:00
the-real-herowl df17688b7d Great batch of improvements 2023-10-11 00:54:31 +00:00
the-real-herowl 729d8ec9e0 Another batch of wither adjustments 2023-10-11 00:54:31 +00:00
Nauta Turbidus a1b6819756 Withering effect and effect immunities
Added withering effect and immunities to effects.

Signed-off-by: Nauta Turbidus <88062389+nauta-turbidus@users.noreply.github.com>
2023-10-11 00:54:31 +00:00
codiac d2d7887e0f Handle bat and slime light checks 2023-09-21 14:53:32 +10:00
codiac bf4c7e1913 Allow non monsters spawns too 2023-09-20 09:24:51 +10:00
codiac 11e3674926 Use MC 1.18 light levels to control mob spawning 2023-09-19 11:18:40 +10:00
ancientmarinerdev 969a08b7be Clean up 2023-09-03 22:02:34 +00:00
ancientmarinerdev 1749712318 Change creepers line of sight check to raycast and do it from eyes to targets feet and head 2023-09-03 22:02:34 +00:00
Sab Pyrope 8b7a71f93e Update Russian translation. Fix 1. 2023-09-02 15:51:49 +08:00
Sab Pyrope 5b4a79a26d Update russian translation 2023-08-31 14:16:42 +08:00
codiac 0d16acdd42 Use a vector and fix the merge fail >_< 2023-08-14 10:48:27 +10:00
codiac 034382c883 Fix float check :( 2023-08-13 12:14:52 +10:00
cora 898a183ccd Prevent floating mobs from drowning all the time
Less dieing for mobs in deep water.
2023-08-13 12:12:03 +10:00
codiac 6ae597c97f This changes mob floating so they stay inside the top water node instead of
standing on it. The head of the mod should still be above water.

Changes drowning so that mobs will not drown in one block of water. They will
drown in 2 or more blocks of water.

Does not appear to affect them getting out of deep water :( But they do seem to
die somewhat faster when they stay in deep water.
2023-08-12 14:01:26 +10:00
Kristian 9c77cbc011 TOM Mobs 2023-06-27 21:09:03 +00:00
ancientmarinerdev 658f244ae4 Creeper should not walk to player if it does not have line of sight. Mob shouldn't look at player it does not have line of sight to. 2023-06-21 20:17:49 +00:00
Temak f7f8a72d08 Update russian translation (#3519)
Update russian translation by Temak

Reviewed-on: MineClone2/MineClone2#3519
Reviewed-by: ancientmarinerdev <ancientmariner_dev@proton.me>
Co-authored-by: Temak <artemkotlubai@yandex.ru>
Co-committed-by: Temak <artemkotlubai@yandex.ru>
2023-06-19 21:54:51 +00:00
epCode df8592df41 Revert add punch node 2023-06-04 21:53:39 -07:00
epCode 5e4fa30aae Punch node after change 2023-06-04 20:19:18 -07:00
epCode 86cd5711ca Rearange on replace code to be more general purpous 2023-06-04 22:41:35 +00:00
epCode 908ba9fba6 Put on_replace call in correct place (wool regrow on grass to dirt) 2023-06-04 22:41:35 +00:00