1
0
Fork 0
Commit Graph

632 Commits

Author SHA1 Message Date
Eliy21 589d7e660e Fix a potential bug that could bypass attack reach limit when a stronger attack breaches the invul 2023-12-14 09:30:03 +01:00
Eliy21 2901eadc55 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-14 09:29:11 +01:00
the-real-herowl 80af7a29a9 Unified and refactored FOV API code 2023-12-13 06:42:35 +01:00
the-real-herowl dd50112349 Fixed the exclusive modifiers not being exclusive 2023-12-12 09:52:02 +01:00
Michieal d63cf1478d Fixed a couple of errors
Removed a debug statement that was broken.
Changed `modififer` to `modifier` in a code block.
2023-12-12 09:50:59 +01:00
the-real-herowl b5112fd5c5 Script and documentation cleanup 2023-12-12 09:50:38 +01:00
the-real-herowl 9e1a2a480b Updated credits 2023-12-12 09:50:23 +01:00
the-real-herowl fafc28a694 Updated the api.md file 2023-12-12 09:50:03 +01:00
the-real-herowl 4314de9d88 Made bow unfocus faster 2023-12-12 09:49:46 +01:00
the-real-herowl a37ebc0f87 Moved sprinting into the new FOV api 2023-12-12 09:49:30 +01:00
the-real-herowl 9dd524003d Fixed modifier application and removal 2023-12-12 09:49:12 +01:00
the-real-herowl b4329d0b44 Made fovapi registration more robust 2023-12-12 09:48:38 +01:00
Michieal fb13dfec4f Reworked some of the Apply_Modifier code to help prevent errors. 2023-12-12 09:48:24 +01:00
Michieal 0e3c8f063f Put in check to prevent Trying to Reference a Nil error in Apply_Modifier. 2023-12-12 09:48:07 +01:00
Michieal 149097ff90 Put in checks to prevent repeatedly applying the same FOV modifier.
Added short circuit to remove_modifier if the modifier is not currently applied.
2023-12-12 09:47:51 +01:00
Michieal a82ff254ff 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-12 09:46:56 +01:00
Michieal a24e5f85c0 Fleshed out the API Documentation.
Modified missing pieces of code.
2023-12-12 09:46:42 +01:00
Michieal dd00dc4496 Initial API state. 2023-12-12 09:46:22 +01:00
Michieal b4e8b0ea88 Initial Commit. 2023-12-12 09:46:06 +01:00
the-real-herowl bb66f81999 Merge pull request 'Combat rebalancing' (#4036) from combat_rebalancing into master
Reviewed-on: MineClone2/MineClone2#4036
2023-12-08 22:06:06 +00:00
Eliy21 86dad4693e Add warning log if players with 0 hp joined (#4051)
Reviewed-on: MineClone2/MineClone2#4051
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-05 08:21:37 +00:00
Eliy21 0673fcc25b Respawn dead players when they login so they don't get stuck without the death formspec (#4041)
Hopefully will prevent the dead player not respawning when logging in bug from happening

Reviewed-on: MineClone2/MineClone2#4041
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-05 01:08:50 +00:00
the-real-herowl 589de76613 Fixed a code branch never being run 2023-12-05 01:59:05 +01:00
the-real-herowl cca6645524 Added player damage invulnerability 2023-12-05 00:58:10 +00:00
the-real-herowl 24ffd64cad Knockback fixes 2023-12-05 00:58:10 +00:00
the-real-herowl e29654a0f6 Revert healing interval default to the lower value 2023-12-05 00:58:10 +00:00
3raven 86da47b922 French translation update (#4006)
Update french translation, add missing chain, fix typo

Reviewed-on: MineClone2/MineClone2#4006
Reviewed-by: AFCMS <afcm.contact@gmail.com>
Co-authored-by: 3raven <3raven@noreply.git.minetest.land>
Co-committed-by: 3raven <3raven@noreply.git.minetest.land>
2023-11-25 01:08:06 +00:00
Eliy21 7cbba73d50 Combat (mostly PvE) rebalancing (#4005)
-Added short mob invulnerability time after being hit
-Added separate shorter range for hitting mobs (as opposed to node interaction)
-Reworked mob knockback
-Slowed down natural health regeneration from saturation
-Added a setting for the saturation health regen speed

Reviewed-on: MineClone2/MineClone2#4005
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-11-23 00:32:23 +00:00
Dark a66be39d9b Raise player eye height to 1.6 blocks.
This is the same as in Minecraft. The previous value of 1.5 can feel very strange for those coming from that game.
2023-10-16 00:15:12 +00:00
ancientmarinerdev 2c2f5595f3 Merge pull request 'Add Setting to keep respawn location set if bed is destroyed.' (#3933) from Eliy21/MineClone2:no_bed_respawn_setting into master
Reviewed-on: MineClone2/MineClone2#3933
Reviewed-by: chmodsayshello <chmodsayshello@hotmail.com>
2023-09-29 18:29:31 +00:00
𝕵𝖔𝖍𝖆𝖓𝖓𝖊𝖘 𝕱𝖗𝖎𝖙𝖟 2bd6678b08 mcl_skins: link to official mcl_custom_skins 2023-09-28 13:09:45 -05:00
Blockhead 882c3ef339 Point mcl_custom_skins link to a working URL 2023-09-25 19:55:36 +10:00
Eliy21 eb658a4996 Update mods/PLAYER/mcl_spawn/init.lua
Add if then condition for no bed/anchor respawn settings
2023-09-11 19:38:33 +00:00
Sab Pyrope 5b4a79a26d Update russian translation 2023-08-31 14:16:42 +08:00
AFCMS 4f0620c7c1
Fix meshhand not updating correctly 2023-08-19 18:06:31 +02:00
AFCMS 9d184e9897
Remove duplicated creative inventory code 2023-08-19 18:01:32 +02:00
AFCMS bf28bab427
Remove duplicated creacode 2023-08-19 18:01:31 +02:00
AFCMS ae632fe773
Fixes in `mcl_inventory`
- Fix (yet another) rebase conflict
- Remove unused code and annotations
- Fix annotations in `mcl_gamemode` to https://github.com/minetest-toolkit/minetest-lsp-api
2023-08-19 18:01:30 +02:00
AFCMS 4db0631133
`mcl_inventory` creative fixes
- Add many comments (I had a really hard time understanding the code)
- Add some more type annotations (https://github.com/minetest-toolkit/minetest-lsp-api)
- Rename non english variable
2023-08-19 18:01:30 +02:00
AFCMS 3bbae86baf
Fix this stupid merge conflict 2023-08-19 18:01:29 +02:00
cora ee4f7d1b88
Fix rebase breaking creative digging 2023-08-19 18:01:29 +02:00
AFCMS 7d8a1e1e5f
Fix some merging stuff 2023-08-19 18:01:29 +02:00
AFCMS 093d55861c
Basic mcl_gamemode documentation 2023-08-19 18:01:27 +02:00
AFCMS fbb51835b3
survival inventory tabs API + mcl_gamemode 2023-08-19 18:01:26 +02:00
AFCMS c2032fe4de
Fix 2023-08-19 18:01:25 +02:00
AFCMS 691b93ac68
Modern Survival Inventory (9 slice images, formspec v6) 2023-08-19 18:01:25 +02:00
𝕵𝖔𝖍𝖆𝖓𝖓𝖊𝖘 𝕱𝖗𝖎𝖙𝖟 6756358307 Fix meshhand with mcl_skins disabled 2023-08-16 08:06:12 -05:00
ancientmarinerdev 8b9b4b00e5 Fix elytra crash when flying over unknown node 2023-06-21 20:47:54 +00:00
ancientmarinerdev 088f8dec2f Fix server crash for unknown node below. 2023-06-21 20:47:54 +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