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",{"translate":"gamerule.sanguine.title","bold":true,"color":"#880f0f"},"\n"]

# Flesh Tuner
execute store result score #flesh_tuner sanguine.dummy run data get storage sanguine:storage root.gamerules.flesh_tuner
execute if score #flesh_tuner sanguine.dummy matches 0 run tellraw @s {"translate":"gamerule.sanguine.flesh_tuner","with":[{"translate":"gamerule.sanguine.false","color":"#bf1515","clickEvent":{"action":"run_command","value":"/function sanguine:entity/player/gamerules/flesh_tuner"}}],"color":"#ed6b61","hoverEvent":{"action":"show_text","contents":[{"translate":"gamerule.sanguine.flesh_tuner.desc","color":"gray"}]}}
execute if score #flesh_tuner sanguine.dummy matches 1 run tellraw @s {"translate":"gamerule.sanguine.flesh_tuner","with":[{"translate":"gamerule.sanguine.true","color":"#b9d132","clickEvent":{"action":"run_command","value":"/function sanguine:entity/player/gamerules/flesh_tuner"}}],"color":"#ed6b61","hoverEvent":{"action":"show_text","contents":[{"translate":"gamerule.sanguine.flesh_tuner.desc","color":"gray"}]}}

# Butchers Break Blocks
execute store result score #butchers_break_blocks sanguine.dummy run data get storage sanguine:storage root.gamerules.butchers_break_blocks
execute if score #butchers_break_blocks sanguine.dummy matches 0 run tellraw @s {"translate":"gamerule.sanguine.butchers_break_blocks","with":[{"translate":"gamerule.sanguine.false","color":"#bf1515","clickEvent":{"action":"run_command","value":"/function sanguine:entity/player/gamerules/butchers_break_blocks"}}],"color":"#ed6b61","hoverEvent":{"action":"show_text","contents":[{"translate":"gamerule.sanguine.butchers_break_blocks.desc","color":"gray"}]}}
execute if score #butchers_break_blocks sanguine.dummy matches 1 run tellraw @s {"translate":"gamerule.sanguine.butchers_break_blocks","with":[{"translate":"gamerule.sanguine.true","color":"#b9d132","clickEvent":{"action":"run_command","value":"/function sanguine:entity/player/gamerules/butchers_break_blocks"}}],"color":"#ed6b61","hoverEvent":{"action":"show_text","contents":[{"translate":"gamerule.sanguine.butchers_break_blocks.desc","color":"gray"}]}}

# Butchers Break Containers
execute store result score #butchers_break_containers sanguine.dummy run data get storage sanguine:storage root.gamerules.butchers_break_containers
execute if score #butchers_break_containers sanguine.dummy matches 0 run tellraw @s {"translate":"gamerule.sanguine.butchers_break_containers","with":[{"translate":"gamerule.sanguine.false","color":"#bf1515","clickEvent":{"action":"run_command","value":"/function sanguine:entity/player/gamerules/butchers_break_containers"}}],"color":"#ed6b61","hoverEvent":{"action":"show_text","contents":[{"translate":"gamerule.sanguine.butchers_break_containers.desc","color":"gray"}]}}
execute if score #butchers_break_containers sanguine.dummy matches 1 run tellraw @s {"translate":"gamerule.sanguine.butchers_break_containers","with":[{"translate":"gamerule.sanguine.true","color":"#b9d132","clickEvent":{"action":"run_command","value":"/function sanguine:entity/player/gamerules/butchers_break_containers"}}],"color":"#ed6b61","hoverEvent":{"action":"show_text","contents":[{"translate":"gamerule.sanguine.butchers_break_containers.desc","color":"gray"}]}}

# Reapers Self Detonate
execute store result score #reapers_self_detonate sanguine.dummy run data get storage sanguine:storage root.gamerules.reapers_self_detonate
execute if score #reapers_self_detonate sanguine.dummy matches 0 run tellraw @s {"translate":"gamerule.sanguine.reapers_self_detonate","with":[{"translate":"gamerule.sanguine.false","color":"#bf1515","clickEvent":{"action":"run_command","value":"/function sanguine:entity/player/gamerules/reapers_self_detonate"}}],"color":"#ed6b61","hoverEvent":{"action":"show_text","contents":[{"translate":"gamerule.sanguine.reapers_self_detonate.desc","color":"gray"}]}}
execute if score #reapers_self_detonate sanguine.dummy matches 1 run tellraw @s {"translate":"gamerule.sanguine.reapers_self_detonate","with":[{"translate":"gamerule.sanguine.true","color":"#b9d132","clickEvent":{"action":"run_command","value":"/function sanguine:entity/player/gamerules/reapers_self_detonate"}}],"color":"#ed6b61","hoverEvent":{"action":"show_text","contents":[{"translate":"gamerule.sanguine.reapers_self_detonate.desc","color":"gray"}]}}

# Monster Stat Scaling
execute store result score #monster_stat_scaling sanguine.dummy run data get storage sanguine:storage root.gamerules.monster_stat_scaling
execute if score #monster_stat_scaling sanguine.dummy matches 0 run tellraw @s {"translate":"gamerule.sanguine.monster_stat_scaling","with":[{"translate":"gamerule.sanguine.monster_stat_scaling.per_player_box","color":"#b9d132","hoverEvent":{"action":"show_text","contents":[{"translate":"gamerule.sanguine.monster_stat_scaling.per_player.desc","color":"gray"}]}},{"translate":"gamerule.sanguine.monster_stat_scaling.world_age","color":"#bf1515","hoverEvent":{"action":"show_text","contents":[{"translate":"gamerule.sanguine.monster_stat_scaling.world_age.desc","color":"gray"}]}}],"color":"#ed6b61","clickEvent":{"action":"run_command","value":"/function sanguine:entity/player/gamerules/monster_stat_scaling"}}
execute if score #monster_stat_scaling sanguine.dummy matches 1 run tellraw @s {"translate":"gamerule.sanguine.monster_stat_scaling","with":[{"translate":"gamerule.sanguine.monster_stat_scaling.per_player","color":"#bf1515","hoverEvent":{"action":"show_text","contents":[{"translate":"gamerule.sanguine.monster_stat_scaling.per_player.desc","color":"gray"}]}},{"translate":"gamerule.sanguine.monster_stat_scaling.world_age_box","color":"#b9d132","hoverEvent":{"action":"show_text","contents":[{"translate":"gamerule.sanguine.monster_stat_scaling.world_age.desc","color":"gray"}]}}],"color":"#ed6b61","clickEvent":{"action":"run_command","value":"/function sanguine:entity/player/gamerules/monster_stat_scaling"}}

# Reset Scaling on Death
execute store result score #reset_scaling sanguine.dummy run data get storage sanguine:storage root.gamerules.reset_scaling
execute unless score #monster_stat_scaling sanguine.dummy matches 1 if score #reset_scaling sanguine.dummy matches 0 run tellraw @s {"translate":"gamerule.sanguine.reset_scaling","with":[{"translate":"gamerule.sanguine.false","color":"#bf1515","clickEvent":{"action":"run_command","value":"/function sanguine:entity/player/gamerules/reset_scaling"}}],"color":"#ed6b61","hoverEvent":{"action":"show_text","contents":[{"translate":"gamerule.sanguine.reset_scaling.desc","color":"gray"}]}}
execute unless score #monster_stat_scaling sanguine.dummy matches 1 if score #reset_scaling sanguine.dummy matches 1 run tellraw @s {"translate":"gamerule.sanguine.reset_scaling","with":[{"translate":"gamerule.sanguine.true","color":"#b9d132","clickEvent":{"action":"run_command","value":"/function sanguine:entity/player/gamerules/reset_scaling"}}],"color":"#ed6b61","hoverEvent":{"action":"show_text","contents":[{"translate":"gamerule.sanguine.reset_scaling.desc","color":"gray"}]}}
execute if score #monster_stat_scaling sanguine.dummy matches 1 run tellraw @s {"translate":"gamerule.sanguine.reset_scaling.collapsed","color":"#6b3f3f","italic":"true"}

# Difficulty
#execute store result score #difficulty sanguine.dummy run data get storage sanguine:storage root.gamerules.difficulty
#execute if score #difficulty sanguine.dummy matches 0 run tellraw @s {"translate":"gamerule.sanguine.difficulty","with":[{"translate":"gamerule.sanguine.difficulty.normal_box","color":"#b9d132","hoverEvent":{"action":"show_text","contents":[{"translate":"gamerule.sanguine.difficulty.normal.desc","color":"gray"}]}},{"translate":"gamerule.sanguine.difficulty.hard","color":"#bf1515","hoverEvent":{"action":"show_text","contents":[{"translate":"gamerule.sanguine.difficulty.hard.desc","color":"gray"}]}}],"color":"#ed6b61","clickEvent":{"action":"run_command","value":"/function sanguine:entity/player/gamerules/difficulty"}}
#execute if score #difficulty sanguine.dummy matches 1 run tellraw @s {"translate":"gamerule.sanguine.difficulty","with":[{"translate":"gamerule.sanguine.difficulty.normal","color":"#bf1515","hoverEvent":{"action":"show_text","contents":[{"translate":"gamerule.sanguine.difficulty.normal.desc","color":"gray"}]}},{"translate":"gamerule.sanguine.difficulty.hard_box","color":"#b9d132","hoverEvent":{"action":"show_text","contents":[{"translate":"gamerule.sanguine.difficulty.hard.desc","color":"gray"}]}}],"color":"#ed6b61","clickEvent":{"action":"run_command","value":"/function sanguine:entity/player/gamerules/difficulty"}}

# Frequency
tellraw @s {"translate":"gamerule.sanguine.blood_moon_frequency","with":[{"score":{"name":"#sanguine.blood_moon_frequency","objective":"sanguine.dummy"},"color":"#b9d132"}],"color":"#ed6b61","hoverEvent":{"action":"show_text","contents":[{"translate":"gamerule.sanguine.blood_moon_frequency.desc","color":"gray"}]},"clickEvent":{"action":"suggest_command","value":"/scoreboard players set #sanguine.blood_moon_frequency sanguine.dummy "}}

# Mob Cap
tellraw @s {"translate":"gamerule.sanguine.mob_cap","with":[{"score":{"name":"#sanguine.mob_cap","objective":"sanguine.dummy"},"color":"#b9d132"}],"color":"#ed6b61","hoverEvent":{"action":"show_text","contents":[{"translate":"gamerule.sanguine.mob_cap.desc","color":"gray"}]},"clickEvent":{"action":"suggest_command","value":"/scoreboard players set #sanguine.mob_cap sanguine.dummy "}}

tellraw @s ["\n",{"translate":"gamerule.sanguine.reset","color":"#bf1515","clickEvent":{"action":"run_command","value":"/function sanguine:entity/player/gamerules/reset"}}]

function sanguine:entity/player/gamerules/no_feedback/main
