playsound item.book.page_turn @s
execute as @s[hasitem={item=cubed:book_page_0_1,location=slot.weapon.mainhand}] run scriptevent cubed:delay 1 "/replaceitem entity @s[hasitem={item=cubed:book_page_0_1,location=slot.weapon.mainhand}] slot.weapon.mainhand 0 cubed:book_page_2_3
execute as @s[hasitem={item=cubed:book_page_2_3,location=slot.weapon.mainhand}] run scriptevent cubed:delay 1 "/replaceitem entity @s[hasitem={item=cubed:book_page_2_3,location=slot.weapon.mainhand}] slot.weapon.mainhand 0 cubed:book_page_4_5
execute as @s[hasitem={item=cubed:book_page_4_5,location=slot.weapon.mainhand}] run scriptevent cubed:delay 1 "/replaceitem entity @s[hasitem={item=cubed:book_page_4_5,location=slot.weapon.mainhand}] slot.weapon.mainhand 0 cubed:book_page_6_7
execute as @s[hasitem={item=cubed:book_page_6_7,location=slot.weapon.mainhand}] run scriptevent cubed:delay 1 "/replaceitem entity @s[hasitem={item=cubed:book_page_6_7,location=slot.weapon.mainhand}] slot.weapon.mainhand 0 cubed:book_page_8_9
execute as @s[hasitem={item=cubed:book_page_8_9,location=slot.weapon.mainhand}] run scriptevent cubed:delay 1 "/replaceitem entity @s[hasitem={item=cubed:book_page_8_9,location=slot.weapon.mainhand}] slot.weapon.mainhand 0 cubed:book_page_10_11
execute as @s[hasitem={item=cubed:book_page_10_11,location=slot.weapon.mainhand}] run scriptevent cubed:delay 1 "/replaceitem entity @s[hasitem={item=cubed:book_page_10_11,location=slot.weapon.mainhand}] slot.weapon.mainhand 0 cubed:book_page_12_13
execute as @s[hasitem={item=cubed:book_page_12_13,location=slot.weapon.mainhand}] run scriptevent cubed:delay 1 "/replaceitem entity @s[hasitem={item=cubed:book_page_12_13,location=slot.weapon.mainhand}] slot.weapon.mainhand 0 cubed:book_page_14_15
execute as @s[hasitem={item=cubed:book_page_14_15,location=slot.weapon.mainhand}] run scriptevent cubed:delay 1 "/replaceitem entity @s[hasitem={item=cubed:book_page_14_15,location=slot.weapon.mainhand}] slot.weapon.mainhand 0 cubed:book_page_16_17
execute as @s[hasitem={item=cubed:book_page_16_17,location=slot.weapon.mainhand}] run scriptevent cubed:delay 1 "/replaceitem entity @s[hasitem={item=cubed:book_page_16_17,location=slot.weapon.mainhand}] slot.weapon.mainhand 0 cubed:book_page_18_19
execute as @s[hasitem={item=cubed:book_page_18_19,location=slot.weapon.mainhand}] run scriptevent cubed:delay 1 "/replaceitem entity @s[hasitem={item=cubed:book_page_18_19,location=slot.weapon.mainhand}] slot.weapon.mainhand 0 cubed:book_page_20_21
execute as @s[hasitem={item=cubed:book_page_20_21,location=slot.weapon.mainhand}] run scriptevent cubed:delay 1 "/replaceitem entity @s[hasitem={item=cubed:book_page_20_21,location=slot.weapon.mainhand}] slot.weapon.mainhand 0 cubed:book_page_0_1