-
Bug
-
Resolution: Unresolved
-
None
-
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
-
None
-
Confirmed
-
Commands
-
Normal
-
Platform
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
- is duplicated by
-
MC-193834 execute in minecraft:the_nether if entity @s[distance=...1] runs even if you are not in the nether
- Resolved
-
MC-248827 /execute in the_end if entity @s[distance=0..] passes (in the overworld and the nether)
- Resolved
-
MC-256071 @s Distance Selector Overrides Dimension
- Resolved