So I'm at the tail end of my project where my players can craft spell Books and upgrade them.
How it functions is that it detects for the specific book's NBT tags then gives them the new one.
My last hurdle is that apparently there is a difference in tags with a completely unopened Book and and one that have been used.
The system as is only detects books that have not been used.
All attempts to rectify this have been fruitless.
These are the Codes in question.
This is the Command to find and Tag a Written Book that has NOT been opened at all.
/tag @e[type=item,nbt={Item:{id:"minecraft:written_book", Count: 1b, tag: {pages: ["[\"\",{\"text\":\"Fire Ball\",\"color\":\"red\",\"bold\":true,\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/effect give @s minecraft:luck 2 16\"}},{\"text\":\" Summon a Fire Ball to be thrown. Projectile is very explosive in nature and known to create fires. \",\"color\":\"none\",\"bold\":false},{\"text\":\"Mana Cost: 40\",\"color\":\"aqua\",\"underlined\":true}]"], author: "Mr.Akairi", title: "BookOfFire_I"}},OnGround:1b}] add Fire1
Now when I scanned an opened book the only noticeable change in the tags I could find was near the Bottom, With it saying "Resolved"
"BookOfFire_I", resolved: 1b}}]
I have tried all forms of Fiddling and I'm at my wits end in trying to fix this as. My players need there spell books to progress and an opened book simply wont be registered unless they start from scratch all the way from beginning and that is very counter intuitive to books that are intended to grow with its user.
I don't want to just detect for just a written book with that specific name as cheating my occur.
If there is a work around or any additional information you need please ask.
So I'm at the tail end of my project where my players can craft spell Books and upgrade them.
How it functions is that it detects for the specific book's NBT tags then gives them the new one.
My last hurdle is that apparently there is a difference in tags with a completely unopened Book and and one that have been used.
The system as is only detects books that have not been used.
All attempts to rectify this have been fruitless.
These are the Codes in question.
This is the Command to find and Tag a Written Book that has NOT been opened at all.
/tag @e[type=item,nbt={Item:{id:"minecraft:written_book", Count: 1b, tag: {pages: ["[\"\",{\"text\":\"Fire Ball\",\"color\":\"red\",\"bold\":true,\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/effect give @s minecraft:luck 2 16\"}},{\"text\":\" Summon a Fire Ball to be thrown. Projectile is very explosive in nature and known to create fires. \",\"color\":\"none\",\"bold\":false},{\"text\":\"Mana Cost: 40\",\"color\":\"aqua\",\"underlined\":true}]"], author: "Mr.Akairi", title: "BookOfFire_I"}},OnGround:1b}] add Fire1
Now when I scanned an opened book the only noticeable change in the tags I could find was near the Bottom, With it saying "Resolved"
"BookOfFire_I", resolved: 1b}}]
I have tried all forms of Fiddling and I'm at my wits end in trying to fix this as. My players need there spell books to progress and an opened book simply wont be registered unless they start from scratch all the way from beginning and that is very counter intuitive to books that are intended to grow with its user.
I don't want to just detect for just a written book with that specific name as cheating my occur.
If there is a work around or any additional information you need please ask.
Thank You.
So the problem is that opened books cannot be tagged while the untouched ones can?
And what you want is that the books can be tagged whether it's opened by a player or not?
I'm more unsure if that is the case or I am not entering the command to search for the right Book.
I tried editing the command the search for Opened Books and no dice.
As is I can't tell if it simply can't locate opened books or I'm just not doing it right.
I'm more unsure if that is the case or I am not entering the command to search for the right Book.
I tried editing the command the search for Opened Books and no dice.
As is I can't tell if it simply can't locate opened books or I'm just not doing it right.
Hmm... Few more questions just to make sure:
1. Are you detecting books on the ground or on the players' hand?
2. What are you tagging (aka purpose)?
3. Do you want to only tag opened books / unopen books / books of that type (aka both)?
4. Will command be executed at the book on the ground? Or it's just simple detection?
5. Does every player have a different book of their own? Or it's just a book of real-time generated text depending on the players' tag?
So I'm at the tail end of my project where my players can craft spell Books and upgrade them.
How it functions is that it detects for the specific book's NBT tags then gives them the new one.
My last hurdle is that apparently there is a difference in tags with a completely unopened Book and and one that have been used.
The system as is only detects books that have not been used.
All attempts to rectify this have been fruitless.
These are the Codes in question.
This is the Command to find and Tag a Written Book that has NOT been opened at all.
/tag @e[type=item,nbt={Item:{id:"minecraft:written_book", Count: 1b, tag: {pages: ["[\"\",{\"text\":\"Fire Ball\",\"color\":\"red\",\"bold\":true,\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/effect give @s minecraft:luck 2 16\"}},{\"text\":\" Summon a Fire Ball to be thrown. Projectile is very explosive in nature and known to create fires. \",\"color\":\"none\",\"bold\":false},{\"text\":\"Mana Cost: 40\",\"color\":\"aqua\",\"underlined\":true}]"], author: "Mr.Akairi", title: "BookOfFire_I"}},OnGround:1b}] add Fire1
Now when I scanned an opened book the only noticeable change in the tags I could find was near the Bottom, With it saying "Resolved"
"BookOfFire_I", resolved: 1b}}]
I have tried all forms of Fiddling and I'm at my wits end in trying to fix this as. My players need there spell books to progress and an opened book simply wont be registered unless they start from scratch all the way from beginning and that is very counter intuitive to books that are intended to grow with its user.
I don't want to just detect for just a written book with that specific name as cheating my occur.
If there is a work around or any additional information you need please ask.
Thank You.
So the problem is that opened books cannot be tagged while the untouched ones can?
And what you want is that the books can be tagged whether it's opened by a player or not?
I'm more unsure if that is the case or I am not entering the command to search for the right Book.
I tried editing the command the search for Opened Books and no dice.
As is I can't tell if it simply can't locate opened books or I'm just not doing it right.
Hmm... Few more questions just to make sure:
1. Are you detecting books on the ground or on the players' hand?
2. What are you tagging (aka purpose)?
3. Do you want to only tag opened books / unopen books / books of that type (aka both)?
4. Will command be executed at the book on the ground? Or it's just simple detection?
5. Does every player have a different book of their own? Or it's just a book of real-time generated text depending on the players' tag?