The Bug:
The changelog of 25w43a stated that:
Lunge can only be used if the player has at least 6 hunger points in their hunger bar
This limit accidentally applies to custom enchantments using post_piercing_attack effect component.
Steps to Reproduce:
Install the attached datapack and rejoin the world.
Run the command in chat to get the two testing spears, “Spear A” and “Spear B”.
”Spear A” is enchanted with Lunge III.
”Spear B” has a custom enchantment that says “hello, world” when performing jab attack./function test:get_spearsSwitch to survival mode.
Attack (left click) with “Spear B” to see that the enchantment creates a “hello, world” message.
Clear the chat with F3+D to avoid confusion.
Spam attack with “Spear A” to deplete hunger, until it reaches 6 or lower.
Attack with “Spear A” to see that Lunge stops working ✅.
Attack with “Spear B” to see that the custom enchantment also stops working ❌.
Expected Behavior:
When the hunger point is lower than or equal to 6, only Lunge stops working.
Observed Behavior:
When the hunger point is lower than or equal to 6, all enchantments' post_piercing_attack effect component stops working.
Attachments
Comments 0
No comments.