$item replace entity @s $(slot) with minecraft:written_book[item_model='guide/titan_war',custom_data={snc_item:1},written_book_content={'title': 'Great Titan War', 'author': 'Tobias Lichte', 'generation': 2, 'pages': ['{"text":"\\uE344","color":"white"}', '[{"text":"\\uE301","color":"white"},{"text":"1. ","color":"dark_red","bold":true},{"text":"Gunpowder","color":"black","clickEvent":{"action":"change_page","value":"3"}},"\\n",{"text":"2. ","color":"dark_red","bold":true},{"text":"Thunder","color":"black","clickEvent":{"action":"change_page","value":"4"}},"\\n",{"text":"3. ","color":"dark_red","bold":true},{"text":"Flares","color":"black","clickEvent":{"action":"change_page","value":"7"}},"\\n",{"text":"4. ","color":"dark_red","bold":true},{"text":"Cannons","color":"black","clickEvent":{"action":"change_page","value":"9"}}]', '[{"text":"\\uE345","color":"white"},{"text":"\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n \\uE300","bold":true,"clickEvent":{"action":"change_page","value":"2"}}]', '[{"text":"\\uE346","color":"white"},{"text":"\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n \\uE300","bold":true,"clickEvent":{"action":"change_page","value":"2"}}]', '[{"text":"\\uE347","color":"white"},{"text":"\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n \\uE300","bold":true,"clickEvent":{"action":"change_page","value":"2"}}]', '[{"text":"\\uE348","color":"white"},{"text":"\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n \\uE300","bold":true,"clickEvent":{"action":"change_page","value":"2"}}]', '[{"text":"\\uE349","color":"white"},{"text":"\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n \\uE300","bold":true,"clickEvent":{"action":"change_page","value":"2"}}]', '[{"text":"\\uE350","color":"white"},{"text":"\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n \\uE300","bold":true,"clickEvent":{"action":"change_page","value":"2"}}]', '[{"text":"\\uE351","color":"white"},{"text":"\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n \\uE300","bold":true,"clickEvent":{"action":"change_page","value":"2"}}]', '[{"text":"\\uE352","color":"white"},{"text":"\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n \\uE300","bold":true,"clickEvent":{"action":"change_page","value":"2"}}]', '[{"text":"\\uE386","color":"white"},{"text":"\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n \\uE300","bold":true,"clickEvent":{"action":"change_page","value":"2"}}]', '[{"text":"\\uE302","color":"white"},{"text":"\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n \\uE300","bold":true,"clickEvent":{"action":"change_page","value":"2"}}]', '[{"text":"\\uE303","color":"white"},{"text":"\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n \\uE300","bold":true,"clickEvent":{"action":"change_page","value":"2"}}]']}] 1