you need to write datapack name "datapack:recipe", `cause without it checks "minecraft:recipe". Also for recipes you need to use /recipe, not /advancement..
Not only scoreboard
Also i tried that, but nothing happened
/execute if entity @a[nbt={SelectedItem:{id:"glass_bottle"}}] run say hello
P.S. and I released your message too late )
UPD: Id must be "minecraft:glass_bottle"
Oh, that how it works.. Thank you. But player has no SelectedItem. And SelectedItemSlot + Inventory not the same. Because SelectedItem was slot-independent
It was useful on other versions( still functions on 17w43a/b). On 17w45a/b you also can't detect any non-integer player NBT tag.
Try this /execute as @e run data merge entity @s {}
You can use /execute as @e run execute store success entity @s Glowing byte 1 run say Success
My issue in 14w08a
Why is it port of `/testforblock`, when must be `/testforblocks`? (or you just lost the letter)
Because `failure with result` was normal behavior for `/testforblocks`