
# -> If player is holding a writable item then return and move positions
execute if items entity 00000001-0000-002b-0000-00010000002b contents *[custom_data~{or_can_write_on_scribing_table:1b}] run \
    return run \
        function overly_realistic:general/custom_blocks/scribing_table/interactions/int_next_position

# -> If table has no paper then return
execute if entity @s[tag=!OverlyRealistic.Block.ScribingTable_HasPaper] run \
    return fail

# -> Sound
playsound overlyrealistic:block.scribing_table.paper_complete block @a ~ ~ ~ 0.5 1

# -> Drop paper
loot spawn ~ ~1 ~ loot overly_realistic:blocks/scribing_table_items/paper_drop

# -> Remove data
function overly_realistic:general/custom_blocks/scribing_table/interactions/int_remove_data
