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

Mobs cannot pick up items if mobGriefing is false, and custom spawners can't force them to

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Works As Intended
    • None
    • Minecraft 1.4.4, Minecraft 1.4.6, Minecraft 1.4.7, Snapshot 13w01a, Snapshot 13w01b, Snapshot 13w05b, Minecraft 1.5, Minecraft 1.5.2, Snapshot 13w19a, Snapshot 13w21a, Snapshot 13w24b, Snapshot 13w25a, Snapshot 13w25b, Snapshot 13w25c, Minecraft 1.6, Minecraft 1.6.1, Minecraft 1.6.2, Minecraft 13w37b, Minecraft 1.7, Minecraft 1.7.1, Minecraft 1.7.4, Minecraft 14w04b, Minecraft 1.7.5, Minecraft 14w11b, Minecraft 1.7.6-pre2
    • Confirmed

      What I expected to happen was
      Mobs with CanPickUpLoot=1 would pick up dropped items.
      Mob spawners with CanPickUpLoot=1 in the SpawnData would be able to spawn mobs with CanPickUpLoot=1.

      What actually happened was
      No mob could pick up items, regardless of the state of CanPickUpLoot.
      Custom spawners could not even spawn mobs with CanPickUpLoot=1.

      Steps to reproduce, without external editors:
      1. Make sure you are in Hard mode and Creative mode, with the gamerule mobGriefing set to false.
      2. Make a small pit, and spawn a massive number of zombies, skeletons, and/or pigmen in it.
      3. Drop some items, weapons, and/or armor into the pit
      4. Chances are you can't tell if anything's been picked up... Fly or teleport yourself about 200 blocks above the pit.
      5. Fall back down to the pit.
      6. Observe that all mobs have despawned, and all items remain where you dropped them.

      Had any mob picked up an item, it would not have despawned, and the item would not remain on the ground.

      Steps to reproduce, the faster and less ambiguous way:
      1. Spawn a zombie, pigman, or skeleton.
      2. Save and quit your world.
      3. Open the world in MCedit.
      4. Find the mob, select the area it is in, and export to a schematic.
      5. With NBTedit, set its CanPickUpLoot to 1.
      6. Import the schematic back with MCedit.
      7. Save the world, and return to the world in Minecraft.
      8. Observe that the mob does not pick up any items you throw at it.

      I've attached a schematic of a CanPickUpLoot=1 zombie and a spawner which is meant to spawn such mobs (but for some reason, they still spawn with CanPickUpLoot=0, which is rather redundant considering CanPickUpLoot=1 doesn't make a difference). Make sure you have mobGriefing set to false before trying this.

        1. 1. Preparation.jpg
          318 kB
          Chalmes (Jon)
        2. 2. Zombies holding diamond swords.jpg
          309 kB
          Chalmes (Jon)
        3. 3. Results after flying away.jpg
          289 kB
          Chalmes (Jon)
        4. mob.schematic
          0.7 kB
          WolfieMario
        5. spawner.schematic
          1 kB
          WolfieMario

            Unassigned Unassigned
            wolfiemario WolfieMario
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: