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

"[SEVERE] Item entity # has no item?" is spammed in the console and items appear as stone for invalid IDs or on initial drop

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Minecraft 16w32a
    • Minecraft 1.5, Minecraft 1.5.1, Minecraft 1.5.2, Snapshot 13w21b, Snapshot 13w22a, Snapshot 13w23a, Snapshot 13w23b, Snapshot 13w24a, Snapshot 13w24b, Snapshot 13w25a, Snapshot 13w25b, Minecraft 1.6.2, Minecraft 1.6.4, Minecraft 13w38a, Minecraft 13w41b, Minecraft 13w42a, Minecraft 13w42b, Minecraft 13w43a, Minecraft 1.7, Minecraft 1.7.1, Minecraft 1.7.2, Minecraft 1.7.4, Minecraft 14w20b, Minecraft 14w29b, Minecraft 14w33a, Minecraft 14w33c, Minecraft 1.8-pre2, Minecraft 1.8, Minecraft 1.8.1, Minecraft 1.8.4, Minecraft 1.8.7, Minecraft 1.8.8, Minecraft 15w36d, Minecraft 15w47c, Minecraft 15w49b, Minecraft 1.9 Pre-Release 1, Minecraft 1.9 Pre-Release 2, Minecraft 1.9 Pre-Release 3, Minecraft 1.9, Minecraft 1.9.1 Pre-Release 3, Minecraft 1.9.2, Minecraft 1.10, Minecraft 1.10.2
    • None
    • Confirmed
    • Creative

      The Server is spammed with Item entity number has no item!? until it crashes. ~~It is the spawners because it stops when i break them. The spawners are custom and spawn armour and weapons. A copy of the spawner is in the attachments and a crash report.


      Confirmed for 13w41b with the following command, in a command block:

      /setblock ~ ~1 ~ minecraft:mob_spawner 1 replace {EntityId:Item,SpawnData:{Health:5,Age:0,Item:{id:7,Damage:0,Count:1}}}

      Observe the spam in the Development Console of the launcher, or the server console if you perform this on a server.

      The message is now of the form:

      Client> [02:10:41] [Client thread/ERROR]: Item entity 9740 has no item?!

      Marcono says:

      Like I wrote already, the problem is the getEntityItem() method (MCP 1.8 name). Minecraft expects it to be null when no item data is stored but this method is required to return an ItemStack for rendering (else the client will crash). Because of this currently it returns a new ItemStack if the stored ItemStack is null (and prints the "Item entity # has not item?!" error message).

        1. After install of Optifine.txt
          61 kB
          Connor Brice
        2. BadSpawner.schematic
          2 kB
          frazer smith
        3. itemsPirate.schematic
          2 kB
          WolfieMario
        4. Kanegasi's log for MC-11834.txt
          7 kB
          Kanegasi
        5. latest.log
          5 kB
          Syl2010
        6. server.log
          4 kB
          cblondeboy
        7. server.log
          14 kB
          cblondeboy

            Unassigned Unassigned
            hero8888 frazer smith
            Votes:
            58 Vote for this issue
            Watchers:
            23 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: