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

Archer entity cannot shot when updated

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 1.21
    • None
    • Unconfirmed
    • (Unassigned)

      Entities with a bow (skeleton, booged, stray) cannot shoot if they are updated with a command each before they finish charging their shot.

      Reproduce:

      • Put a repeating command_block with the command:
        • data modify entity @n[type=skeleton] CustomNameVisible set value 1
      • Summon a skeleton
      • See that he doesn't charge the bow

      Tested:

      • The entities equipped with crossbow are not affected
      • If you use an impulse command block with a redstone loop you can see that the skeleton starts charging and gets interrupted
      • The data modified can be anything even not existing data (like `foo`)
      • The behavior is the same if we uses execute store instead of data modify: (with some:storage = {value:1b})
        • execute as @e[type=skeleton] store result entity @s foo int 1 run data get storage some:storage value

            Unassigned Unassigned
            branyoto branyoto
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: