$item replace entity @s $(slot) with minecraft:written_book[item_model='guide/infect',custom_data={snc_item:1},written_book_content={'title': 'Shifters', 'author': 'Dano Schwarz', 'generation': 2, 'pages': ['{"text":"\\uE353","color":"white"}', '[{"text":"\\uE301","color":"white"},{"text":"1. ","color":"dark_red","bold":true},{"text":"Shifters Powers","color":"black","clickEvent":{"action":"change_page","value":"3"}},"\\n",{"text":"2. ","color":"dark_red","bold":true},{"text":"Royal Blood","color":"black","clickEvent":{"action":"change_page","value":"5"}},"\\n",{"text":"2. ","color":"dark_red","bold":true},{"text":"Infect Humans","color":"black","clickEvent":{"action":"change_page","value":"7"}},"\\n",{"text":"3. ","color":"dark_red","bold":true},{"text":"Creative","color":"black","clickEvent":{"action":"change_page","value":"10"}}]', '[{"text":"\\uE354","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":"\\uE355","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":"\\uE356","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":"\\uE357","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":"\\uE358","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":"\\uE359","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":"\\uE360","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":"\\uE361","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":"\\uE362","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":"\\uE363","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