scoreboard objectives add sgrave dummy
scoreboard objectives add sgrave.day dummy
scoreboard objectives add sgrave.list trigger
scoreboard objectives add sgrave.delete trigger
scoreboard objectives add sgrave.loot trigger
scoreboard objectives add sgrave.deleting dummy
scoreboard objectives add sgrave.del_num dummy
scoreboard objectives add sgrave.settings dummy
scoreboard objectives add sgrave.rulesCheck dummy

scoreboard players set #constant.6 sgrave 6
scoreboard players set #constant.25 sgrave 25
scoreboard players set #constant.405 sgrave 405
scoreboard players set #constant.3600 sgrave 3600
scoreboard players set #constant.45 sgrave 45
scoreboard players set #constant.1625 sgrave 1625
scoreboard players set #constant.22200 sgrave 22200
scoreboard players set #constant.10 sgrave 10
scoreboard players set #constant.100 sgrave 100
scoreboard players set #constant.1 sgrave 1

execute unless data storage sgrave:settings xpPercentage run data modify storage sgrave:settings xpPercentage set value 100
execute unless data storage sgrave:settings looting run data modify storage sgrave:settings looting set value 0
execute unless data storage sgrave:settings deleting run data modify storage sgrave:settings deleting set value 0
execute unless data storage sgrave:settings graveLimit run data modify storage sgrave:settings graveLimit set value 20
execute unless data storage sgrave:settings Glowing run data modify storage sgrave:settings Glowing set value 0

execute unless score #notifications.immediate_respawn sgrave.settings matches 0..1 run scoreboard players set #notifications.immediate_respawn sgrave.settings 0

gamerule keep_inventory true
gamerule send_command_feedback false