Mojira Archive
MC-269461

Wardens target creative mode players for 2 ticks when attacked by them.

When a player in creative mode attacks a warden, the warden targets that player for 2 ticks.

Steps to reproduce

  1. Download the provided datapack Relation visualation.zip.
  2. 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
  3. Summon a warden.
  4. 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.

Unresolved

No User

oowooglac

2024-03-15, 02:43 PM

2024-04-09, 12:04 PM

2

1

Confirmed

Mob behaviour

1.20.4, 24w11a

-