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


    • Icon: Bug Bug
    • Resolution: Fixed
    • 20w45a
    • 1.16.2
    • None
    • Confirmed
    • Commands, Crash
    • Very Important

      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

            mgatland [Mojang] Matthew Gatland
            Sunstone Lucas Brisenmark
            7 Vote for this issue
            3 Start watching this issue