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

Mobs summoned by the player with equipment continue to render the item if it's removed via command in the same tick

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.16.2, 1.16.3, 1.16.4, 20w45a, 20w51a, 1.19, 23w16a, 23w17a, 23w18a, 1.20 Pre-release 1, 1.20 Pre-release 5, 1.20.1, 23w33a, 1.20.2, 23w40a, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.2, 1.21.3
    • None
    • Confirmed
    • Commands

      Mobs summoned by the player with the summon command with equipment continue to render the item if it's removed via command in the same tick.

      Steps to reproduce:

      • place a command block with the command:
        /item replace entity @e[type=minecraft:zombie] weapon.mainhand with minecraft:air
        

        and set it to Repeat and Always Active
         

      • place a second command block with the command:
        /summon minecraft:zombie ~ ~1 ~ {HandItems: [{id: "minecraft:diamond", Count: 1b}], NoAI: 1b}
      • Activate the second command block with redstone

      -> The diamond in the zombie's hand disappears as soon as the zombie spawns

      • Run the same command from the second command block as player

      -> The diamond is still rendered despite being removed from the zombie's hand (Check with /data get)

      • Relog

      -> The diamond is no longer rendered

            Unassigned Unassigned
            winauer David Winauer
            Votes:
            11 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              CHK: