tellraw @s ["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",{"text":"\ua000","font":"manic:tooltip","color":"white"}," ",{"translate":"pack.manic","bold":true,"color":"#106050"},{"text":" >> ","color":"#86a697"},{"translate":"settings.nucleus.gamerules","color":"#a9ebbd"},"\n",{"translate":"menu.nucleus.return","italic": true,"color":"#86a697","clickEvent":{"action":"run_command","value":"/function manic:commands/menu"}},"\n"]

# Legacy Sanity
execute store result score #legacy_sanity manic.dummy run data get storage manic:storage root.gamerules.legacy_sanity
execute if score #legacy_sanity manic.dummy matches 0 run tellraw @s {"color":"#86a697","translate":"gamerules.manic.entry","with":[{"translate":"gamerules.manic.legacy_sanity","with":[{"color":"#e06d53","text":"⚠","hoverEvent":{"action":"show_text","contents":[{"translate":"gamerules.manic.legacy_sanity.warning","color":"gray"}]}}]},{"translate":"settings.nucleus.false","color":"#ebb5a9"}],"hoverEvent":{"action":"show_text","contents":[{"translate":"gamerules.manic.legacy_sanity.description","color":"gray"},"\n\n",{"translate":"settings.nucleus.default","color":"yellow","with":[{"translate":"settings.nucleus.true"}]}]},"clickEvent":{"action":"run_command","value":"/function manic:entity/player/gamerules/legacy_sanity"}}
execute if score #legacy_sanity manic.dummy matches 1 run tellraw @s {"color":"#86a697","translate":"gamerules.manic.entry","with":[{"translate":"gamerules.manic.legacy_sanity","with":[{"color":"#106050","text":"⚠","hoverEvent":{"action":"show_text","contents":[{"translate":"gamerules.manic.legacy_sanity.warning","color":"gray"}]}}]},{"translate":"settings.nucleus.true","color":"#a9ebbd"}],"hoverEvent":{"action":"show_text","contents":[{"translate":"gamerules.manic.legacy_sanity.description","color":"gray"},"\n\n",{"translate":"settings.nucleus.default","color":"yellow","with":[{"translate":"settings.nucleus.true"}]}]},"clickEvent":{"action":"run_command","value":"/function manic:entity/player/gamerules/legacy_sanity"}}

# Night Sanity Drain
execute store result score #night_sanity_drain manic.dummy run data get storage manic:storage root.gamerules.night_sanity_drain
execute if score #legacy_sanity manic.dummy matches 1 if score #night_sanity_drain manic.dummy matches 0 run tellraw @s {"color":"#86a697","translate":"gamerules.manic.extension","with":[{"translate":"gamerules.manic.entry","with":[{"translate":"gamerules.manic.night_sanity_drain"},{"translate":"settings.nucleus.false","color":"#ebb5a9"}]}],"hoverEvent":{"action":"show_text","contents":[{"translate":"gamerules.manic.night_sanity_drain.description","color":"gray"},"\n\n",{"translate":"settings.nucleus.default","color":"yellow","with":[{"translate":"settings.nucleus.false"}]}]},"clickEvent":{"action":"run_command","value":"/function manic:entity/player/gamerules/night_sanity_drain"}}
execute if score #legacy_sanity manic.dummy matches 1 if score #night_sanity_drain manic.dummy matches 1 run tellraw @s {"color":"#86a697","translate":"gamerules.manic.extension","with":[{"translate":"gamerules.manic.entry","with":[{"translate":"gamerules.manic.night_sanity_drain"},{"translate":"settings.nucleus.true","color":"#a9ebbd"}]}],"hoverEvent":{"action":"show_text","contents":[{"translate":"gamerules.manic.night_sanity_drain.description","color":"gray"},"\n\n",{"translate":"settings.nucleus.default","color":"yellow","with":[{"translate":"settings.nucleus.false"}]}]},"clickEvent":{"action":"run_command","value":"/function manic:entity/player/gamerules/night_sanity_drain"}}
execute if score #legacy_sanity manic.dummy matches 0 run tellraw @s {"color":"#8d9490","italic":true,"translate":"gamerules.manic.extension","with":[{"translate":"gamerules.manic.night_sanity_drain"}]}

# Deepslate Sanity Drain
execute store result score #deepslate_sanity_drain manic.dummy run data get storage manic:storage root.gamerules.deepslate_sanity_drain
execute if score #legacy_sanity manic.dummy matches 1 if score #deepslate_sanity_drain manic.dummy matches 0 run tellraw @s {"color":"#86a697","translate":"gamerules.manic.extension","with":[{"translate":"gamerules.manic.entry","with":[{"translate":"gamerules.manic.deepslate_sanity_drain"},{"translate":"settings.nucleus.false","color":"#ebb5a9"}]}],"hoverEvent":{"action":"show_text","contents":[{"translate":"gamerules.manic.deepslate_sanity_drain.description","color":"gray"},"\n\n",{"translate":"settings.nucleus.default","color":"yellow","with":[{"translate":"settings.nucleus.false"}]}]},"clickEvent":{"action":"run_command","value":"/function manic:entity/player/gamerules/deepslate_sanity_drain"}}
execute if score #legacy_sanity manic.dummy matches 1 if score #deepslate_sanity_drain manic.dummy matches 1 run tellraw @s {"color":"#86a697","translate":"gamerules.manic.extension","with":[{"translate":"gamerules.manic.entry","with":[{"translate":"gamerules.manic.deepslate_sanity_drain"},{"translate":"settings.nucleus.true","color":"#a9ebbd"}]}],"hoverEvent":{"action":"show_text","contents":[{"translate":"gamerules.manic.deepslate_sanity_drain.description","color":"gray"},"\n\n",{"translate":"settings.nucleus.default","color":"yellow","with":[{"translate":"settings.nucleus.false"}]}]},"clickEvent":{"action":"run_command","value":"/function manic:entity/player/gamerules/deepslate_sanity_drain"}}
execute if score #legacy_sanity manic.dummy matches 0 run tellraw @s {"color":"#8d9490","italic":true,"translate":"gamerules.manic.extension","with":[{"translate":"gamerules.manic.deepslate_sanity_drain"}]}

# Nether Sanity Drain
execute store result score #nether_sanity_drain manic.dummy run data get storage manic:storage root.gamerules.nether_sanity_drain
execute if score #legacy_sanity manic.dummy matches 1 if score #nether_sanity_drain manic.dummy matches 0 run tellraw @s {"color":"#86a697","translate":"gamerules.manic.extension","with":[{"translate":"gamerules.manic.entry","with":[{"translate":"gamerules.manic.nether_sanity_drain"},{"translate":"settings.nucleus.false","color":"#ebb5a9"}]}],"hoverEvent":{"action":"show_text","contents":[{"translate":"gamerules.manic.nether_sanity_drain.description","color":"gray"},"\n\n",{"translate":"settings.nucleus.default","color":"yellow","with":[{"translate":"settings.nucleus.true"}]}]},"clickEvent":{"action":"run_command","value":"/function manic:entity/player/gamerules/nether_sanity_drain"}}
execute if score #legacy_sanity manic.dummy matches 1 if score #nether_sanity_drain manic.dummy matches 1 run tellraw @s {"color":"#86a697","translate":"gamerules.manic.extension","with":[{"translate":"gamerules.manic.entry","with":[{"translate":"gamerules.manic.nether_sanity_drain"},{"translate":"settings.nucleus.true","color":"#a9ebbd"}]}],"hoverEvent":{"action":"show_text","contents":[{"translate":"gamerules.manic.nether_sanity_drain.description","color":"gray"},"\n\n",{"translate":"settings.nucleus.default","color":"yellow","with":[{"translate":"settings.nucleus.true"}]}]},"clickEvent":{"action":"run_command","value":"/function manic:entity/player/gamerules/nether_sanity_drain"}}
execute if score #legacy_sanity manic.dummy matches 0 run tellraw @s {"color":"#8d9490","italic":true,"translate":"gamerules.manic.extension","with":[{"translate":"gamerules.manic.nether_sanity_drain"}]}

# End Sanity Drain
execute store result score #end_sanity_drain manic.dummy run data get storage manic:storage root.gamerules.end_sanity_drain
execute if score #legacy_sanity manic.dummy matches 1 if score #end_sanity_drain manic.dummy matches 0 run tellraw @s {"color":"#86a697","translate":"gamerules.manic.extension","with":[{"translate":"gamerules.manic.entry","with":[{"translate":"gamerules.manic.end_sanity_drain"},{"translate":"settings.nucleus.false","color":"#ebb5a9"}]}],"hoverEvent":{"action":"show_text","contents":[{"translate":"gamerules.manic.end_sanity_drain.description","color":"gray"},"\n\n",{"translate":"settings.nucleus.default","color":"yellow","with":[{"translate":"settings.nucleus.true"}]}]},"clickEvent":{"action":"run_command","value":"/function manic:entity/player/gamerules/end_sanity_drain"}}
execute if score #legacy_sanity manic.dummy matches 1 if score #end_sanity_drain manic.dummy matches 1 run tellraw @s {"color":"#86a697","translate":"gamerules.manic.extension","with":[{"translate":"gamerules.manic.entry","with":[{"translate":"gamerules.manic.end_sanity_drain"},{"translate":"settings.nucleus.true","color":"#a9ebbd"}]}],"hoverEvent":{"action":"show_text","contents":[{"translate":"gamerules.manic.end_sanity_drain.description","color":"gray"},"\n\n",{"translate":"settings.nucleus.default","color":"yellow","with":[{"translate":"settings.nucleus.true"}]}]},"clickEvent":{"action":"run_command","value":"/function manic:entity/player/gamerules/end_sanity_drain"}}
execute if score #legacy_sanity manic.dummy matches 0 run tellraw @s {"color":"#8d9490","italic":true,"translate":"gamerules.manic.extension","with":[{"translate":"gamerules.manic.end_sanity_drain"}]}

tellraw @s ""

# Death Restores Sanity
execute store result score #death_restores manic.dummy run data get storage manic:storage root.gamerules.death_restores
execute if score #death_restores manic.dummy matches 0 run tellraw @s {"color":"#86a697","translate":"gamerules.manic.entry","with":[{"translate":"gamerules.manic.death_restores"},{"translate":"settings.nucleus.false","color":"#ebb5a9"}],"hoverEvent":{"action":"show_text","contents":[{"translate":"gamerules.manic.death_restores.description","color":"gray"},"\n\n",{"translate":"settings.nucleus.default","color":"yellow","with":[{"translate":"settings.nucleus.false"}]}]},"clickEvent":{"action":"run_command","value":"/function manic:entity/player/gamerules/death_restores"}}
execute if score #death_restores manic.dummy matches 1 run tellraw @s {"color":"#86a697","translate":"gamerules.manic.entry","with":[{"translate":"gamerules.manic.death_restores"},{"translate":"settings.nucleus.true","color":"#a9ebbd"}],"hoverEvent":{"action":"show_text","contents":[{"translate":"gamerules.manic.death_restores.description","color":"gray"},"\n\n",{"translate":"settings.nucleus.default","color":"yellow","with":[{"translate":"settings.nucleus.false"}]}]},"clickEvent":{"action":"run_command","value":"/function manic:entity/player/gamerules/death_restores"}}

# Darkness Kills
execute store result score #darkness_kills manic.dummy run data get storage manic:storage root.gamerules.darkness_kills
execute if score #darkness_kills manic.dummy matches 0 run tellraw @s {"color":"#86a697","translate":"gamerules.manic.entry","with":[{"translate":"gamerules.manic.darkness_kills"},{"translate":"settings.nucleus.false","color":"#ebb5a9"}],"hoverEvent":{"action":"show_text","contents":[{"translate":"gamerules.manic.darkness_kills.description","color":"gray"},"\n\n",{"translate":"settings.nucleus.default","color":"yellow","with":[{"translate":"settings.nucleus.false"}]}]},"clickEvent":{"action":"run_command","value":"/function manic:entity/player/gamerules/darkness_kills"}}
execute if score #darkness_kills manic.dummy matches 1 run tellraw @s {"color":"#86a697","translate":"gamerules.manic.entry","with":[{"translate":"gamerules.manic.darkness_kills"},{"translate":"settings.nucleus.true","color":"#a9ebbd"}],"hoverEvent":{"action":"show_text","contents":[{"translate":"gamerules.manic.darkness_kills.description","color":"gray"},"\n\n",{"translate":"settings.nucleus.default","color":"yellow","with":[{"translate":"settings.nucleus.false"}]}]},"clickEvent":{"action":"run_command","value":"/function manic:entity/player/gamerules/darkness_kills"}}

# Horror Ward Forceloading
execute store result score #horror_ward_forceloading manic.dummy run data get storage manic:storage root.gamerules.horror_ward_forceloading
execute if score #horror_ward_forceloading manic.dummy matches 0 run tellraw @s {"color":"#86a697","translate":"gamerules.manic.entry","with":[{"translate":"gamerules.manic.horror_ward_forceloading"},{"translate":"settings.nucleus.false","color":"#ebb5a9"}],"hoverEvent":{"action":"show_text","contents":[{"translate":"gamerules.manic.horror_ward_forceloading.description","color":"gray"},"\n\n",{"translate":"settings.nucleus.default","color":"yellow","with":[{"translate":"settings.nucleus.false"}]}]},"clickEvent":{"action":"run_command","value":"/function manic:entity/player/gamerules/horror_ward_forceloading"}}
execute if score #horror_ward_forceloading manic.dummy matches 1 run tellraw @s {"color":"#86a697","translate":"gamerules.manic.entry","with":[{"translate":"gamerules.manic.horror_ward_forceloading"},{"translate":"settings.nucleus.true","color":"#a9ebbd"}],"hoverEvent":{"action":"show_text","contents":[{"translate":"gamerules.manic.horror_ward_forceloading.description","color":"gray"},"\n\n",{"translate":"settings.nucleus.default","color":"yellow","with":[{"translate":"settings.nucleus.false"}]}]},"clickEvent":{"action":"run_command","value":"/function manic:entity/player/gamerules/horror_ward_forceloading"}}

tellraw @s ["\n",{"translate":"settings.nucleus.reset","color":"#e06d53","clickEvent":{"action":"run_command","value":"/function manic:entity/player/gamerules/reset"}}]

function nucleus:entity/player/commands/no_feedback/main
playsound minecraft:block.wooden_button.click_on block @s
