You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Checks where is used the method setLastHurtByPlayer(player) : it's used only in method setTarget(livingEntity) in ZombifiedPiglin class.
Looks the method hurt(damageSource, amount) in livingEntity class which set lastHurtByPlayerTime to 100 (and not tickCount like in setLastHurtByPlayer(player)
Checks the baseTick in livingEntity which decreases each tick 1 from lastHurtByPlayerTime until it reaches 0 and set lastHurtByPlayer to null
Description of issue:
The method setLastHurtByPlayer(player) doesn't seem correct and should be 100, which corresponds to the last 5 seconds that a player hit a creature.
The field lastHurtByPlayer is used for LootParams, for tamable entities and kill credit.
Minecraft Version: 1.21.4 (and below)
NeoForge Version: 21.4.100-beta
Steps to Reproduce:
Description of issue:
The method setLastHurtByPlayer(player) doesn't seem correct and should be 100, which corresponds to the last 5 seconds that a player hit a creature.
The field lastHurtByPlayer is used for LootParams, for tamable entities and kill credit.
Code
Additional Infos
An issue solved by vanilla in 25w02a (8/1/2025) so, i suppose it's related.
https://www.minecraft.net/en-us/article/minecraft-snapshot-25w02a
https://bugs.mojang.com/browse/MC/issues/MC-56653
The text was updated successfully, but these errors were encountered: