gamerule sendCommandFeedback false

#tag @e[name=DayQ,type=armor_stand] remove EasyMode

tellraw @s {"text":"Difficulty change initiated. Choose difficulty(click to change):","color":"gold","bold":"true","clickEvent":{"action":"run_command","value":""}}
execute if entity @e[type=armor_stand,name=DayQ,tag=StructuresMode] run tellraw @s {"text":"Structures-Only Difficulty(Current difficulty)","color":"dark_green","clickEvent":{"action":"run_command","value":"/execute as @e[type=armor_stand,name=DayQ] run function zzzzdonotuse:difficulty/structuresdifficulty"}}
execute if entity @e[type=armor_stand,name=DayQ,tag=!StructuresMode] run tellraw @s {"text":"Structures-Only Difficulty","color":"dark_green","clickEvent":{"action":"run_command","value":"/execute as @e[type=armor_stand,name=DayQ] run function zzzzdonotuse:difficulty/structuresdifficulty"}}
execute if entity @e[type=armor_stand,name=DayQ,tag=EasyMode] run tellraw @s {"text":"Easy Difficulty(Current difficulty)","color":"green","clickEvent":{"action":"run_command","value":"/execute as @e[type=armor_stand,name=DayQ] run function zzzzdonotuse:difficulty/easydifficulty"}}
execute if entity @e[type=armor_stand,name=DayQ,tag=!EasyMode] run tellraw @s {"text":"Easy Difficulty","color":"green","clickEvent":{"action":"run_command","value":"/execute as @e[type=armor_stand,name=DayQ] run function zzzzdonotuse:difficulty/easydifficulty"}}
execute if entity @e[type=armor_stand,name=DayQ,tag=NormalMode] run tellraw @s {"text":"Normal Difficulty(Current difficulty)","color":"yellow","clickEvent":{"action":"run_command","value":"/execute as @e[type=armor_stand,name=DayQ] run function zzzzdonotuse:difficulty/normaldifficulty"}}
execute if entity @e[type=armor_stand,name=DayQ,tag=!NormalMode] run tellraw @s {"text":"Normal Difficulty","color":"yellow","clickEvent":{"action":"run_command","value":"/execute as @e[type=armor_stand,name=DayQ] run function zzzzdonotuse:difficulty/normaldifficulty"}}
execute if entity @e[type=armor_stand,name=DayQ,tag=HardMode] run tellraw @s {"text":"Hard Difficulty(Current difficulty)","color":"red","clickEvent":{"action":"run_command","value":"/execute as @e[type=armor_stand,name=DayQ] run function zzzzdonotuse:difficulty/harddifficulty"}}
execute if entity @e[type=armor_stand,name=DayQ,tag=!HardMode] run tellraw @s {"text":"Hard Difficulty","color":"red","clickEvent":{"action":"run_command","value":"/execute as @e[type=armor_stand,name=DayQ] run function zzzzdonotuse:difficulty/harddifficulty"}}

setblock 999971 188 999971 command_block[facing=up]{auto:1b,Command:"gamerule sendCommandFeedback true",TrackOutput:0} destroy
