Question about command blocks
In my world I'm making these little "Teleporting ruins" scattered everywhere, and in each ruin I want a way to teleport between them, but I don't want to just lay out a bunch of buttons connected to command blocks with signs. Is there a way I could use a book as a teleporting tool? Like if I were to write the name of a city I want to teleport to, is there a way I can make a command block scan for what's written in the book and teleport the player accordingly? Or even have the player put the book into a lectern and have a command block scan for the written text through there. I'm just looking for a unique way to teleport players while keeping it small and concise.
Commentaires
* Downvote this comment if this post is poor quality or does not fit the purpose of r/Minecraft
* Downvote this comment *and report the post* if it breaks the [rules](https://www.reddit.com/r/Minecraft/wiki/rules)
----
(*Vote has already ended*)
https://www.reddit.com/r/MinecraftCommands/comments/1i0bgwv/clickable_text_in_a_book_and_quill_1211/
https://mcstacker.net/
> `/give @p written_book[written_book_content={title:"Test",author:"",pages:[{"text":"City 1","click_event":{"action":"run_command","command":"/tp 21 72 -339"}}]}] 1`
Notes:
> run_command: Has command entered in chat as though the player executed it themselves.