mojira.dev
MC-123410

Marker armor stand cannot find itself with 0 as distance selector argument

The bug

Marker armor stands cannot find themselves when a value of 0 is used as distance selector argument value.

How to reproduce

  1. Summon a non-marker armor stand

    /summon armor_stand ~ ~ ~ {Tags:["non_marker"]}
  2. Have the armor stand use a distance=0 selector

    /execute as @e[type=armor_stand,tag=non_marker] at @s run say @s[distance=0]
  3. Summon a marker armor stand

    /summon armor_stand ~ ~ ~ {Marker:1b,Tags:["marker"]}

    ✔ The armor stand finds itself as expected

  4. Have the armor stand use a distance=0 selector

    /execute as @e[type=armor_stand,tag=marker] at @s run say @s[distance=0]

    ❌ The armor stand does not find itself

Linked issues

Comments 2

migrated

This is not a duplicate of MC-88533 because this also affects area_effect_clouds!

  1. Summon an aec

    /summon area_effect_cloud ~ ~ ~ {CustomName:"\"statsTest\"",Duration:2147483647}
  2. Print all entities that are not within radius 0 of themselfs:

    /execute as @e at @s unless entity @e[distance=0] run say @s
migrated

@@unknown: please create a new ticket for AECs.

marcono1234

(Unassigned)

Unconfirmed

Marker, armor_stand, distance, selector

Minecraft 17w50a

Retrieved