playsound minecraft:ui.button.click ambient @s
scoreboard players add #map map 1

execute if score #map map matches 8.. run scoreboard players set #map map 1

execute if score #map map matches 1 run item replace entity @n[tag=mapdisplay] container.0 with minecraft:paper[minecraft:custom_model_data={floats:[2032.0f]}]
execute if score #map map matches 1 run scoreboard players set .map map 1
execute if score #map map matches 2 run item replace entity @n[tag=mapdisplay] container.0 with minecraft:paper[minecraft:custom_model_data={floats:[2033.0f]}]
execute if score #map map matches 2 run scoreboard players set .map map 2
execute if score #map map matches 3 run scoreboard players set .map map 3
execute if score #map map matches 3 run item replace entity @n[tag=mapdisplay] container.0 with minecraft:paper[minecraft:custom_model_data={floats:[2034.0f]}]
execute if score #map map matches 4 run scoreboard players set .map map 4
execute if score #map map matches 4 run item replace entity @n[tag=mapdisplay] container.0 with minecraft:paper[minecraft:custom_model_data={floats:[2035.0f]}]
execute if score #map map matches 5 run scoreboard players set .map map 5
execute if score #map map matches 5 run item replace entity @n[tag=mapdisplay] container.0 with minecraft:paper[minecraft:custom_model_data={floats:[2036.0f]}]
execute if score #map map matches 6 run scoreboard players set .map map 6
execute if score #map map matches 6 run item replace entity @n[tag=mapdisplay] container.0 with minecraft:paper[minecraft:custom_model_data={floats:[2037.0f]}]

execute if score #map map matches 7 run scoreboard players set .map map 7
execute if score #map map matches 7 run item replace entity @n[tag=mapdisplay] container.0 with minecraft:paper[minecraft:custom_model_data={floats:[2038.0f]}]



item replace entity @e[type=minecraft:armor_stand,tag=right] armor.head with minecraft:paper[minecraft:custom_model_data={floats:[2004.0f]}]

schedule function cf:interaction/resetbutton 4t