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

    • Icon: Bug Bug
    • Resolution: Fixed
    • Minecraft 18w07c
    • Minecraft 18w06a
    • None
    • Unconfirmed

      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.

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

              Created:
              Updated:
              Resolved: