-
Bug
-
Resolution: Duplicate
-
None
-
1.18.20.23 Beta, 1.18.31
-
None
-
Unconfirmed
-
Multiple
Newly added hasitem target selector does't process data values in some conditions.
Using [hasitem=\{item=potion}] can only target water bottle, instead of targeting all potions. And commands like /me @s[hasitem=\{item=potion}] directly crash the game
How to reproduce 1:
- hold a potion item (not a water bottle)
- run command /testfor @s[hasitem=\{item=potion}]
- you can't find yourself
Expected:
- you can target yourself because you have a potion.
How to reproduce 2:
- hold a potion item (not a water bottle)
- run command /me [hasitem=\{item=potion}]
- Game crashes
Expected:
- you can target yourself because you have a potion.
block item's data values aren't supported, which means we can't target green wool, stone solely
- duplicates
-
MCPE-151920 The command does not evaluate the selector argument "hasitem" -> data.
- Reopened