scoreboard players set #ok maprot 1

scoreboard players set #c00 maprot -99
execute positioned -32.5 129.5 49.5 store result score #c00 maprot run data get entity @e[type=minecraft:glow_item_frame,distance=..0.8,limit=1,sort=nearest] ItemRotation 1
scoreboard players operation #d00 maprot = #c00 maprot
scoreboard players operation #d00 maprot -= #s00 maprot
execute unless score #d00 maprot matches 0 unless score #d00 maprot matches 4 unless score #d00 maprot matches -4 run scoreboard players set #ok maprot 0

scoreboard players set #c01 maprot -99
execute positioned -31.5 129.5 49.5 store result score #c01 maprot run data get entity @e[type=minecraft:glow_item_frame,distance=..0.8,limit=1,sort=nearest] ItemRotation 1
scoreboard players operation #d01 maprot = #c01 maprot
scoreboard players operation #d01 maprot -= #s01 maprot
execute unless score #d01 maprot matches 0 unless score #d01 maprot matches 4 unless score #d01 maprot matches -4 run scoreboard players set #ok maprot 0

scoreboard players set #c02 maprot -99
execute positioned -30.5 129.5 49.5 store result score #c02 maprot run data get entity @e[type=minecraft:glow_item_frame,distance=..0.8,limit=1,sort=nearest] ItemRotation 1
scoreboard players operation #d02 maprot = #c02 maprot
scoreboard players operation #d02 maprot -= #s02 maprot
execute unless score #d02 maprot matches 0 unless score #d02 maprot matches 4 unless score #d02 maprot matches -4 run scoreboard players set #ok maprot 0

scoreboard players set #c03 maprot -99
execute positioned -29.5 129.5 49.5 store result score #c03 maprot run data get entity @e[type=minecraft:glow_item_frame,distance=..0.8,limit=1,sort=nearest] ItemRotation 1
scoreboard players operation #d03 maprot = #c03 maprot
scoreboard players operation #d03 maprot -= #s03 maprot
execute unless score #d03 maprot matches 0 unless score #d03 maprot matches 4 unless score #d03 maprot matches -4 run scoreboard players set #ok maprot 0

scoreboard players set #c04 maprot -99
execute positioned -28.5 129.5 49.5 store result score #c04 maprot run data get entity @e[type=minecraft:glow_item_frame,distance=..0.8,limit=1,sort=nearest] ItemRotation 1
scoreboard players operation #d04 maprot = #c04 maprot
scoreboard players operation #d04 maprot -= #s04 maprot
execute unless score #d04 maprot matches 0 unless score #d04 maprot matches 4 unless score #d04 maprot matches -4 run scoreboard players set #ok maprot 0

scoreboard players set #c10 maprot -99
execute positioned -32.5 129.5 48.5 store result score #c10 maprot run data get entity @e[type=minecraft:glow_item_frame,distance=..0.8,limit=1,sort=nearest] ItemRotation 1
scoreboard players operation #d10 maprot = #c10 maprot
scoreboard players operation #d10 maprot -= #s10 maprot
execute unless score #d10 maprot matches 0 unless score #d10 maprot matches 4 unless score #d10 maprot matches -4 run scoreboard players set #ok maprot 0

scoreboard players set #c11 maprot -99
execute positioned -31.5 129.5 48.5 store result score #c11 maprot run data get entity @e[type=minecraft:glow_item_frame,distance=..0.8,limit=1,sort=nearest] ItemRotation 1
scoreboard players operation #d11 maprot = #c11 maprot
scoreboard players operation #d11 maprot -= #s11 maprot
execute unless score #d11 maprot matches 0 unless score #d11 maprot matches 4 unless score #d11 maprot matches -4 run scoreboard players set #ok maprot 0

scoreboard players set #c12 maprot -99
execute positioned -30.5 129.5 48.5 store result score #c12 maprot run data get entity @e[type=minecraft:glow_item_frame,distance=..0.8,limit=1,sort=nearest] ItemRotation 1
scoreboard players operation #d12 maprot = #c12 maprot
scoreboard players operation #d12 maprot -= #s12 maprot
execute unless score #d12 maprot matches 0 unless score #d12 maprot matches 4 unless score #d12 maprot matches -4 run scoreboard players set #ok maprot 0

