So, in version 1.12 we can easily detect if a player has nothing selected in his hand by just using the nbt {SelectedItem:{}}
.
I realise that it is no longer working in version 1.13 +. I tried to replace it with {nbt=SelectedItem:{id:“”}}
, but it does not work. Does anyone know how to solve it? I'm currently working on an Antman function datapack, I really need that command to make it functionable.