#left north 0
scoreboard players set @a[x=116,y=35,z=89,dx=-108.4,dy=-11,dz=-12,scores={onGround=1..,hp=1..},team=default] outOfMapDeath 1
# right north 0
scoreboard players set @a[x=-7.8,y=35,z=89,dx=-122,dy=-11,dz=-12,scores={onGround=1..,hp=1..},team=default] outOfMapDeath 1
#west 0
scoreboard players set @a[x=-117,y=35,z=90,dx=-12,dy=-11,dz=245,scores={onGround=1..,hp=1..},team=default] outOfMapDeath 1
#south 0
scoreboard players set @a[x=-118,y=35,z=323,dx=247,dy=-11,dz=12,scores={onGround=1..,hp=1..},team=default] outOfMapDeath 1
#east 0
scoreboard players set @a[x=117,y=35,z=322,dx=12,dy=-11,dz=-245,scores={onGround=1..,hp=1..},team=default] outOfMapDeath 1
#level 18 0
scoreboard players set @a[x=115,y=35,z=282,dx=1,dy=0,dz=20,scores={onGround=1..,hp=1..},team=default] outOfMapDeath 1
#left north 1
scoreboard players set @a[x=97,y=54,z=108,dx=-67,dy=-3,dz=-5,scores={onGround=1..,hp=1..},team=default] outOfMapDeath 1
#right north 1
scoreboard players set @a[x=6,y=54,z=108,dx=-109,dy=-3,dz=-5,scores={onGround=1..,hp=1..},team=default] outOfMapDeath 1
#west 1
scoreboard players set @a[x=-98,y=54,z=109,dx=-4,dy=-3,dz=71,scores={onGround=1..,hp=1..},team=default] outOfMapDeath 1
scoreboard players set @a[x=-98,y=54,z=193,dx=-4,dy=-2,dz=118,scores={onGround=1..,hp=1..},team=default] outOfMapDeath 1
#level 33
scoreboard players set @a[x=-101,y=53,z=190,dx=-1,dy=-1,dz=2,scores={onGround=1..,hp=1..},team=default] outOfMapDeath 1
#south 1
scoreboard players set @a[x=-97,y=54,z=304,dx=199,dy=-2,dz=4,scores={onGround=1..,hp=1..},team=default] outOfMapDeath 1
#east 1
scoreboard players set @a[x=102,y=52,z=308,dx=-4,dy=2,dz=-19,scores={onGround=1..,hp=1..},team=default] outOfMapDeath 1
scoreboard players set @a[x=98,y=54,z=288,dx=1,dy=0,dz=-4,scores={onGround=1..,hp=1..},team=default] outOfMapDeath 1
scoreboard players set @a[x=98,y=54,z=282,dx=4,dy=-2,dz=-178,scores={onGround=1..,hp=1..},team=default] outOfMapDeath 1
#level 24
scoreboard players set @a[x=103,y=51,z=122,dx=0,dy=0,dz=-19,scores={onGround=1..,hp=1..},team=default] outOfMapDeath 1
#right north 2
scoreboard players set @a[x=28,y=75,z=129,dx=-110,dy=-3,dz=-5,scores={onGround=1..,hp=1..},team=default] outOfMapDeath 1
#west 2
scoreboard players set @a[x=-77,y=75,z=130,dx=-5,dy=-2,dz=158,scores={onGround=1..,hp=1..},team=default] outOfMapDeath 1
#level 63
scoreboard players set @a[x=-76,y=75,z=283,dx=0,dy=0,dz=0,scores={onGround=1..,hp=1..},team=default] outOfMapDeath 1
#south 2
scoreboard players set @a[x=82,y=72,z=288,dx=-158,dy=3,dz=-5,scores={onGround=1..,hp=1..},team=default] outOfMapDeath 1
#east 2
scoreboard players set @a[x=77,y=75,z=282,dx=5,dy=-3,dz=-158,scores={onGround=1..,hp=1..},team=default] outOfMapDeath 1
#left north 2
scoreboard players set @a[x=76,y=75,z=129,dx=-29,dy=-3,dz=-5,scores={onGround=1..,hp=1..},team=default] outOfMapDeath 1
#north 3
scoreboard players set @a[x=61,y=93,z=145,dx=-122,dy=3,dz=5,scores={onGround=1..,hp=1..},team=default] outOfMapDeath 1
#west 3
scoreboard players set @a[x=-56,y=96,z=151,dx=-5,dy=-3,dz=116,scores={onGround=1..,hp=1..},team=default] outOfMapDeath 1
#south 3
scoreboard players set @a[x=-55,y=96,z=262,dx=116,dy=-3,dz=5,scores={onGround=1..,hp=1..},team=default] outOfMapDeath 1
#east 3
scoreboard players set @a[x=56,y=96,z=261,dx=5,dy=-3,dz=-110,scores={onGround=1..,hp=1..},team=default] outOfMapDeath 1
#level 84
scoreboard players set @a[x=-55,y=96,z=256,dx=3,dy=0,dz=5,scores={onGround=1..,hp=1..},team=default] outOfMapDeath 1
#east 4
scoreboard players set @a[x=35,y=117,z=240,dx=5,dy=-3,dz=-74,scores={onGround=1..,hp=1..},team=default] outOfMapDeath 1
#north 4
scoreboard players set @a[x=34,y=117,z=171,dx=-74,dy=-3,dz=-5,scores={onGround=1..,hp=1..},team=default] outOfMapDeath 1
#west 4
scoreboard players set @a[x=-35,y=117,z=172,dx=-5,dy=-3,dz=74,scores={onGround=1..,hp=1..},team=default] outOfMapDeath 1
#south 4
scoreboard players set @a[x=-34,y=117,z=241,dx=74,dy=-3,dz=5,scores={onGround=1..,hp=1..},team=default] outOfMapDeath 1
#level 98
scoreboard players set @a[x=33,y=117,z=240,dx=1,dy=0,dz=-1,scores={onGround=1..,hp=1..},team=default] outOfMapDeath 1
#south 5
scoreboard players set @a[x=-13,y=138,z=220,dx=32,dy=-3,dz=5,scores={onGround=1..,hp=1..},team=default] outOfMapDeath 1
#east 5
scoreboard players set @a[x=14,y=138,z=219,dx=5,dy=-3,dz=-32,scores={onGround=1..,hp=1..},team=default] outOfMapDeath 1
#north 5
scoreboard players set @a[x=13,y=138,z=192,dx=-32,dy=-3,dz=-5,scores={onGround=1..,hp=1..},team=default] outOfMapDeath 1
#west 5
scoreboard players set @a[x=-14,y=138,z=193,dx=-5,dy=-3,dz=32,scores={onGround=1..,hp=1..},team=default] outOfMapDeath 1

execute at @a[scores={outOfMapDeath=1..}] run summon lightning_bolt ~ ~ ~
kill @a[scores={outOfMapDeath=1..}]