advancement revoke @s only nitco:nitco/tech1
tag @s add nitTrophyCheck

execute if entity @s[tag=nitTrophyCheck,tag=!nitAward1,advancements={nitco:nitco/ach5.3=true}] at @e[tag=nitTrophyRoom,distance=..12] run setblock ~4 ~1 ~2 diamond_block
playsound minecraft:entity.player.levelup player @s[tag=nitTrophyCheck,tag=!nitAward1,advancements={nitco:nitco/ach5.3=true}] ~ ~ ~ 20
tag @s[tag=nitTrophyCheck,tag=!nitAward1,advancements={nitco:nitco/ach5.3=true}] add nitAward1

execute if entity @s[tag=nitTrophyCheck,tag=!nitAward2,advancements={nitref:nitref/ach2.2=true}] at @e[tag=nitTrophyRoom,distance=..12] run setblock ~2 ~1 ~4 emerald_block
playsound minecraft:entity.player.levelup player @s[tag=nitTrophyCheck,tag=!nitAward2,advancements={nitref:nitref/ach2.2=true}] ~ ~ ~ 20
tag @s[tag=nitTrophyCheck,tag=!nitAward2,advancements={nitref:nitref/ach2.2=true}] add nitAward2

execute if entity @s[tag=nitTrophyCheck,tag=!nitAward3,advancements={nitref:nitref/ach3.3=true}] at @e[tag=nitTrophyRoom,distance=..12] run setblock ~-2 ~1 ~4 netherite_block
playsound minecraft:entity.player.levelup player @s[tag=nitTrophyCheck,tag=!nitAward3,advancements={nitref:nitref/ach3.3=true}] ~ ~ ~ 20
tag @s[tag=nitTrophyCheck,tag=!nitAward3,advancements={nitref:nitref/ach3.3=true}] add nitAward3

execute if entity @s[tag=nitTrophyCheck,tag=!nitAward4,advancements={nitk:nitk/complete_town=true}] at @e[tag=nitTrophyRoom,distance=..12] run setblock ~-4 ~1 ~2 gold_block
playsound minecraft:entity.player.levelup player @s[tag=nitTrophyCheck,tag=!nitAward4,advancements={nitk:nitk/complete_town=true}] ~ ~ ~ 20
tag @s[tag=nitTrophyCheck,tag=!nitAward4,advancements={nitk:nitk/complete_town=true}] add nitAward4

execute if entity @s[tag=nitTrophyCheck,tag=!nitAward5,advancements={nitk:nitk/complete_castle=true}] at @e[tag=nitTrophyRoom,distance=..12] run setblock ~-4 ~1 ~-2 gold_block
playsound minecraft:entity.player.levelup player @s[tag=nitTrophyCheck,tag=!nitAward5,advancements={nitk:nitk/complete_castle=true}] ~ ~ ~ 20
tag @s[tag=nitTrophyCheck,tag=!nitAward5,advancements={nitk:nitk/complete_castle=true}] add nitAward5

execute if entity @s[tag=nitTrophyCheck,tag=!nitAward6,advancements={nitco:nitco/ach2.2=true}] at @e[tag=nitTrophyRoom,distance=..12] run setblock ~2 ~1 ~-4 emerald_block
playsound minecraft:entity.player.levelup player @s[tag=nitTrophyCheck,tag=!nitAward6,advancements={nitco:nitco/ach2.2=true}] ~ ~ ~ 20
tag @s[tag=nitTrophyCheck,tag=!nitAward6,advancements={nitco:nitco/ach2.2=true}] add nitAward6

execute if entity @s[tag=nitTrophyCheck,tag=!nitAward7,advancements={nitco:nitco/ach5.2=true}] at @e[tag=nitTrophyRoom,distance=..12] run setblock ~4 ~1 ~-2 diamond_block
playsound minecraft:entity.player.levelup player @s[tag=nitTrophyCheck,tag=!nitAward7,advancements={nitco:nitco/ach5.2=true}] ~ ~ ~ 20
tag @s[tag=nitTrophyCheck,tag=!nitAward7,advancements={nitco:nitco/ach5.2=true}] add nitAward7

tag @s remove nitTrophyCheck