advancement revoke @s only button:eye

execute if score @s eye matches 0 run title @s actionbar {"text":"You are out of hints!","bold":true,"color":"red"}

execute if score @s eye matches 1..20 run execute if score @s level matches 1 run item replace entity @s weapon.mainhand with compass{RepairCost:40,display:{Name:'[{"text":"Button Locator","italic":false}]',Lore:['[{"text":"Level: ","italic":false,"color":"gray"},{"text":"1","color":"green"},{"text":"","color":"dark_purple"}]','[{"text":"","italic":false,"color":"dark_purple"}]','[{"text":"Points to the location of the","italic":false,"color":"gray"}]','[{"text":"button respective to the current level.","italic":false,"color":"gray"}]']},LodestoneDimension:"minecraft:overworld",LodestoneTracked:0b,LodestonePos:{X:19,Y:55,Z:102}} 1
execute if score @s eye matches 1..20 run execute if score @s level matches 2 run item replace entity @s weapon.mainhand with compass{RepairCost:40,display:{Name:'[{"text":"Button Locator","italic":false}]',Lore:['[{"text":"Level: ","italic":false,"color":"gray"},{"text":"2","color":"green"},{"text":"","color":"dark_purple"}]','[{"text":"","italic":false,"color":"dark_purple"}]','[{"text":"Points to the location of the","italic":false,"color":"gray"}]','[{"text":"button respective to the current level.","italic":false,"color":"gray"}]']},LodestoneDimension:"minecraft:overworld",LodestoneTracked:0b,LodestonePos:{X:7,Y:48,Z:98}} 1
execute if score @s eye matches 1..20 run execute if score @s level matches 3 run item replace entity @s weapon.mainhand with compass{RepairCost:40,display:{Name:'[{"text":"Button Locator","italic":false}]',Lore:['[{"text":"Level: ","italic":false,"color":"gray"},{"text":"3","color":"green"},{"text":"","color":"dark_purple"}]','[{"text":"","italic":false,"color":"dark_purple"}]','[{"text":"Points to the location of the","italic":false,"color":"gray"}]','[{"text":"button respective to the current level.","italic":false,"color":"gray"}]']},LodestoneDimension:"minecraft:overworld",LodestoneTracked:0b,LodestonePos:{X:-7,Y:48,Z:99}} 1
execute if score @s eye matches 1..20 run execute if score @s level matches 4 run item replace entity @s weapon.mainhand with compass{RepairCost:40,display:{Name:'[{"text":"Button Locator","italic":false}]',Lore:['[{"text":"Level: ","italic":false,"color":"gray"},{"text":"4","color":"green"},{"text":"","color":"dark_purple"}]','[{"text":"","italic":false,"color":"dark_purple"}]','[{"text":"Points to the location of the","italic":false,"color":"gray"}]','[{"text":"button respective to the current level.","italic":false,"color":"gray"}]']},LodestoneDimension:"minecraft:overworld",LodestoneTracked:0b,LodestonePos:{X:-14,Y:52,Z:106}} 1
execute if score @s eye matches 1..20 run execute if score @s level matches 5 run item replace entity @s weapon.mainhand with compass{RepairCost:40,display:{Name:'[{"text":"Button Locator","italic":false}]',Lore:['[{"text":"Level: ","italic":false,"color":"gray"},{"text":"5","color":"green"},{"text":"","color":"dark_purple"}]','[{"text":"","italic":false,"color":"dark_purple"}]','[{"text":"Points to the location of the","italic":false,"color":"gray"}]','[{"text":"button respective to the current level.","italic":false,"color":"gray"}]']},LodestoneDimension:"minecraft:overworld",LodestoneTracked:0b,LodestonePos:{X:-29,Y:52,Z:106}} 1
execute if score @s eye matches 1..20 run execute if score @s level matches 6 run item replace entity @s weapon.mainhand with compass{RepairCost:40,display:{Name:'[{"text":"Button Locator","italic":false}]',Lore:['[{"text":"Level: ","italic":false,"color":"gray"},{"text":"6","color":"green"},{"text":"","color":"dark_purple"}]','[{"text":"","italic":false,"color":"dark_purple"}]','[{"text":"Points to the location of the","italic":false,"color":"gray"}]','[{"text":"button respective to the current level.","italic":false,"color":"gray"}]']},LodestoneDimension:"minecraft:overworld",LodestoneTracked:0b,LodestonePos:{X:-44,Y:56,Z:100}} 1
execute if score @s eye matches 1..20 run execute if score @s level matches 7 run item replace entity @s weapon.mainhand with compass{RepairCost:40,display:{Name:'[{"text":"Button Locator","italic":false}]',Lore:['[{"text":"Level: ","italic":false,"color":"gray"},{"text":"7","color":"green"},{"text":"","color":"dark_purple"}]','[{"text":"","italic":false,"color":"dark_purple"}]','[{"text":"Points to the location of the","italic":false,"color":"gray"}]','[{"text":"button respective to the current level.","italic":false,"color":"gray"}]']},LodestoneDimension:"minecraft:overworld",LodestoneTracked:0b,LodestonePos:{X:-58,Y:55,Z:98}} 1
execute if score @s eye matches 1..20 run execute if score @s level matches 8 run item replace entity @s weapon.mainhand with compass{RepairCost:40,display:{Name:'[{"text":"Button Locator","italic":false}]',Lore:['[{"text":"Level: ","italic":false,"color":"gray"},{"text":"8","color":"green"},{"text":"","color":"dark_purple"}]','[{"text":"","italic":false,"color":"dark_purple"}]','[{"text":"Points to the location of the","italic":false,"color":"gray"}]','[{"text":"button respective to the current level.","italic":false,"color":"gray"}]']},LodestoneDimension:"minecraft:overworld",LodestoneTracked:0b,LodestonePos:{X:-67,Y:55,Z:98}} 1
execute if score @s eye matches 1..20 run execute if score @s level matches 9 run item replace entity @s weapon.mainhand with compass{RepairCost:40,display:{Name:'[{"text":"Button Locator","italic":false}]',Lore:['[{"text":"Level: ","italic":false,"color":"gray"},{"text":"9","color":"green"},{"text":"","color":"dark_purple"}]','[{"text":"","italic":false,"color":"dark_purple"}]','[{"text":"Points to the location of the","italic":false,"color":"gray"}]','[{"text":"button respective to the current level.","italic":false,"color":"gray"}]']},LodestoneDimension:"minecraft:overworld",LodestoneTracked:0b,LodestonePos:{X:-80,Y:48,Z:97}} 1
execute if score @s eye matches 1..20 run execute if score @s level matches 10 run item replace entity @s weapon.mainhand with compass{RepairCost:40,display:{Name:'[{"text":"Button Locator","italic":false}]',Lore:['[{"text":"Level: ","italic":false,"color":"gray"},{"text":"10","color":"green"},{"text":"","color":"dark_purple"}]','[{"text":"","italic":false,"color":"dark_purple"}]','[{"text":"Points to the location of the","italic":false,"color":"gray"}]','[{"text":"button respective to the current level.","italic":false,"color":"gray"}]']},LodestoneDimension:"minecraft:overworld",LodestoneTracked:0b,LodestonePos:{X:-86,Y:53,Z:101}} 1
execute if score @s eye matches 1..20 run execute if score @s level matches 11 run item replace entity @s weapon.mainhand with compass{RepairCost:40,display:{Name:'[{"text":"Button Locator","italic":false}]',Lore:['[{"text":"Level: ","italic":false,"color":"gray"},{"text":"11","color":"green"},{"text":"","color":"dark_purple"}]','[{"text":"","italic":false,"color":"dark_purple"}]','[{"text":"Points to the location of the","italic":false,"color":"gray"}]','[{"text":"button respective to the current level.","italic":false,"color":"gray"}]']},LodestoneDimension:"minecraft:overworld",LodestoneTracked:0b,LodestonePos:{X:-64,Y:46,Z:117}} 1
execute if score @s eye matches 1..20 run execute if score @s level matches 12 run item replace entity @s weapon.mainhand with compass{RepairCost:40,display:{Name:'[{"text":"Button Locator","italic":false}]',Lore:['[{"text":"Level: ","italic":false,"color":"gray"},{"text":"12","color":"green"},{"text":"","color":"dark_purple"}]','[{"text":"","italic":false,"color":"dark_purple"}]','[{"text":"Points to the location of the","italic":false,"color":"gray"}]','[{"text":"button respective to the current level.","italic":false,"color":"gray"}]']},LodestoneDimension:"minecraft:overworld",LodestoneTracked:0b,LodestonePos:{X:-49,Y:39,Z:111}} 1
execute if score @s eye matches 1..20 run execute if score @s level matches 13 run item replace entity @s weapon.mainhand with compass{RepairCost:40,display:{Name:'[{"text":"Button Locator","italic":false}]',Lore:['[{"text":"Level: ","italic":false,"color":"gray"},{"text":"13","color":"green"},{"text":"","color":"dark_purple"}]','[{"text":"","italic":false,"color":"dark_purple"}]','[{"text":"Points to the location of the","italic":false,"color":"gray"}]','[{"text":"button respective to the current level.","italic":false,"color":"gray"}]']},LodestoneDimension:"minecraft:overworld",LodestoneTracked:0b,LodestonePos:{X:-32,Y:52,Z:112}} 1
execute if score @s eye matches 1..20 run execute if score @s level matches 14 run item replace entity @s weapon.mainhand with compass{RepairCost:40,display:{Name:'[{"text":"Button Locator","italic":false}]',Lore:['[{"text":"Level: ","italic":false,"color":"gray"},{"text":"14","color":"green"},{"text":"","color":"dark_purple"}]','[{"text":"","italic":false,"color":"dark_purple"}]','[{"text":"Points to the location of the","italic":false,"color":"gray"}]','[{"text":"button respective to the current level.","italic":false,"color":"gray"}]']},LodestoneDimension:"minecraft:overworld",LodestoneTracked:0b,LodestonePos:{X:8,Y:48,Z:123}} 1
execute if score @s eye matches 1..20 run execute if score @s level matches 15 run item replace entity @s weapon.mainhand with compass{RepairCost:40,display:{Name:'[{"text":"Button Locator","italic":false}]',Lore:['[{"text":"Level: ","italic":false,"color":"gray"},{"text":"15","color":"green"},{"text":"","color":"dark_purple"}]','[{"text":"","italic":false,"color":"dark_purple"}]','[{"text":"Points to the location of the","italic":false,"color":"gray"}]','[{"text":"button respective to the current level.","italic":false,"color":"gray"}]']},LodestoneDimension:"minecraft:overworld",LodestoneTracked:0b,LodestonePos:{X:-11,Y:53,Z:124}} 1
execute if score @s eye matches 1..20 run execute if score @s level matches 16 run item replace entity @s weapon.mainhand with compass{RepairCost:40,display:{Name:'[{"text":"Button Locator","italic":false}]',Lore:['[{"text":"Level: ","italic":false,"color":"gray"},{"text":"16","color":"green"},{"text":"","color":"dark_purple"}]','[{"text":"","italic":false,"color":"dark_purple"}]','[{"text":"Points to the location of the","italic":false,"color":"gray"}]','[{"text":"button respective to the current level.","italic":false,"color":"gray"}]']},LodestoneDimension:"minecraft:overworld",LodestoneTracked:0b,LodestonePos:{X:-59,Y:55,Z:123}} 1
execute if score @s eye matches 1..20 run execute if score @s level matches 17 run item replace entity @s weapon.mainhand with compass{RepairCost:40,display:{Name:'[{"text":"Button Locator","italic":false}]',Lore:['[{"text":"Level: ","italic":false,"color":"gray"},{"text":"17","color":"green"},{"text":"","color":"dark_purple"}]','[{"text":"","italic":false,"color":"dark_purple"}]','[{"text":"Points to the location of the","italic":false,"color":"gray"}]','[{"text":"button respective to the current level.","italic":false,"color":"gray"}]']},LodestoneDimension:"minecraft:overworld",LodestoneTracked:0b,LodestonePos:{X:-67,Y:63,Z:127}} 1
execute if score @s eye matches 1..20 run execute if score @s level matches 18 run item replace entity @s weapon.mainhand with compass{RepairCost:40,display:{Name:'[{"text":"Button Locator","italic":false}]',Lore:['[{"text":"Level: ","italic":false,"color":"gray"},{"text":"18","color":"green"},{"text":"","color":"dark_purple"}]','[{"text":"","italic":false,"color":"dark_purple"}]','[{"text":"Points to the location of the","italic":false,"color":"gray"}]','[{"text":"button respective to the current level.","italic":false,"color":"gray"}]']},LodestoneDimension:"minecraft:overworld",LodestoneTracked:0b,LodestonePos:{X:-87,Y:51,Z:135}} 1
execute if score @s eye matches 1..20 run execute if score @s level matches 19 run item replace entity @s weapon.mainhand with compass{RepairCost:40,display:{Name:'[{"text":"Button Locator","italic":false}]',Lore:['[{"text":"Level: ","italic":false,"color":"gray"},{"text":"19","color":"green"},{"text":"","color":"dark_purple"}]','[{"text":"","italic":false,"color":"dark_purple"}]','[{"text":"Points to the location of the","italic":false,"color":"gray"}]','[{"text":"button respective to the current level.","italic":false,"color":"gray"}]']},LodestoneDimension:"minecraft:overworld",LodestoneTracked:0b,LodestonePos:{X:13,Y:47,Z:150}} 1
execute if score @s eye matches 1..20 run execute if score @s level matches 20 run item replace entity @s weapon.mainhand with compass{RepairCost:40,display:{Name:'[{"text":"Button Locator","italic":false}]',Lore:['[{"text":"Level: ","italic":false,"color":"gray"},{"text":"20","color":"green"},{"text":"","color":"dark_purple"}]','[{"text":"","italic":false,"color":"dark_purple"}]','[{"text":"Points to the location of the","italic":false,"color":"gray"}]','[{"text":"button respective to the current level.","italic":false,"color":"gray"}]']},LodestoneDimension:"minecraft:overworld",LodestoneTracked:0b,LodestonePos:{X:-32,Y:55,Z:152}} 1


execute if score @s eye matches 1..20 run playsound minecraft:block.note_block.snare master @s ~ ~ ~ 1 2
execute if score @s eye matches 1..20 run scoreboard players remove @s eye 1
execute if score @s eye matches ..0 run title @s actionbar {"text":"You are out of hints!","bold":true,"color":"red"}
execute if score @s eye matches 1..20 run title @s actionbar ["",{"text":"Hints remaining: ","bold":true,"color":"gold"},{"score":{"name":"@p","objective":"eye"},"bold":true,"color":"green"}]
function button:hintsystem/hintcontrols/levels