$item replace entity @s $(slot) with minecraft:written_book[item_model='guide/village',custom_data={snc_item:1},written_book_content={'title': 'Villages', 'author': 'Trasty Jones', 'generation': 2, 'pages': ['{"text":"\\uE335","color":"white"}', '[{"text":"\\uE301","color":"white"},{"text":"1. ","color":"dark_red","bold":true},{"text":"Mayorship","color":"black","clickEvent":{"action":"change_page","value":"3"}},"\\n",{"text":"2. ","color":"dark_red","bold":true},{"text":"Reputation","color":"black","clickEvent":{"action":"change_page","value":"7"}},"\\n",{"text":"3. ","color":"dark_red","bold":true},{"text":"Events","color":"black","clickEvent":{"action":"change_page","value":"9"}}]', '[{"text":"\\uE336","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":"\\uE337","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":"\\uE338","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":"\\uE339","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":"\\uE340","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":"\\uE341","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":"\\uE342","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":"\\uE343","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