-
Bug
-
Resolution: Unresolved
-
None
-
1.20.4, 24w11a
-
None
-
Confirmed
-
Creative
-
Mob behaviour
When a player in creative mode attacks a warden, the warden targets that player for 2 ticks.
Steps to reproduce
- Download the provided datapack Relation visualation.zip
. - Activate a repeating command block with the following command to visualize particle lines between entities and their targets:
/execute as @e at @s on target run function snapshots:raycast_particles/3
- Summon a warden.
- Attack it in creative mode
Observed Outcome: Despite being unable to attack you due to your presence in creative mode, the warden targets you for 2 ticks.
Expected Outcome: The warden should not target you for 2 ticks as it cannot attack you in creative mode. Additionally, other mobs do not target creative mode players for 2 ticks when attacked by them.
Alternatively, you can input the command
execute as @e[type=minecraft:warden] at @s run say hi
into an activated repeating command block. You'll observe that the message is sent twice if you attack a warden in creative mode, indicating that the warden targets you precisely for 2 ticks.