$item replace entity @s $(slot) with minecraft:written_book[item_model='guide/shipload',custom_data={snc_item:1},written_book_content={'title': "Cart's Shipload", 'author': 'Marvin Mallmeister', 'generation': 2, 'pages': ['{"text":"\\uE311","color":"white"}', '[{"text":"\\uE301","color":"white"},{"text":"1. ","color":"dark_red","bold":true},{"text":"Barrels","color":"black","clickEvent":{"action":"change_page","value":"3"}},"\\n",{"text":"2. ","color":"dark_red","bold":true},{"text":"Turrets","color":"black","clickEvent":{"action":"change_page","value":"9"}}]', '[{"text":"\\uE312","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":"\\uE313","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":"\\uE314","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":"\\uE315","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"}}]', '[{"text":"\\uE316","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":"\\uE317","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":"\\uE318","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":"\\uE319","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