scoreboard players set #c13 maprot -99
execute positioned -29.5 129.5 48.5 store result score #c13 maprot run data get entity @e[type=minecraft:glow_item_frame,distance=..0.8,limit=1,sort=nearest] ItemRotation 1
scoreboard players operation #d13 maprot = #c13 maprot
scoreboard players operation #d13 maprot -= #s13 maprot
execute unless score #d13 maprot matches 0 unless score #d13 maprot matches 4 unless score #d13 maprot matches -4 run scoreboard players set #ok maprot 0

scoreboard players set #c14 maprot -99
execute positioned -28.5 129.5 48.5 store result score #c14 maprot run data get entity @e[type=minecraft:glow_item_frame,distance=..0.8,limit=1,sort=nearest] ItemRotation 1
scoreboard players operation #d14 maprot = #c14 maprot
scoreboard players operation #d14 maprot -= #s14 maprot
execute unless score #d14 maprot matches 0 unless score #d14 maprot matches 4 unless score #d14 maprot matches -4 run scoreboard players set #ok maprot 0

scoreboard players set #c20 maprot -99
execute positioned -32.5 129.5 47.5 store result score #c20 maprot run data get entity @e[type=minecraft:glow_item_frame,distance=..0.8,limit=1,sort=nearest] ItemRotation 1
scoreboard players operation #d20 maprot = #c20 maprot
scoreboard players operation #d20 maprot -= #s20 maprot
execute unless score #d20 maprot matches 0 unless score #d20 maprot matches 4 unless score #d20 maprot matches -4 run scoreboard players set #ok maprot 0

scoreboard players set #c21 maprot -99
execute positioned -31.5 129.5 47.5 store result score #c21 maprot run data get entity @e[type=minecraft:glow_item_frame,distance=..0.8,limit=1,sort=nearest] ItemRotation 1
scoreboard players operation #d21 maprot = #c21 maprot
scoreboard players operation #d21 maprot -= #s21 maprot
execute unless score #d21 maprot matches 0 unless score #d21 maprot matches 4 unless score #d21 maprot matches -4 run scoreboard players set #ok maprot 0

scoreboard players set #c22 maprot -99
execute positioned -30.5 129.5 47.5 store result score #c22 maprot run data get entity @e[type=minecraft:glow_item_frame,distance=..0.8,limit=1,sort=nearest] ItemRotation 1
scoreboard players operation #d22 maprot = #c22 maprot
scoreboard players operation #d22 maprot -= #s22 maprot
execute unless score #d22 maprot matches 0 unless score #d22 maprot matches 4 unless score #d22 maprot matches -4 run scoreboard players set #ok maprot 0

scoreboard players set #c23 maprot -99
execute positioned -29.5 129.5 47.5 store result score #c23 maprot run data get entity @e[type=minecraft:glow_item_frame,distance=..0.8,limit=1,sort=nearest] ItemRotation 1
scoreboard players operation #d23 maprot = #c23 maprot
scoreboard players operation #d23 maprot -= #s23 maprot
execute unless score #d23 maprot matches 0 unless score #d23 maprot matches 4 unless score #d23 maprot matches -4 run scoreboard players set #ok maprot 0

scoreboard players set #c24 maprot -99
execute positioned -28.5 129.5 47.5 store result score #c24 maprot run data get entity @e[type=minecraft:glow_item_frame,distance=..0.8,limit=1,sort=nearest] ItemRotation 1
scoreboard players operation #d24 maprot = #c24 maprot
scoreboard players operation #d24 maprot -= #s24 maprot
execute unless score #d24 maprot matches 0 unless score #d24 maprot matches 4 unless score #d24 maprot matches -4 run scoreboard players set #ok maprot 0

scoreboard players set #c30 maprot -99
execute positioned -32.5 129.5 46.5 store result score #c30 maprot run data get entity @e[type=minecraft:glow_item_frame,distance=..0.8,limit=1,sort=nearest] ItemRotation 1
scoreboard players operation #d30 maprot = #c30 maprot
scoreboard players operation #d30 maprot -= #s30 maprot
execute unless score #d30 maprot matches 0 unless score #d30 maprot matches 4 unless score #d30 maprot matches -4 run scoreboard players set #ok maprot 0

scoreboard players set #c31 maprot -99
execute positioned -31.5 129.5 46.5 store result score #c31 maprot run data get entity @e[type=minecraft:glow_item_frame,distance=..0.8,limit=1,sort=nearest] ItemRotation 1
scoreboard players operation #d31 maprot = #c31 maprot
scoreboard players operation #d31 maprot -= #s31 maprot
execute unless score #d31 maprot matches 0 unless score #d31 maprot matches 4 unless score #d31 maprot matches -4 run scoreboard players set #ok maprot 0

