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

Entities won't unload with chunk when being detected by "execute if/unless block"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.16.2
    • None
    • Unconfirmed
    • (Unassigned)

      Entities won't unload with chunk if they are being detected by "execute if/unless block" and they can still be found using "execute if entity".

      How to reproduce it:
      1.Keep the following command running per game tick(e.g. write it in an function and add that function to tick.json): execute as @e[tag=sth] at @s unless block ~ ~ ~ stone
      2.Go to a place where isn't loaded by /forceload or in a spawn chunk.(e.g. 29999974,10,29999974)
      3.Summon an entity with tag "sth" there(the tag is just for convenience of selecting it)
      4.Leave that position and make sure the chunk there is unloaded
      5.Detect the entity with "execute if entity @e[tag=sth]"
      6.You'll find that the entity you just summoned is still loaded despite the fact that the chunk where it is was unloaded.

      The entity won't be unloaded until you stop the command in step 1 from running or quit theĀ  world.

            Unassigned Unassigned
            Huge_Black Huge_Black
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: