Dynamic Book Creation
TLDR question: Can I dynamically make a written book update using commands?
Long winded explanation and random thoughts:
I am making the 3rd iteration of my spell system. I am mulling over different ways to implement the levelling system. In my previous system, I used books to unlock spells and level up the player. The issue with that is that the books were always static and I had to type like 40 of them to make the system work. For this system, I am aiming to make everything way more dynamic and formulaic. So I am wondering if making dynamic custom books is possible before I dig into making it.
The way the player gets the book is through the /trigger help menu. However, before, where I just had a bunch of premade books, I want to have 1 book and maybe I could, instead of using the give command, I summon the book as an item at the player's feet and then in the same function, I could run a BUNCH of data modify commands that basically build the book based off of the player's tags.
This way, if the player has unlocked certain things, I can disable the unlock scripts and color them differently.
The only problem I can see is tracking the inserts in the data modify... I would assume that every page is going to have at least 8 entries on it. So the data modify command cannot interfere with what was previously put in there on the page. Is that possible?
Continue to help post