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

Items with enchantments ID -1 or lower crash the game



    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • Minecraft 1.7.2
    • Minecraft 1.7.2/Windows 7/Latest Java (7?)
    • Unconfirmed
    • Creative


      When you use the give command and give yourself an item enchanted with id:-1 or lower it will give you the item. But when you open your inventory and mouse over it the game will crash.


      ---- Minecraft Crash Report ----
      // Don't be sad, have a hug! <3

      Time: 11/4/13 8:03 PM
      Description: Rendering screen

      java.lang.ArrayIndexOutOfBoundsException: -1
      at abp.a(SourceFile:454)
      at bdr.a(SourceFile:549)
      at bdd.a(SourceFile:166)
      at bdu.a(SourceFile:30)
      at bdr.a(SourceFile:531)
      at bll.b(SourceFile:851)
      at azd.ad(SourceFile:780)
      at azd.e(SourceFile:704)
      at net.minecraft.client.main.Main.main(SourceFile:103)

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

      – Head –
      at abp.a(SourceFile:454)
      at bdr.a(SourceFile:549)
      at bdd.a(SourceFile:166)
      at bdu.a(SourceFile:30)
      at bdr.a(SourceFile:531)

      – Screen render details –
      Screen name: bdr
      Mouse location: Scaled: (305, 227). Absolute: (611, 250)
      Screen size: Scaled: (683, 353). Absolute: (1366, 706). Scale factor of 2

      – Affected level –
      Level name: MpServer
      All players: 1 total; [bje['Alexamon2'/1424061, l='MpServer', x=-10.61, y=238.62, z=-48.70]]
      Chunk stats: MultiplayerChunkCache: 288, 288
      Level seed: 0
      Level generator: ID 01 - flat, ver 0. Features enabled: false
      Level generator options:
      Level spawn location: World: (46,238,-50), Chunk: (at 14,14,14 in 2,-4; contains blocks 32,0,-64 to 47,255,-49), Region: (0,-1; contains chunks 0,-32 to 31,-1, blocks 0,0,-512 to 511,255,-1)
      Level time: 104079 game time, 1017 day time
      Level dimension: 0
      Level storage version: 0x00000 - Unknown?
      Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
      Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false
      Forced entities: 64 total; [rf['entity.ItemFrame.name'/1424017, l='MpServer', x=30.50, y=244.50, z=-49.94], rf['entity.ItemFrame.name'/1424016, l='MpServer', x=31.50, y=239.50, z=-49.94], rf['entity.ItemFrame.name'/1424019, l='MpServer', x=30.50, y=242.50, z=-49.94], rf['entity.ItemFrame.name'/1424018, l='MpServer', x=30.50, y=243.50, z=-49.94], rf['entity.ItemFrame.name'/1424021, l='MpServer', x=30.50, y=240.50, z=-49.94], rf['entity.ItemFrame.name'/1424020, l='MpServer', x=30.50, y=241.50, z=-49.94], rf['entity.ItemFrame.name'/1424023, l='MpServer', x=31.50, y=241.50, z=-49.94], rf['entity.ItemFrame.name'/1424022, l='MpServer', x=31.50, y=240.50, z=-49.94], rf['entity.ItemFrame.name'/1424025, l='MpServer', x=31.50, y=244.50, z=-49.94], rf['entity.ItemFrame.name'/1424024, l='MpServer', x=31.50, y=243.50, z=-49.94], rf['entity.ItemFrame.name'/1424027, l='MpServer', x=31.50, y=247.50, z=-49.94], rf['entity.ItemFrame.name'/1424026, l='MpServer', x=31.50, y=245.50, z=-49.94], rf['entity.ItemFrame.name'/1424029, l='MpServer', x=31.50, y=249.50, z=-49.94], rf['entity.ItemFrame.name'/1424028, l='MpServer', x=31.50, y=249.50, z=-49.94], bje['Alexamon2'/1424061, l='MpServer', x=-10.61, y=238.62, z=-48.70], rf['entity.ItemFrame.name'/1424031, l='MpServer', x=31.50, y=242.50, z=-49.94], rf['entity.ItemFrame.name'/1424030, l='MpServer', x=31.50, y=246.50, z=-49.94], rf['entity.ItemFrame.name'/1424000, l='MpServer', x=15.50, y=242.50, z=-49.94], rf['entity.ItemFrame.name'/1424001, l='MpServer', x=15.50, y=241.50, z=-49.94], rf['entity.ItemFrame.name'/1424002, l='MpServer', x=15.50, y=240.50, z=-49.94], rf['entity.ItemFrame.name'/1424003, l='MpServer', x=14.50, y=240.50, z=-49.94], rf['entity.ItemFrame.name'/1424004, l='MpServer', x=13.50, y=240.50, z=-49.94], rf['entity.ItemFrame.name'/1424005, l='MpServer', x=13.50, y=241.50, z=-49.94], rf['entity.ItemFrame.name'/1424006, l='MpServer', x=14.50, y=241.50, z=-49.94], rf['entity.ItemFrame.name'/1424011, l='MpServer', x=28.50, y=237.50, z=-49.94], rf['entity.ItemFrame.name'/1424012, l='MpServer', x=29.50, y=237.50, z=-49.94], rf['entity.ItemFrame.name'/1424013, l='MpServer', x=30.50, y=237.50, z=-49.94], rf['entity.ItemFrame.name'/1424014, l='MpServer', x=31.50, y=237.50, z=-49.94], rf['entity.ItemFrame.name'/1424015, l='MpServer', x=30.50, y=239.50, z=-49.94], rf['entity.ItemFrame.name'/1424051, l='MpServer', x=63.50, y=238.50, z=-52.94], rf['entity.ItemFrame.name'/1424050, l='MpServer', x=57.50, y=237.50, z=-49.94], rf['entity.ItemFrame.name'/1424049, l='MpServer', x=52.50, y=237.50, z=-49.94], rf['entity.ItemFrame.name'/1424048, l='MpServer', x=50.50, y=237.50, z=-49.94], rf['entity.ItemFrame.name'/1424053, l='MpServer', x=61.50, y=237.50, z=-49.94], rf['entity.ItemFrame.name'/1424052, l='MpServer', x=59.50, y=237.50, z=-49.94], us['Chicken'/1424034, l='MpServer', x=38.44, y=237.00, z=-119.44], rf['entity.ItemFrame.name'/1424032, l='MpServer', x=31.50, y=248.50, z=-49.94], rf['entity.ItemFrame.name'/1424033, l='MpServer', x=17.50, y=241.50, z=-49.94], rf['entity.ItemFrame.name'/1424038, l='MpServer', x=35.50, y=237.50, z=-49.94], rf['entity.ItemFrame.name'/1424039, l='MpServer', x=37.50, y=237.50, z=-49.94], rf['entity.ItemFrame.name'/1424036, l='MpServer', x=32.50, y=237.50, z=-49.94], rf['entity.ItemFrame.name'/1424037, l='MpServer', x=33.50, y=237.50, z=-49.94], rf['entity.ItemFrame.name'/1424042, l='MpServer', x=42.50, y=237.50, z=-49.94], rf['entity.ItemFrame.name'/1424043, l='MpServer', x=44.50, y=237.50, z=-49.94], vz['entity.MinecartCommandBlock.name'/1424040, l='MpServer', x=39.50, y=237.34, z=-50.47], rf['entity.ItemFrame.name'/1424041, l='MpServer', x=40.50, y=237.50, z=-49.94], vw['item.item.egg'/1424046, l='MpServer', x=34.09, y=237.13, z=-15.88], rf['entity.ItemFrame.name'/1424047, l='MpServer', x=48.50, y=237.50, z=-49.94], rf['entity.ItemFrame.name'/1424044, l='MpServer', x=46.50, y=237.50, z=-49.94], us['Chicken'/1424045, l='MpServer', x=24.63, y=237.00, z=-19.41], rf['entity.ItemFrame.name'/1423998, l='MpServer', x=13.50, y=242.50, z=-49.94], rf['entity.ItemFrame.name'/1423999, l='MpServer', x=14.50, y=242.50, z=-49.94], va['Pig'/1423996, l='MpServer', x=-9.13, y=237.00, z=-64.97], va['Pig'/1423997, l='MpServer', x=3.94, y=237.00, z=-127.78], va['Pig'/1423994, l='MpServer', x=-13.50, y=237.00, z=-120.50], us['Chicken'/1423995, l='MpServer', x=-14.50, y=237.00, z=-124.50], va['Pig'/1423992, l='MpServer', x=-36.25, y=237.00, z=-36.91], va['Pig'/1423993, l='MpServer', x=-12.09, y=237.00, z=-124.88], va['Pig'/1423991, l='MpServer', x=-44.84, y=237.00, z=-40.53], us['Chicken'/1423986, l='MpServer', x=-90.56, y=237.00, z=-71.59], vb['Sheep'/1423987, l='MpServer', x=-63.56, y=237.00, z=-129.25], us['Chicken'/1423984, l='MpServer', x=-83.50, y=237.00, z=-88.50], us['Chicken'/1423983, l='MpServer', x=-82.63, y=237.00, z=-86.56], us['Chicken'/1423982, l='MpServer', x=-84.50, y=237.00, z=-90.50]]
      Retry entities: 0 total; []
      Server brand: vanilla
      Server type: Integrated singleplayer server
      at biz.a(SourceFile:284)
      at azd.b(SourceFile:1951)
      at azd.e(SourceFile:713)
      at net.minecraft.client.main.Main.main(SourceFile:103)

      – System Details –
      Minecraft Version: 1.7.2
      Operating System: Windows 7 (x86) version 6.1
      Java Version: 1.7.0_10, Oracle Corporation
      Java VM Version: Java HotSpot(TM) Client VM (mixed mode, sharing), Oracle Corporation
      Memory: 156886752 bytes (149 MB) / 518979584 bytes (494 MB) up to 518979584 bytes (494 MB)
      JVM Flags: 2 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx512M
      AABB Pool Size: 234 (13104 bytes; 0 MB) allocated, 231 (12936 bytes; 0 MB) used
      IntCache: cache: 0, tcache: 0, allocated: 13, tallocated: 95
      Launched Version: 1.7.2
      LWJGL: 2.9.0
      OpenGL: Intel(R) HD Graphics Family GL version 3.1.0 - Build, Intel
      Is Modded: Probably not. Jar signature remains and client brand is untouched.
      Type: Client (map_client.txt)
      Resource Packs: [Defscape 64x 2.4.zip]
      Current Language: English (US)
      Profiler Position: N/A (disabled)
      Vec3 Pool Size: 92 (5152 bytes; 0 MB) allocated, 82 (4592 bytes; 0 MB) used
      Anisotropic Filtering: Off (1)


      • Get a command block (/give @p 137)
      • Place the command block and put a button/lever on it
      • Put in the command:

        give @p bow 1 1 {ench:[

        Unknown macro: {id}


      • Flip the lever
        Testing this glitch in the past few minutes I discovered these two things:
      • Doing this clears the command block
      • Shooting an animal with this bow before glitchin' out crashes the game aswell




            Unassigned Unassigned
            Alexamon Alexamon PCGenius
            0 Vote for this issue
            1 Start watching this issue