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

Making piglins and piglin brutes angry at certain entities (like dropped items) crashes the game

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 1.16.2
    • Fix Version/s: 20w45a
    • Labels:
      None
    • Confirmation Status:
      Confirmed
    • Category:
      Commands, Crash
    • Mojang Priority:
      Very Important

      Description

      The bug

      I was messing around with piglins anger system to see what they can be angry at.

      Suprisingly, the game will crash if you force them to be angry at certain ones.  The only entities I have tested are: Area of effect clouds, dropped items and item frames, altough I suspect that other similar entities, such as projectiles, will produce the same crash.

       

      Steps to reproduce:

      Spawn in a piglin and one of the mentioned entities above then run this data modify command, replacing type=item with desired entity:

      /execute as @e[type=piglin] run data modify entity @s Brain.memories.minecraft:angry_at.value set from entity @e[type=item,limit=1,sort=nearest] UUID
      

        Attachments

          Activity

            People

            Assignee:
            mgatland [Mojang] Matthew Gatland
            Reporter:
            Sunstone Lucas Brisenmark
            Votes:
            7 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              CHK: