Commit graph

12174 commits

Author SHA1 Message Date
Michieal
0a17bbe731 Added reset for player respawning to remove FOV modifiers.
Fixed missing on_end call in remove_all_modifiers.
Added mcl_fovapi to Bows, Sprint, and Spyglass.
Set up the Spyglass to use the new FOV API.
2023-12-18 22:50:52 +00:00
Michieal
6cfb55e853 Added reset for player respawning to remove FOV modifiers.
Fixed missing on_end call in remove_all_modifiers.
Added mcl_fovapi to Bows, Sprint, and Spyglass.
2023-12-18 22:50:52 +00:00
Michieal
bf41e116a1 Fleshed out the API Documentation.
Modified missing pieces of code.
2023-12-18 22:50:52 +00:00
Michieal
fc80d4fb9f Initial API state. 2023-12-18 22:50:52 +00:00
Michieal
11c5d36c55 Initial Commit. 2023-12-18 22:50:52 +00:00
Eliy21
44c656502f Add a prevention in case players get stuck with the damage animation 2023-12-18 22:04:12 +00:00
Eliy21
fe90424ee4 Add pvp knockback reduction when moving towards player while attacking 2023-12-18 21:42:26 +00:00
Eliy21
14cec16c63 Increase enchanted bow knockback 2023-12-18 21:31:38 +00:00
bakawun
a786b66d9e mobs:skeletons: add sounds to skeleton
and stray, fix random sound for wither skeleton
2023-12-18 11:17:25 +01:00
bakawun
cc470b9d88 mobs:hoglin: fix conversion of tabs to spaces 2023-12-18 11:08:09 +01:00
bakawun
ee51a500b2 mobs:piglin: use (alt) zombified piglin sounds 2023-12-18 10:57:39 +01:00
bakawun
7f823f0155 mobs:hoglin:add licence information 2023-12-18 10:38:23 +01:00
bakawun
f5ba0b7981 mobs:zoglin: use hoglin sound .2 2023-12-18 10:31:08 +01:00
bakawun
e202f20869 mobs:hoglin: use sound .1 for random and
reuse hurt sound for death
2023-12-18 09:58:37 +01:00
bakawun
692b101212 mobs:hoglin: add missing sounds
these were made by epCode and lincenced under
LGPL-3.0.
downloaded from
49a838e733
2023-12-18 09:51:58 +01:00
the-real-herowl
07147e9d5b Make slime+magmacube collision boxes rotate properly 2023-12-18 02:56:43 +01:00
the-real-herowl
d44b00a20e Merge pull request 'Shulker improvements and homing mob projectiles' (#4000) from Bakawun/MineClone2:Shulker_shot_speed into master
Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/4000
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
2023-12-18 00:54:04 +00:00
Eliy21
12109e7f44 Add player damage animation 2023-12-17 21:18:57 +00:00
Eliy21
200f7451eb Remove unnecessary invul code & add damage animation code 2023-12-17 21:15:55 +00:00
Eliy21
c39e55e2d4 Add minimum knockback to crossbow 2023-12-17 20:01:35 +00:00
Eliy21
6d7ae8ba2d Add minimum unenchanted knockback to bow 2023-12-17 19:59:18 +00:00
Eliy21
8612350fa7 Make vertical pvp knockback floatiness reduction include moving hits 2023-12-17 17:48:39 +00:00
Eliy21
0a8874ecad Make vertical pvp knockbacks less floaty 2023-12-17 16:39:04 +00:00
Eliy21
e8ee9c4463 Remove obsolete work-around code 2023-12-16 12:58:58 +00:00
Eliy21
32e91b45ae Add vertical pvp knockbacks from downward hits & reduce pvp kb on half block angled upward hits 2023-12-16 11:48:16 +00:00
Eliy21
8fbd72c142 Optimize code by calling get_enchantment function only once 2023-12-16 09:46:18 +00:00
Eliy21
cfab59d68a Rebalanced moving pvp knockbacks 2023-12-16 09:20:29 +00:00
Eliy21
33e8337bbb Finish remaining excessive vertical pvp knockback prevention adjustments when hit from below 2023-12-16 07:58:26 +00:00
Eliy21
f799596db9 Make vertical pvp knockbacks respect attack reach limit & complete excess vertical kb prevention 2023-12-15 22:56:02 +00:00
Eliy21
9b9747b3d8 Prevent excessive vertical knockbacks if hit by a player from below 2023-12-15 21:02:07 +00:00
Eliy21
c9692c6224 Fix player invulnerability not getting disabled permanently bug 2023-12-15 19:49:04 +00:00
Eliy21
cd83305f07 Make the vertical lift on pvp knockback similar to MC 2023-12-15 18:17:15 +00:00
Eliy21
d7b10d18d8 Fix not being able to give minimum knockback to players when both near and lower than them 2023-12-15 16:27:09 +00:00
Eliy21
8e2c5249f5 Fix comment on player invul code 2023-12-15 15:59:08 +00:00
Eliy21
ca556c052f Prevent pvp knockbacks when invulnerable 2023-12-15 15:52:26 +00:00
Eliy21
60367cdbe0 Revert unreliable bugfix
There are times when the continuous damage when punching players does not happen so will not fix at the moment as using other weapons does still work.
2023-12-15 15:42:49 +00:00
Eliy21
ae169b2814 Add fix to crash when moving bought villager trade item to empty sell slot bug by JoseDouglas26 (#4079)
Add fix to #4062 by JoseDouglas26 https://git.minetest.land/MineClone2/MineClone2/issues/4062#issuecomment-74045

Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/4079
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: Eliy21 <eliy21@noreply.git.minetest.land>
Co-committed-by: Eliy21 <eliy21@noreply.git.minetest.land>
2023-12-15 03:09:48 +00:00
bakawun
cee5bbc206 mobs:fix typo in homing function 2023-12-14 16:50:23 +01:00
Eliy21
6b439fd1de Add maximum pvp knockback limit & approximate enchant knockback distance to be similar to MC 2023-12-14 11:57:55 +00:00
Eliy21
bf9e487fa9 Adjust minimum pvp knockback to be closer to MC 2023-12-14 09:27:28 +00:00
Eliy21
49af5d2013 Rebalance minimum pvp knockback to account for added knockbacks when moving 2023-12-14 08:51:34 +00:00
Eliy21
ed507d8509 Remove unnecessary space in the attack reach limit on mobs code 2023-12-14 08:15:55 +00:00
Eliy21
b2507c3640 Make fire aspect enchant respect attack reach limit 2023-12-14 08:12:13 +00:00
Eliy21
85b1f5247a Add vertical lift & minimum pvp knockback 2023-12-14 07:46:16 +00:00
Eliy21
2b71462c1e Prevent knockback if player is beyond attack reach limit 2023-12-13 20:36:54 +00:00
Eliy21
b0e33793ec Fix a potential bug that could bypass attack reach limit when a stronger attack breaches the invul 2023-12-13 20:04:15 +00:00
Eliy21
96aaf89036 Readjust pvp enchant knockback to make the running knockback difference more pronounced 2023-12-13 18:49:08 +00:00
Eliy21
a8c2d4534a Nerf long pvp enchanted knockbacks especially when running 2023-12-13 17:42:42 +00:00
Eliy21
a8806fe04e Add player invulnerability & fix not continuously damaging players when holding the attack key
Player invulnerability is the same as Minecraft's Damage Immunity https://minecraft.wiki/w/Damage#Immunity

The old code for some reason only allows a few damage by holding and does not continuously damage other players after a few hits
2023-12-13 17:34:42 +00:00
Wbjitscool
ebd733be82 update's the campfire's fire burning animation to make it look better (#4077)
improve the look of the campfire's flame/burning animation

Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/4077
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: Wbjitscool <dwsda121@gmail.com>
Co-committed-by: Wbjitscool <dwsda121@gmail.com>
2023-12-13 05:22:41 +00:00