scoreboard players set #c32 maprot -99
execute positioned -30.5 129.5 46.5 store result score #c32 maprot run data get entity @e[type=minecraft:glow_item_frame,distance=..0.8,limit=1,sort=nearest] ItemRotation 1
scoreboard players operation #d32 maprot = #c32 maprot
scoreboard players operation #d32 maprot -= #s32 maprot
execute unless score #d32 maprot matches 0 unless score #d32 maprot matches 4 unless score #d32 maprot matches -4 run scoreboard players set #ok maprot 0

scoreboard players set #c33 maprot -99
execute positioned -29.5 129.5 46.5 store result score #c33 maprot run data get entity @e[type=minecraft:glow_item_frame,distance=..0.8,limit=1,sort=nearest] ItemRotation 1
scoreboard players operation #d33 maprot = #c33 maprot
scoreboard players operation #d33 maprot -= #s33 maprot
execute unless score #d33 maprot matches 0 unless score #d33 maprot matches 4 unless score #d33 maprot matches -4 run scoreboard players set #ok maprot 0

scoreboard players set #c34 maprot -99
execute positioned -28.5 129.5 46.5 store result score #c34 maprot run data get entity @e[type=minecraft:glow_item_frame,distance=..0.8,limit=1,sort=nearest] ItemRotation 1
scoreboard players operation #d34 maprot = #c34 maprot
scoreboard players operation #d34 maprot -= #s34 maprot
execute unless score #d34 maprot matches 0 unless score #d34 maprot matches 4 unless score #d34 maprot matches -4 run scoreboard players set #ok maprot 0

scoreboard players set #c40 maprot -99
execute positioned -32.5 129.5 45.5 store result score #c40 maprot run data get entity @e[type=minecraft:glow_item_frame,distance=..0.8,limit=1,sort=nearest] ItemRotation 1
scoreboard players operation #d40 maprot = #c40 maprot
scoreboard players operation #d40 maprot -= #s40 maprot
execute unless score #d40 maprot matches 0 unless score #d40 maprot matches 4 unless score #d40 maprot matches -4 run scoreboard players set #ok maprot 0

scoreboard players set #c41 maprot -99
execute positioned -31.5 129.5 45.5 store result score #c41 maprot run data get entity @e[type=minecraft:glow_item_frame,distance=..0.8,limit=1,sort=nearest] ItemRotation 1
scoreboard players operation #d41 maprot = #c41 maprot
scoreboard players operation #d41 maprot -= #s41 maprot
execute unless score #d41 maprot matches 0 unless score #d41 maprot matches 4 unless score #d41 maprot matches -4 run scoreboard players set #ok maprot 0

scoreboard players set #c42 maprot -99
execute positioned -30.5 129.5 45.5 store result score #c42 maprot run data get entity @e[type=minecraft:glow_item_frame,distance=..0.8,limit=1,sort=nearest] ItemRotation 1
scoreboard players operation #d42 maprot = #c42 maprot
scoreboard players operation #d42 maprot -= #s42 maprot
execute unless score #d42 maprot matches 0 unless score #d42 maprot matches 4 unless score #d42 maprot matches -4 run scoreboard players set #ok maprot 0

scoreboard players set #c43 maprot -99
execute positioned -29.5 129.5 45.5 store result score #c43 maprot run data get entity @e[type=minecraft:glow_item_frame,distance=..0.8,limit=1,sort=nearest] ItemRotation 1
scoreboard players operation #d43 maprot = #c43 maprot
scoreboard players operation #d43 maprot -= #s43 maprot
execute unless score #d43 maprot matches 0 unless score #d43 maprot matches 4 unless score #d43 maprot matches -4 run scoreboard players set #ok maprot 0

scoreboard players set #c44 maprot -99
execute positioned -28.5 129.5 45.5 store result score #c44 maprot run data get entity @e[type=minecraft:glow_item_frame,distance=..0.8,limit=1,sort=nearest] ItemRotation 1
scoreboard players operation #d44 maprot = #c44 maprot
scoreboard players operation #d44 maprot -= #s44 maprot
execute unless score #d44 maprot matches 0 unless score #d44 maprot matches 4 unless score #d44 maprot matches -4 run scoreboard players set #ok maprot 0

execute if score #ok maprot matches 1 run setblock -33 136 49 minecraft:redstone_block
execute unless score #ok maprot matches 1 run setblock -33 136 49 minecraft:air