I am currently making a map in which players can teleport between specific points using a book, I am no way a master redstoner, and in fact this map's original purpose was nothing more than a way for me to learn to redstone, on to the point though. Is there any easy way to change the trigger feedback for being disabled and/or being invalid? Or is there at least a way to disable it? Or perhaps there is a simpler way to accomplish what I described above? Up until now, when having an issue, I have been able to find the answer somewhere throughout the minecraft community, but I have been unable to find answers in the wiki, and have had the same luck browsing the forums. None of the default gamerules seem to work, and I say 'easy' because I would really rather not make a custom resource pack just for a custom language designed only to change that. Any help is appreciated.
First of all you need the trigger objective for the place you are tping to:
/scoreboard objectives add <name of objective> trigger <visible name of objective> (the visible name and name should be the same for less confusion)
and then, you will need to enable the trigger by doing:
/scoreboard players enable @a <name of objective>
IMPORTANT: If you want to enable it all the time which i assume thats what you want, You have to connect a very fast clock (one tick recommended) to it.
then you will need to get a written book with a clickevent:
/give @p written_book 1 0 {pages:["[\"\",{\"text\":\"Where you are tping to\",\"color\":\"dark_red\",\"bold\":\"true\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger <objective name> set 1\"}}]"],title:Book,author:NoahGCM}
If you want more then one place to teleport inside the book, you will probably need to use an external resource. I recommend using a book generator downloaded from the internet or on a website.
After that, You will have to hook another clock (1 tick recommended, again) to this command:
Thank you for the help, but that wasn't my problem, I had already done most of that, with a few modifications in order to fit the scenario, but my issue was that if the tp wasn't enabled, which it is whenever the player isn't at a few specific points, then the command gives the feedback "Trigger <objective> is not enabled" I just wanted to know if there was any simple way to change or remove the feedback upon failure.
Rollback Post to RevisionRollBack
You know, I have never built a fully functioning piece of fruit, not once!
.....Ohhhh I thought you wanted to know how to do it... Anyways to disable the output, It is very simple actually. Just do /gamerule commandBlockOutput false and do /gamerule sendCommandFeedback false. I have the same problem in my world because i have an NPC that i can talk to with a trigger command and it says it in the chat but i fixed it
LOL i should've red the question more carefully but anyways i hope that helps
/scoreboard objectives add <name of objective> trigger <visible name of objective> (the visible name and name should be the same for less confusion)
and then, you will need to enable the trigger by doing:
/scoreboard players enable @a <name of objective>
IMPORTANT: If you want to enable it all the time which i assume thats what you want, You have to connect a very fast clock (one tick recommended) to it.
then you will need to get a written book with a clickevent:
/give @p written_book 1 0 {pages:["[\"\",{\"text\":\"Where you are tping to\",\"color\":\"dark_red\",\"bold\":\"true\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/trigger <objective name> set 1\"}}]"],title:Book,author:NoahGCM}
If you want more then one place to teleport inside the book, you will probably need to use an external resource. I recommend using a book generator downloaded from the internet or on a website.
After that, You will have to hook another clock (1 tick recommended, again) to this command:
/tp @p[score_<objective name>_min=1] <coordinates>
and then you are done! If you want to do more places to tp, just do the exact same thing except with a different objective.
If this is too hard for you to make, then i would probably recommend just using pressure plates that tp you somewhere instead of a book.
P.S. This also works on signs!!
LOL i should've red the question more carefully but anyways i hope that helps