Relates to MC-253023
In 26.4 Snapshot 2, new logic was added to SculkShriekerBlockEntity to handle getting a player associated to an entity in more cases using the entity’s last damage source (https://mcsrc.dev/2/diff/26.4-snapshot-1/26.4-snapshot-2/net/minecraft/world/level/block/entity/SculkShriekerBlockEntity#R110 ). This also includes armor stands, but due to the lastDamageStamp field not being set by armor stands as part of their hurtServer method, LivingEntity#getLastDamageSource always returns null for them.
Steps to reproduce
Place a sculk sensor & sculk shrieker next to eachother, and place an armor stand in range of them.
Break the armor stand in one shot from a distance using a bow.
Observe the sculk shrieker not being triggered, while it does trigger when repeating the steps with an item frame entity.
Possible fix
Assign the lastDamageStamp field in the same spot where lastDamageSource is being set now (https://mcsrc.dev/2/diff/26.4-snapshot-1/26.4-snapshot-2/net/minecraft/world/entity/decoration/ArmorStand#R476 ).
Comments 0
No comments.