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

Enderman become passive when teleporting randomly during day while being aggressive

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: Minecraft 15w51b, Minecraft 1.9, Minecraft 1.9.1 Pre-Release 1, Minecraft 1.9.2, Minecraft 16w15b, Minecraft 16w21b, Minecraft 1.11, Minecraft 1.12.2, Minecraft 18w21a, Minecraft 1.13-pre7, Minecraft 1.13, Minecraft 18w30b, Minecraft 1.13.1-pre1, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 18w50a, Minecraft 19w12b, Minecraft 19w13b, Minecraft 19w14a, Minecraft 19w14b
    • Fix Version/s: None
    • Confirmation Status:
      Confirmed
    • Category:
      (Unassigned)

      Description

      The bug

      When an enderman is aggressive and starts teleporting randomly at day it becomes passive and still teleports randomly during night.

      How to reproduce

      1. Set the time to night
      2. Build a two block high tower and stand on it
      3. Spawn an enderman next to you
      4. Switch to survival mode and look at the enderman
      5. Set the time to day
      6. Wait until the enderman stops being aggressive
        When you look at the enderman it will not become aggressive anymore

      Code analysis

      Based on 1.12 decompiled using MCP 9.40 PRE 1

      It looks like the problem is that the field net.minecraft.entity.ai.EntityAINearestAttackableTarget.targetEntity is not reset when net.minecraft.entity.EntityLiving.attackTarget is null. This is the case if it is day and an enderman tried to attack a player for 30 seconds. However, changing this might have unexpected side effects.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ProfMobius [Mojang] ProfMobius (Thomas Guimbretiere)
                Reporter:
                marcono1234 [Mod] Marcono1234
              • Votes:
                19 Vote for this issue
                Watchers:
                11 Start watching this issue

                Dates

                • Created:
                  Updated:
                  CHK: