scoreboard players add @s jjc_404 1
execute at @s store result score @s jjc_y0 run data get entity @s Pos[1] 10
execute at @s if score @s jjc_y0 < @n[distance=..200,type=marker,tag=jjc_jjc] jjc_y0 run kill @s
execute at @s[tag=jjc_yrjjc_walls,tag=jjc_walls_1,scores={jjc_404=..19}] run fill ~2 ~-1 ~2 ~2 ~-1 ~-2 tuff_bricks replace iron_bars
execute at @s[tag=jjc_yrjjc_walls,tag=jjc_walls_1,scores={jjc_404=..19}] run fill ~-2 ~-1 ~2 ~-2 ~-1 ~-2 tuff_bricks replace iron_bars
execute at @s[tag=jjc_yrjjc_walls,tag=jjc_walls_1,scores={jjc_404=..19}] run fill ~2 ~-1 ~2 ~-2 ~-1 ~2 tuff_bricks replace iron_bars
execute at @s[tag=jjc_yrjjc_walls,tag=jjc_walls_1,scores={jjc_404=..19}] run fill ~2 ~-1 ~-2 ~-2 ~-1 ~-2 tuff_bricks replace iron_bars
execute at @s[tag=jjc_yrjjc_walls,tag=jjc_walls_2,scores={jjc_404=..19}] run fill ~5 ~-1 ~5 ~5 ~-1 ~-5 tuff_bricks replace iron_bars
execute at @s[tag=jjc_yrjjc_walls,tag=jjc_walls_2,scores={jjc_404=..19}] run fill ~-5 ~-1 ~5 ~-5 ~-1 ~-5 tuff_bricks replace iron_bars
execute at @s[tag=jjc_yrjjc_walls,tag=jjc_walls_2,scores={jjc_404=..19}] run fill ~5 ~-1 ~5 ~-5 ~-1 ~5 tuff_bricks replace iron_bars
execute at @s[tag=jjc_yrjjc_walls,tag=jjc_walls_2,scores={jjc_404=..19}] run fill ~5 ~-1 ~-5 ~-5 ~-1 ~-5 tuff_bricks replace iron_bars
execute at @s[tag=jjc_yrjjc_walls,tag=jjc_walls_3,scores={jjc_404=..19}] run fill ~8 ~-1 ~8 ~8 ~-1 ~-8 tuff_bricks replace iron_bars
execute at @s[tag=jjc_yrjjc_walls,tag=jjc_walls_3,scores={jjc_404=..19}] run fill ~-8 ~-1 ~8 ~-8 ~-1 ~-8 tuff_bricks replace iron_bars
execute at @s[tag=jjc_yrjjc_walls,tag=jjc_walls_3,scores={jjc_404=..19}] run fill ~8 ~-1 ~8 ~-8 ~-1 ~8 tuff_bricks replace iron_bars
execute at @s[tag=jjc_yrjjc_walls,tag=jjc_walls_3,scores={jjc_404=..19}] run fill ~8 ~-1 ~-8 ~-8 ~-1 ~-8 tuff_bricks replace iron_bars
execute at @s[tag=jjc_dyjjc_walls,tag=jjc_walls_2,scores={jjc_404=..19}] run fill ~5 ~-1 ~5 ~5 ~-1 ~-5 nether_bricks replace iron_bars
execute at @s[tag=jjc_dyjjc_walls,tag=jjc_walls_2,scores={jjc_404=..19}] run fill ~-5 ~-1 ~5 ~-5 ~-1 ~-5 nether_bricks replace iron_bars
execute at @s[tag=jjc_dyjjc_walls,tag=jjc_walls_2,scores={jjc_404=..19}] run fill ~5 ~-1 ~5 ~-5 ~-1 ~5 nether_bricks replace iron_bars
execute at @s[tag=jjc_dyjjc_walls,tag=jjc_walls_2,scores={jjc_404=..19}] run fill ~5 ~-1 ~-5 ~-5 ~-1 ~-5 nether_bricks replace iron_bars
execute at @s[tag=jjc_dyjjc_walls,tag=jjc_walls_3,scores={jjc_404=..19}] run fill ~8 ~-1 ~8 ~8 ~-1 ~-8 nether_bricks replace iron_bars
execute at @s[tag=jjc_dyjjc_walls,tag=jjc_walls_3,scores={jjc_404=..19}] run fill ~-8 ~-1 ~8 ~-8 ~-1 ~-8 nether_bricks replace iron_bars
execute at @s[tag=jjc_dyjjc_walls,tag=jjc_walls_3,scores={jjc_404=..19}] run fill ~8 ~-1 ~8 ~-8 ~-1 ~8 nether_bricks replace iron_bars
execute at @s[tag=jjc_dyjjc_walls,tag=jjc_walls_3,scores={jjc_404=..19}] run fill ~8 ~-1 ~-8 ~-8 ~-1 ~-8 nether_bricks replace iron_bars
execute at @s[tag=jjc_zejjc_walls,tag=jjc_walls_2,scores={jjc_404=..19}] run fill ~5 ~-1 ~5 ~5 ~-1 ~-5 stone_bricks replace iron_bars
execute at @s[tag=jjc_zejjc_walls,tag=jjc_walls_2,scores={jjc_404=..19}] run fill ~-5 ~-1 ~5 ~-5 ~-1 ~-5 stone_bricks replace iron_bars
execute at @s[tag=jjc_zejjc_walls,tag=jjc_walls_2,scores={jjc_404=..19}] run fill ~5 ~-1 ~5 ~-5 ~-1 ~5 stone_bricks replace iron_bars
execute at @s[tag=jjc_zejjc_walls,tag=jjc_walls_2,scores={jjc_404=..19}] run fill ~5 ~-1 ~-5 ~-5 ~-1 ~-5 stone_bricks replace iron_bars
execute at @s[tag=jjc_zejjc_walls,tag=jjc_walls_3,scores={jjc_404=..19}] run fill ~8 ~-1 ~8 ~8 ~-1 ~-8 stone_bricks replace iron_bars
execute at @s[tag=jjc_zejjc_walls,tag=jjc_walls_3,scores={jjc_404=..19}] run fill ~-8 ~-1 ~8 ~-8 ~-1 ~-8 stone_bricks replace iron_bars
execute at @s[tag=jjc_zejjc_walls,tag=jjc_walls_3,scores={jjc_404=..19}] run fill ~8 ~-1 ~8 ~-8 ~-1 ~8 stone_bricks replace iron_bars
execute at @s[tag=jjc_zejjc_walls,tag=jjc_walls_3,scores={jjc_404=..19}] run fill ~8 ~-1 ~-8 ~-8 ~-1 ~-8 stone_bricks replace iron_bars
execute at @s[tag=jjc_walls_3] run fill ~8 ~ ~8 ~8 ~ ~-8 air
execute at @s[tag=jjc_walls_3] run fill ~-8 ~ ~8 ~-8 ~ ~-8 air
execute at @s[tag=jjc_walls_3] run fill ~8 ~ ~8 ~-8 ~ ~8 air
execute at @s[tag=jjc_walls_3] run fill ~8 ~ ~-8 ~-8 ~ ~-8 air
execute at @s[tag=jjc_walls_1] run fill ~2 ~ ~2 ~2 ~ ~-2 air
execute at @s[tag=jjc_walls_1] run fill ~-2 ~ ~2 ~-2 ~ ~-2 air
execute at @s[tag=jjc_walls_1] run fill ~2 ~ ~2 ~-2 ~ ~2 air
execute at @s[tag=jjc_walls_1] run fill ~2 ~ ~-2 ~-2 ~ ~-2 air
execute at @s[tag=jjc_walls_2] run fill ~5 ~ ~5 ~5 ~ ~-5 air
execute at @s[tag=jjc_walls_2] run fill ~-5 ~ ~5 ~-5 ~ ~-5 air
execute at @s[tag=jjc_walls_2] run fill ~5 ~ ~5 ~-5 ~ ~5 air
execute at @s[tag=jjc_walls_2] run fill ~5 ~ ~-5 ~-5 ~ ~-5 air
execute at @s[tag=jjc_walls_1,scores={jjc_404=20..}] at @n[distance=..200,type=marker,tag=jjc_jjc] run fill ~2 ~ ~2 ~-2 ~1 ~-2 air replace light[level=0]
execute at @s[tag=jjc_walls_2,scores={jjc_404=20..}] at @n[distance=..200,type=marker,tag=jjc_jjc] run fill ~5 ~ ~5 ~-5 ~1 ~-5 air replace light[level=0]
execute at @s[tag=jjc_walls_3,scores={jjc_404=20..}] at @n[distance=..200,type=marker,tag=jjc_jjc] run fill ~8 ~ ~8 ~-8 ~1 ~-8 air replace light[level=0]
tp @s ~ ~-1 ~
execute at @e[type=marker,tag=jjc_sg,distance=1..100,limit=8,sort=nearest] run playsound block.metal.place block @a[distance=..200] ~ ~ ~ 1 1
kill @s[scores={jjc_404=20..}]