Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-269461

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

XMLWordPrintable

    • Icon: Bug 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

      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.

            Unassigned Unassigned
            NoUser No User
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              CHK: