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
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
ca556c052f
Prevent pvp knockbacks when invulnerable
2023-12-15 15:52:26 +00: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
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
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
the-real-herowl
1857341b59
Fixed player knockback from arrows
2023-12-05 00:58:10 +00:00
the-real-herowl
24ffd64cad
Knockback fixes
2023-12-05 00:58:10 +00:00
NO411
db68c0e26b
Add shield
2022-03-15 15:58:27 +01:00
Elias Åström
a6c5c8a72a
Call update_groupcaps from load_enchantments
...
This avoids the need to call the function from on_enchant for unbreaking
and efficiency.
2022-02-12 19:43:01 +01:00
Elias Fleckenstein
a4e73886d5
Rework XP API
2021-11-03 19:36:57 +01:00
epCode
1c458a2e72
Add crossbows
2021-10-15 12:00:37 -07:00
AFCMS
cd33d406b2
fix many codestyle issues (functions, strings, modpaths)
2021-05-29 16:12:33 +02:00
Elias Fleckenstein
302175691a
Integrate death messages
2021-04-25 16:42:38 +02:00
Elias Fleckenstein
f0d7715080
Merge branch 'master' into damage
2021-04-18 14:51:45 +02:00
Elias Åström
573b1dc44b
Do not include unnecessary tool_capabilities
...
This commit makes enchanted tools which have no use for
tool_capabilities to not include it in their metadata. It does this by
not including tool_capabilities in the metadata of an enchanted tool if
at least one of two cases is true:
(1) The tool is not enchanted with unbreaking or efficiency
(2) The tool does not have tool_capabilities defined in its definition
The first case covers situations like having a pickaxe only being
enchanted with silk_touch. The second case covers situations like a
piece of armor being enchanted with unbreaking.
2021-04-18 11:40:43 +02:00
Elias Åström
dd69dcfd9f
Fix efficiency and unbreaking not working together
...
This commit fixes an issue were tools enchanted with both efficiency and
unbreaking would loose the effect of one of the enchantments in some
conditions.
2021-04-18 11:40:13 +02:00
Elias Fleckenstein
ce0148d9a8
Rewrite armor; new damage system
2021-04-14 15:46:52 +02:00
Elias Åström
8f9650abe4
Update the groupcaps of all enchanted tools
...
Not just those enchanted with efficiency.
2021-03-18 11:35:40 +01:00
Elias Åström
922bdbc601
Use hashing for more efficient groupcaps updating
...
This adds the metadata field "groupcaps_hash" to tools enchanted with
efficiency. This value contains a hash of the groupcaps field in
tool_capabilities. This value gets compared to the expected hash value
to determine if the tools tool_capabilities should be updated according
to commit af31f8189e8e5c2b.
This commit makes efficiency more efficient.
2021-03-18 11:35:40 +01:00
Elias Åström
f0528b11d7
Make mcl_enchanting use the new mcl_autogroups
...
The function mcl_autogroups.get_groupcaps is used by mods to get the
groupcaps for tools with efficiency enchantments. This function is used
by mcl_enchanting when enchanting tools with efficiency.
2021-03-18 11:34:26 +01:00
Code-Sploit
578709c93e
Add Depth Strider enchantment
2021-02-27 15:35:59 +00:00
Elias Fleckenstein
5de9d90569
Simplify mcl_burning API
2021-02-22 10:55:14 +01:00
Elias Fleckenstein
3d0f5a4de5
Fix #1161
2021-02-22 10:43:59 +01:00
Elias Fleckenstein
c9e589b931
Add mcl_burning damage interval
2021-02-18 14:47:35 +01:00
HimbeerserverDE
00df587bf7
Add flame enchantment
2021-01-27 20:11:02 +01:00
Elias Fleckenstein
02305c914d
Merge branch 'enchanted_books_creative'
2021-01-18 20:08:37 +01:00
Elias Fleckenstein
c4c3fc1c8c
Fix Fire Aspect
2021-01-10 14:16:00 +01:00
Elias Fleckenstein
2f1a918667
Fix thorns incompabilities
2021-01-06 19:41:11 +01:00
Elias Fleckenstein
9a31252c5d
Fix sharpness and bane of arthopods being compatible
2021-01-06 19:04:04 +01:00
Elias Fleckenstein
796c80b2d1
Merge branch 'fixes' into enchanted_books_creative
2021-01-04 17:59:41 +01:00
Elias Fleckenstein
aea051fe37
Proper fire aspect damage
2021-01-04 17:53:49 +01:00
Elias Fleckenstein
5939baee52
Enchanted books in creative inventory
2021-01-04 13:02:55 +01:00
kay27
30379c823c
Clean up some spaces in code after merging https://git.minetest.land/EliasFleckenstein03/MineClone2
2021-01-03 00:42:07 +04:00
Elias Fleckenstein
fbd4a3a516
Fix burning sound keeping playing
2021-01-02 10:56:40 +01:00
Elias Fleckenstein
92bf864807
Fire Aspect
2021-01-01 19:51:31 +01:00
Elias Fleckenstein
da7240d6c1
looting
2020-12-23 17:41:42 +01:00