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

Execute if/unless entity lags behind /kill in same function

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: Minecraft 18w06a
    • Fix Version/s: Minecraft 18w07c
    • Labels:
      None
    • Confirmation Status:
      Unconfirmed

      Description

      If you run the /kill command in a function, the entities you've killed are not removed from the world until the next tick. This means you get unexpected behavior with code like the following:

      kill @e[type=armor_stand,tag=Marker]
      execute if entity @e[type=armor_stand,tag=Marker] run say Found!

      You'd expect it to not say anything because all the Marker stands are dead, but it will still output because the stands aren't removed from the world until the next tick.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              IceMetalPunk Daniel Burnett
            • Votes:
              2 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: