
Continue editing the existing **Grimórdios** datapack. DO NOT recreate the project from scratch. DO NOT remove, replace, or change anything that already works. DO NOT remove any existing books, spells, rituals, knowledge, entities, systems, or mechanics. Use the existing project as the base and continue editing it. Minecraft Java Edition: **1.21.6** Pack format: **80** Namespace: **grimordios** Use the existing working item-identification system and the exact Minecraft Java 1.21.6 component syntax already used by this project. # 1. CREATE /function grimordios:give_magicos Create a separate function: `/function grimordios:give_magicos` This function must give the player **ALL 22 magical grimoires**: 1. Tomo do Abismo 2. Grimório da Luz 3. Códice dos Mortos 4. Livro das Almas 5. Grimório das 7 Maldições 6. Grimório da Cura 7. Grimório da Água 8. Grimório do Silêncio 9. Grimório dos Encantamentos 10. Grimório da Invocação 11. Tomo do Tempo 12. Grimório da Lava 13. Livro das Criações 14. Quantum da Fome 15. Tomo da Ruptura 16. Tomo da Riqueza 17. Segundo Livro das Criações 18. Grimório dos Raios 19. Tomo da Visão 20. Tomo da Mansão 21. Grimório do Som 22. Códice de Sangue Do not duplicate any book. Do not include Knowledge, Entity, Ritual, or Totem books in this function. # 2. CREATE /function grimordios:give_nao_magicos Create a separate function: `/function grimordios:give_nao_magicos` This function must give the player **ALL books that are NOT magical grimoires**. This includes: * all Knowledge books; * all Entity books; * all Ritual books; * all Totem books. Entity books are part of the Knowledge category. IMPORTANT: Do NOT include any of the 22 magical grimoires in this function. The function must give every existing non-magical book in the project. Do not forget any existing Knowledge, Entity, Ritual, or Totem book. # 3. UPDATE /function grimordios:give_all Update the existing: `/function grimordios:give_all` It must give EVERYTHING in the project: * all 22 magical grimoires; * all Knowledge books; * all Entity books; * all Ritual books; * all Totem books. `give_all` must effectively contain both groups: `give_magicos` and `give_nao_magicos` Avoid duplicate books. # 4. IMPORTANT — PRESERVE THE EXISTING PROJECT Keep the existing **Tomo do Abismo** unchanged. Keep every existing book unchanged. Keep every existing spell unchanged. Keep every existing ritual unchanged. Keep every existing Knowledge book unchanged. Keep every existing Entity book unchanged. Keep every existing Totem unchanged. Keep the existing mana system unchanged. Keep the existing cooldown system unchanged. Keep the existing book-identification system unchanged. Keep all existing working files unchanged unless a change is strictly necessary to make these three functions work. # 5. DO NOT CHANGE GAMEPLAY Do NOT implement new spells. Do NOT modify existing spell mechanics. Do NOT modify existing rituals. Do NOT modify mana. Do NOT modify cooldowns. Do NOT redesign the books. Do NOT rename existing books. Do NOT change existing custom_data identifiers. The ONLY purpose of this update is to create/update these three commands: `/function grimordios:give_magicos` `/function grimordios:give_nao_magicos` `/function grimordios:give_all` # 6. FINAL CHECK Before finishing, verify that: * `grimordios:give_magicos` exists and works; * it gives exactly the 22 magical grimoires; * `grimordios:give_nao_magicos` exists and works; * it gives every non-magical book; * no magical grimoires appear in `give_nao_magicos`; * `grimordios:give_all` gives everything; * no book is duplicated unnecessarily; * all function references are valid; * all commands use Minecraft Java 1.21.6 syntax; * no existing working functionality was removed or broken. Do not recreate the datapack. Only make the requested update.