I'm trying to have a lectern teleport me when I place the correctly named book on its top. So far, I've tried using this command:
/execute if data block 50005 10 50009 Book.tag[{title:"Bookname"}] run tp 100 10 100
If I remove the last part of the path specifying the string, the last "run" command does execute, so I'm getting the feeling that "execute if data" only checks if the target has a Tag, rather than checking if the said tag has the requested value. Am I using the wrong command or the wrong selector?
I'm running version: 1.14.4