Attached is a .mcaddon that should make replicating this bug easier. Scripting version 2.6.0
When damage is modified to be less than the value that triggered the event by changing the “damage” property, the invulnerability period is removed/reduced/ignored, causing the player to take damage again immediately.
Steps To Reproduce:
Install the .mcaddon
Create a creative world with cheats enabled, and find and equip the “BugReport” Chestplate in the creative inventory. While worn, all damage the player receives is changed to 2
Place a block that rapidly deals 2 or less damage to player(Fire, Soul Fire, Magma Block), and observe how damage is received
Place a block that rapidly deals more than 2 damage to the player(Lava), and observe how damage is received
Expected Result:
Both sources of damage should behave the same, applying 2 damage to the player every 10 ticks.
Actual Result:
Damage sources that are modified to be higher than the value that triggered the event behave as expected. Damage sources modified to to be lower than the value that triggered the event remove/reduce/ignore the invulnerability timer, causing the player to take damage again immediately
Thank you for helping us improve Minecraft! We saved your files: