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

Vindicators renamed "Johnny" maintain hostility after being renamed to something else

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Works As Intended
    • Affects Version/s: Minecraft 16w40a, Minecraft 1.11 Pre-Release 1, Minecraft 1.11
    • Fix Version/s: None
    • Labels:
      None
    • Confirmation Status:
      Confirmed

      Description

      To reproduce, name a vindicator "Johnny" using a name tag. As a result, its Johnny tag will update to true. However, renaming it to something else with a name tag will not reset this value, meaning the vindicator will remain hostile to other mobs.

      Simply being able to disable the hostility of Johnny vindicators by renaming them would be troubling for maps, which was likely why the tag was implemented, so I would suggest removing the line that sets Johnny to true when the name is set to "Johnny," and use something to the effect of if (Johnny || name=="Johnny") instead of if (Johnny) for the attacking.

        Attachments

          Activity

            People

            Assignee:
            grum [Mojang] Grum (Erik Broes)
            Reporter:
            tryashtar [Mod] tryashtar
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              CHK: