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

Minecraft crashes if an entity picks up an item with an attribute modifier the entity doesn't possess

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 1.21
    • None
    • Unconfirmed
    • (Unassigned)

      A pig with

      {CanPickUpItems:1b}

      happened to walk over an item I dropped with an attribute modifier and the game crashed shortly after;

      ---- Minecraft Crash Report ----
      // Hey, that tickles! Hehehe!

      Time: 2024-07-17 22:47:13
      Description: Ticking entity

      java.lang.IllegalArgumentException: Can't find attribute minecraft:generic.attack_damage
      at net.minecraft.class_5132.method_26865(class_5132.java:21)
      at net.minecraft.class_5132.method_26864(class_5132.java:31)
      at net.minecraft.class_5131.method_26856(class_5131.java:73)
      at net.minecraft.class_1309.method_45326(class_1309.java:1981)
      at net.minecraft.class_1308.method_57295(class_1308.java:706)
      at net.minecraft.class_1308.method_5955(class_1308.java:691)
      at net.minecraft.class_1308.method_24523(class_1308.java:618)
      at net.minecraft.class_1308.method_5949(class_1308.java:600)
      at net.minecraft.class_1308.method_6007(class_1308.java:584)
      at net.minecraft.class_1296.method_6007(class_1296.java:128)
      at net.minecraft.class_1429.method_6007(class_1429.java:57)
      at net.minecraft.class_1309.method_5773(class_1309.java:2507)
      at net.minecraft.class_1308.method_5773(class_1308.java:372)
      at net.minecraft.class_3218.method_18762(class_3218.java:770)
      at net.minecraft.class_1937.method_18472(class_1937.java:498)
      at net.minecraft.class_3218.method_31420(class_3218.java:408)
      at net.minecraft.class_5574.method_31791(class_5574.java:54)
      at net.minecraft.class_3218.method_18765(class_3218.java:372)
      at net.minecraft.server.MinecraftServer.method_3813(MinecraftServer.java:1021)
      at net.minecraft.server.MinecraftServer.method_3748(MinecraftServer.java:912)
      at net.minecraft.class_1132.method_3748(class_1132.java:114)
      at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:697)
      at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:281)
      at java.base/java.lang.Thread.run(Thread.java:1583)

      A detailed walkthrough of the error, its code path and all known details is as follows:
      ---------------------------------------------------------------------------------------

      – Head –
      Thread: Server thread
      Stacktrace:
      at net.minecraft.class_5132.method_26865(class_5132.java:21)
      at net.minecraft.class_5132.method_26864(class_5132.java:31)
      at net.minecraft.class_5131.method_26856(class_5131.java:73)
      at net.minecraft.class_1309.method_45326(class_1309.java:1981)
      at net.minecraft.class_1308.method_57295(class_1308.java:706)
      at net.minecraft.class_1308.method_5955(class_1308.java:691)
      at net.minecraft.class_1308.method_24523(class_1308.java:618)
      at net.minecraft.class_1308.method_5949(class_1308.java:600)
      at net.minecraft.class_1308.method_6007(class_1308.java:584)
      at net.minecraft.class_1296.method_6007(class_1296.java:128)
      at net.minecraft.class_1429.method_6007(class_1429.java:57)
      at net.minecraft.class_1309.method_5773(class_1309.java:2507)
      at net.minecraft.class_1308.method_5773(class_1308.java:372)
      at net.minecraft.class_3218.method_18762(class_3218.java:770)
      at net.minecraft.class_1937.method_18472(class_1937.java:498)
      at net.minecraft.class_3218.method_31420(class_3218.java:408)
      at net.minecraft.class_5574.method_31791(class_5574.java:54)

      – Entity being ticked –
      Details:
      Entity Type: minecraft:pig (net.minecraft.class_1452)
      Entity ID: 5
      Entity Name: Pig
      Entity's Exact location: 27.55, 151.00, 11.55
      Entity's Block location: World: (27,151,11), Section: (at 11,7,11 in 1,9,0; chunk contains blocks 16,-64,0 to 31,319,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,-64,0 to 511,319,511)
      Entity's Momentum: -0.02, -0.08, -0.00
      Entity's Passengers: []
      Entity's Vehicle: null
      Stacktrace:
      at net.minecraft.class_1937.method_18472(class_1937.java:498)
      at net.minecraft.class_3218.method_31420(class_3218.java:408)
      at net.minecraft.class_5574.method_31791(class_5574.java:54)
      at net.minecraft.class_3218.method_18765(class_3218.java:372)
      at net.minecraft.server.MinecraftServer.method_3813(MinecraftServer.java:1021)
      at net.minecraft.server.MinecraftServer.method_3748(MinecraftServer.java:912)
      at net.minecraft.class_1132.method_3748(class_1132.java:114)
      at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:697)
      at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:281)
      at java.base/java.lang.Thread.run(Thread.java:1583)

      – Affected level –
      Details:
      All players: 0 total; []
      Chunk stats: 841
      Level dimension: minecraft:overworld
      Level spawn location: World: (8,-64,8), Section: (at 8,0,8 in 0,-4,0; chunk contains blocks 0,-64,0 to 15,319,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,-64,0 to 511,319,511)
      Level time: 3696918 game time, 45521 day time
      Level name: Tears of the Kingdom Testing
      Level game mode: Game mode: creative (ID 1). Hardcore: false. Commands: true
      Level weather: Rain time: 70891 (now: false), thunder time: 78588 (now: false)
      Known server brands: fabric, vanilla
      Removed feature flags:
      Level was modded: true
      Level storage version: 0x04ABD - Anvil
      Loaded entity count: 6
      Stacktrace:
      at net.minecraft.class_3218.method_8538(class_3218.java:1693)
      at net.minecraft.server.MinecraftServer.method_3813(MinecraftServer.java:1024)
      at net.minecraft.server.MinecraftServer.method_3748(MinecraftServer.java:912)
      at net.minecraft.class_1132.method_3748(class_1132.java:114)
      at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:697)
      at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:281)
      at java.base/java.lang.Thread.run(Thread.java:1583)

            Unassigned Unassigned
            Whispernyan267 Whispernyan267
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: