Cross-dimensional @s selector succeeds despite world-binding parameters
The bug
World-binding selector arguments x y z dx dy dz distance will restrict selector results to entities in the dimension the command context is executing from. However @s is not restricted, and it will be found regardless of the presence of world-binding arguments if the sender dimension differs from the context dimension.
How to reproduce
- Enter the overworld.
- /execute in the_nether unless entity @a[x=0]
→
Test passed - /execute in the_nether unless entity @s[x=0]
→
Test failed, count: 1
2018-07-15, 07:21 AM
2023-09-29, 07:29 AM
17
13
Minecraft 1.13-pre8 - 1.20.2
Minecraft 1.13-pre8, Minecraft 1.13, Minecraft 18w30a, Minecraft 18w32a, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 18w44a, Minecraft 19w02a, 1.14.4, 19w40a, 19w46b, 20w17a, 1.16 Pre-release 5, 1.16.1, 20w27a, 1.16.3, 1.16.4, 20w49a, 21w03a, 21w06a, 1.18.1, 1.19.2, 1.20.2
-