Click actions don't want to work in my Custom books
Hello Hello! So I am working on a datapack for a MC series I am hosting, and I have 3 custom books in the datapack. However, 2 of the 3 book's click actions don't wanna work when clicked.
- The Grey Book:
This book is supposed to give the person regeneration for 5 minutes when they click "USE REGEN".
Continue to help post# Give the player the gray book give @p[team=!0life, tag=!boogeyman, tag=has_greyBook] written_book{CustomModelData:2, pages:['["",{"text":"You have been given...\\n\\n"},{"text":"The Book of Neutrality","bold":true,"color":"dark_gray"},{"text":"\\n\\nYou will be given 5 minutes of regeneration whenever you choose to use it! \\n\\n\\n","color":"reset"},{"text":" \\u0020 \\u0020 \\u0020","bold":true,"color":"blue"},{"text":"USE REGEN","bold":true,"color":"blue","clickEvent":{"action":"run_command","value":"/function lifelabyrinth:greyregen"}}]'],title:"The Book of Neutrality",author:nojniuihubiavv}
the function "lifelabyrinth:greyregen" is supposed to be called, which has this code:
#give regen after click effect give @p[tag= has_greyBook] regeneration 300 2 true
However, the book formats correctly, but the click action doesn't work and call the regen on the player when they want to use it.
This is the first book I need help with out of 2, so if anyone can help me with this one first, since it's simpler, it would be much appreciated! Thanks :D