
# -> Enable actions
scoreboard players enable @s OverlyRealistic.Settings.Action

# -> Operate on action
execute if score @s OverlyRealistic.Settings.Action matches 1.. run \
    function overly_realistic:general/godhood/trigger_config/action_operation

# -> Give deity book
execute unless items entity @s container.* written_book[custom_data~{IsDeityButton:1b}] \
    unless items entity @s player.cursor written_book[custom_data~{IsDeityButton:1b}] \
    unless items entity @s weapon.offhand written_book[custom_data~{IsDeityButton:1b}] run \
        function overly_realistic:general/godhood/power_actions/give_deity_book