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

data command duplicates villager and piglin inventories

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Invalid
    • Affects Version/s: Minecraft 1.11.2
    • Fix Version/s: None
    • Labels:
      None
    • Confirmation Status:
      Unconfirmed

      Description

      A successful entitydata, with white text output, will duplicate the villager inventory – after the text is displayed. The white displayed text is the old value, before the duplication. To see the duplication, you have to use another entitydata command. It's best to use a failed one, with red text, as red text doesn't cause further duplication.

      1. Summon a Villager:
        • /summon Villager
      2. Give him 3 seeds:
        • /replaceitem entity @e[type=Villager,c=1] slot.villager.0 wheat_seeds 3
      3. Check his inventory with a failed, red entitydata command. Notice Count:3b (near the end of the NBT) for the 3 seeds:
        • /entitydata @e[type=Villager,c=1] {}
      4. Do it again, and notice Count:3b again. Nothing has changed yet.
        • /entitydata @e[type=Villager,c=1] {}
      5. Now use entitydata to change his name. The white text will display Count:3b, but it's lying!
        • /entitydata @e[type=Villager,c=1] {CustomName:TestGuy}
      6. Use a failed, red command to check his inventory. It shows Count:6b.
        • /entitydata @e[type=Villager,c=1] {}
      7. Do it again. Still Count:6b.
        • /entitydata @e[type=Villager,c=1] {}
      8. Use another successful entitydata. It will display Count:6b, but it's lying!
        • /entitydata @e[type=Villager,c=1] {Glowing:true}
      9. Use a failed, red command to check his inventory. It shows Count:12b.
        • /entitydata @e[type=Villager,c=1] {}
      10. Do it again. Still Count:12b.
        • /entitydata @e[type=Villager,c=1] {}

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              m0rsk m0rsk
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: