execute store result storage energy_manipulation:op close_book_slot.Slot int 1 run scoreboard players remove #xem.spell.book.close_books.close_book_slot xem.op 9
function energy_manipulation:spell/book/close_books/close_inv_2 with storage energy_manipulation:op close_book_slot