
# -> Tag player
tag @s add OverlyRealistic.Player.IsDeity

# -> Update gamemode
gamemode creative @s

# -> Set new actionbar
title @s actionbar {text:"SET SELF AS DEITY!",color:"#8ed5ff",bold:true}

# -> Clear specialized data
function overly_realistic:players/custom_data/clear_general_data
function overly_realistic:players/custom_data/clear_random_data

# -> Set buttons
#item replace entity @s inventory.0 with prismarine_crystals[written_book_content={title:"Deity Book",author:"Yourself",generation:0,pages:[{"text":"[Give all powers]\n\n","bold":true,"hover_event":{"action":"show_text","value":[{"text":">Click to receive all the deity power items"}]},"click_event":{"action":"run_command","command":"/function overly_realistic:general/godhood/power_actions/give_all_powers_0"}}]},custom_data={IsDeityButton:1b}]
