Yes, it works. I solved it by running execute as @e[limit=1,sort=arbitrary] run item modify entity @s hotbar.0 test:set_name_selector. I understand why the command fails, I just think that requiring workarounds like this is pretty convoluted and unintuitive.
Yes, it works. I solved it by running
execute as @e[limit=1,sort=arbitrary] run item modify entity @s hotbar.0 test:set_name_selector
. I understand why the command fails, I just think that requiring workarounds like this is pretty convoluted and unintuitive.I guess it is working as intended though.