execute in overworld run data merge block 999982 123 999978 {auto:0b}
execute in minecraft:overworld run setblock 999981 231 999974 minecraft:redstone_block

#execute at @s run fill ~1 5 ~45 ~-1 6 ~45 soul_sand
#execute at @s positioned ~-44 7 ~ run summon zombified_piglin ~ ~ ~
#execute at @s positioned ~44 4 ~ run fill ~-8 ~ ~-12 ~12 ~10 ~12 black_concrete hollow
execute at @s run summon armor_stand ~ 0 ~45 {CustomName:"\"LavD2\"",Invisible:1b,Silent:1b,NoGravity:1,Invulnerable:1}
execute at @s run summon armor_stand ~-1 0 ~45 {CustomName:"\"LavD2\"",Invisible:1b,Silent:1b,NoGravity:1,Invulnerable:1}
#execute at @s positioned ~ ~ ~45 run execute at @e[name=LavD22,distance=..40] run fill ~ 7 ~ ~ 7 ~ wither_skeleton_skull
execute at @s run setblock ~ 0 ~70 repeating_command_block[facing=up]{auto:1b,Command:"execute as @e[type=armor_stand,name=LavD2] run execute at @s run execute at @s unless block ~ 7 ~ wither_skeleton_skull run summon cow",TrackOutput:0}
execute at @s run setblock ~ 1 ~70 chain_command_block[facing=up,conditional=true]{auto:1b,Command:"data merge block ~ ~1 ~ {auto:1b}",TrackOutput:0}
execute at @s run setblock ~ 2 ~70 command_block[facing=up]{auto:0b,Command:"execute at @e[name=LavD22] positioned ~ ~-57 ~ run kill @e[distance=..40,type=item]",TrackOutput:0}
execute at @s run setblock ~ 4 ~70 chain_command_block[facing=up]{auto:1b,Command:"execute at @e[name=LavD] positioned ~ 0 ~58 run fill ~-14 ~ ~-1 ~14 ~28 ~1 infested_stone",TrackOutput:0}
execute at @s run setblock ~ 5 ~70 chain_command_block[facing=up]{auto:1b,Command:"execute at @e[name=LavD] positioned ~15 0 ~38 run fill ~-1 ~ ~-22 ~1 ~28 ~18 infested_stone",TrackOutput:0}
execute at @s run setblock ~ 6 ~70 chain_command_block[facing=up]{auto:1b,Command:"execute at @e[name=LavD] positioned ~-15 0 ~38 run fill ~-1 ~ ~-22 ~1 ~28 ~18 infested_stone",TrackOutput:0}
execute at @s run setblock ~ 7 ~70 chain_command_block[facing=up]{auto:1b,Command:"execute at @e[name=LavD] positioned ~ 5 ~44 run fill ~-5 ~-2 ~ ~5 ~6 ~-10 air",TrackOutput:0}
execute at @s run setblock ~ 8 ~70 chain_command_block[facing=up]{auto:1b,Command:"execute at @e[limit=1,name=LavD] positioned ~ ~ ~45 run execute at @e[name=LavD2,distance=..35] run summon skeleton ~ 10 ~-20",TrackOutput:0}
execute at @s run setblock ~ 9 ~70 chain_command_block[facing=up]{auto:1b,Command:"execute at @e[name=LavD22] run execute at @e[distance=..20,type=wither] positioned ~ 0 ~ run tp @e[type=wither,distance=..1] ~ ~2 ~",TrackOutput:0}
execute at @s run setblock ~ 10 ~70 chain_command_block[facing=up]{auto:1b,Command:"execute at @e[limit=1,name=LavD] positioned ~ ~ ~45 run execute at @e[name=LavD2,distance=..15] run summon ghast ~ 5 ~-30",TrackOutput:0}
execute at @s run setblock ~ 11 ~70 chain_command_block[facing=up]{auto:1b,Command:"kill @e[distance=..200,name=LavD2]",TrackOutput:0}
execute at @s run setblock ~ 12 ~70 chain_command_block[facing=up]{auto:1b,Command:"fill ~ 0 ~ ~ 12 ~ air",TrackOutput:0}
execute at @s positioned ~5 ~2 ~ run fill ~35 ~20 ~-20 ~ ~ ~20 black_concrete replace netherrack
execute at @s positioned ~5 ~2 ~ run fill ~35 ~20 ~-20 ~ ~ ~20 black_concrete replace nether_quartz_ore
execute at @s positioned ~35 ~2 ~ run fill ~10 ~20 ~-20 ~ ~ ~20 black_concrete replace netherrack
execute at @s positioned ~35 ~2 ~ run fill ~10 ~20 ~-20 ~ ~ ~20 black_concrete replace nether_quartz_ore
execute at @s run execute at @e[sort=random,type=!player,limit=25] run execute at @s run summon stray ~ ~ ~ {PersistenceRequired:1b,Tags:["NetherStray","GKNameTag"],HandItems:[{id:"minecraft:bow",Count:1b,tag:{Enchantments:[{id:"minecraft:punch",lvl:2s}]}},{}],active_effects:[{id:"minecraft:fire_resistance",amplifier:0,duration:1200000},{id:"minecraft:slow_falling",amplifier:0,duration:400},{id:"minecraft:resistance",amplifier:6,duration:100}]}
execute at @s run spreadplayers ~ ~ 1 20 false @e[type=stray,tag=NetherStray,limit=25]
execute at @s run execute as @e[distance=..1000,type=stray,tag=NetherStray] run execute at @s run tp @s ~ 40 ~
execute at @s positioned ~ 8 ~ run summon stray ~ ~ ~ {PersistenceRequired:1b,Tags:["NetherStray","GKNameTag"],HandItems:[{id:"minecraft:bow",Count:1b,tag:{Enchantments:[{id:"minecraft:punch",lvl:2s}]}},{}],active_effects:[{id:"minecraft:fire_resistance",amplifier:0,duration:1200000},{id:"minecraft:slow_falling",amplifier:0,duration:400}]}
execute at @s positioned ~5 8 ~ run summon stray ~ ~ ~ {PersistenceRequired:1b,Tags:["NetherStray","GKNameTag"],HandItems:[{id:"minecraft:bow",Count:1b,tag:{Enchantments:[{id:"minecraft:punch",lvl:2s}]}},{}],active_effects:[{id:"minecraft:fire_resistance",amplifier:0,duration:1200000},{id:"minecraft:slow_falling",amplifier:0,duration:400}]}
execute at @s positioned ~-5 8 ~ run summon stray ~ ~ ~ {PersistenceRequired:1b,Tags:["NetherStray","GKNameTag"],HandItems:[{id:"minecraft:bow",Count:1b,tag:{Enchantments:[{id:"minecraft:punch",lvl:2s}]}},{}],active_effects:[{id:"minecraft:fire_resistance",amplifier:0,duration:1200000},{id:"minecraft:slow_falling",amplifier:0,duration:400}]}
execute at @s positioned ~ 8 ~5 run summon stray ~ ~ ~ {PersistenceRequired:1b,Tags:["NetherStray","GKNameTag"],HandItems:[{id:"minecraft:bow",Count:1b,tag:{Enchantments:[{id:"minecraft:punch",lvl:2s}]}},{}],active_effects:[{id:"minecraft:fire_resistance",amplifier:0,duration:1200000},{id:"minecraft:slow_falling",amplifier:0,duration:400}]}
execute at @s positioned ~ 8 ~-5 run summon stray ~ ~ ~ {PersistenceRequired:1b,Tags:["NetherStray","GKNameTag"],HandItems:[{id:"minecraft:bow",Count:1b,tag:{Enchantments:[{id:"minecraft:punch",lvl:2s}]}},{}],active_effects:[{id:"minecraft:fire_resistance",amplifier:0,duration:1200000},{id:"minecraft:slow_falling",amplifier:0,duration:400}]}


execute at @s positioned ~14 4 ~ run fill ~3 ~ ~-12 ~22 ~-4 ~12 black_concrete
execute at @s positioned ~14 4 ~ run fill ~4 ~ ~-9 ~21 ~-4 ~9 air
execute at @s positioned ~26 3 ~-3 run fill ~10 ~ ~8 ~2 ~5 ~ bone_block
execute at @s positioned ~26 3 ~-3 run fill ~3 ~ ~8 ~3 ~5 ~-1 air
execute at @s positioned ~26 3 ~-3 run fill ~5 ~ ~8 ~5 ~5 ~-1 air
execute at @s positioned ~26 3 ~-3 run fill ~7 ~ ~8 ~7 ~5 ~-1 air
execute at @s positioned ~26 3 ~-3 run fill ~9 ~ ~8 ~9 ~5 ~-1 air
execute at @s positioned ~26 3 ~-3 run fill ~10 ~1 ~3 ~ ~5 ~5 air
execute at @s positioned ~26 3 ~-3 run fill ~10 ~1 ~1 ~ ~4 ~7 air
execute at @s positioned ~26 3 ~-3 run fill ~10 ~5 ~8 ~ ~6 ~8 air
execute at @s positioned ~26 3 ~-3 run fill ~10 ~5 ~ ~ ~6 ~ air
execute at @s positioned ~15 ~5 ~ run fill ~-1 ~ ~-17 ~2 ~ ~17 magma_block
execute at @s positioned ~9 ~5 ~ run fill ~ ~ ~-1 ~38 ~ ~3 magma_block
execute at @s positioned ~9 ~5 ~ run fill ~ ~ ~ ~38 ~ ~2 red_nether_bricks
execute at @s positioned ~15 ~5 ~ run fill ~ ~ ~-17 ~1 ~ ~17 red_nether_bricks
execute at @s positioned ~51 4 ~-1 run fill ~ ~ ~ ~ ~5 ~4 magma_block
execute at @s positioned ~52 4 ~-1 run fill ~ ~ ~ ~ ~5 ~4 obsidian
execute at @s positioned ~52 4 ~ run fill ~ ~2 ~ ~-1 ~4 ~2 air
execute at @s positioned ~49 5 ~ run fill ~ ~ ~ ~3 ~ ~2 obsidian
##############SECOND PART

execute at @s run fill ~-40 0 ~-40 ~40 0 ~40 nether_wart_block replace bedrock
execute at @s run fill ~-40 0 ~-40 ~40 0 ~40 nether_wart_block replace #suhc:concrete
execute at @s run fill ~-80 0 ~-80 ~80 0 ~80 nether_wart_block replace bedrock
execute at @s run fill ~-80 0 ~-80 ~80 0 ~80 nether_wart_block replace #suhc:concrete


#keep
execute at @s positioned ~-42 2 ~ run setblock ~ ~ ~ minecraft:structure_block[mode=load]{name:"suhc:crumblingkeep",posX:-9,posZ:-11,posY:-1,rotation:"",mirror:NONE,mode:LOAD,ignoreEntities:0b} destroy
execute at @s positioned ~-42 2 ~ run setblock ~ ~1 ~ minecraft:redstone_block
execute at @s positioned ~-20 8 ~2 run summon stray ~ ~ ~ {PersistenceRequired:1b,Tags:["NetherStray","GKNameTag"],HandItems:[{id:"minecraft:bow",Count:1b,tag:{Enchantments:[{id:"minecraft:punch",lvl:2s}]}},{}],active_effects:[{id:"minecraft:fire_resistance",amplifier:0,duration:1200000},{id:"minecraft:slow_falling",amplifier:0,duration:400}]}
execute at @s positioned ~-20 8 ~-2 run summon stray ~ ~ ~ {PersistenceRequired:1b,Tags:["NetherStray","GKNameTag"],HandItems:[{id:"minecraft:bow",Count:1b,tag:{Enchantments:[{id:"minecraft:punch",lvl:2s}]}},{}],active_effects:[{id:"minecraft:fire_resistance",amplifier:0,duration:1200000},{id:"minecraft:slow_falling",amplifier:0,duration:400}]}

#shop
execute at @s positioned ~46 5 ~1 run setblock ~ ~ ~ minecraft:structure_block[mode=load]{name:"suhc:nethershop",posX:-18,posZ:-16,posY:-5,rotation:"",mirror:NONE,mode:LOAD,ignoreEntities:0b} destroy
execute at @s positioned ~46 5 ~1 run setblock ~ ~1 ~ minecraft:redstone_block
execute at @s positioned ~46 0 ~1 run summon armor_stand ~ ~ ~ {Marker:1b,Invisible:1b,Silent:1b,Silent:1b,NoGravity:1,Tags:["NetherShopMid"]}
execute as @e[type=armor_stand,name=DayQ] run execute store result score @s CadeyrnShopX run data get entity @e[name=LavD,type=minecraft:armor_stand,limit=1] Pos[0]
execute as @e[type=armor_stand,name=DayQ] run execute store result score @s CadeyrnShopY run data get entity @e[name=LavD,type=minecraft:armor_stand,limit=1] Pos[1]
execute as @e[type=armor_stand,name=DayQ] run execute store result score @s CadeyrnShopZ run data get entity @e[name=LavD,type=minecraft:armor_stand,limit=1] Pos[2]
execute as @e[type=armor_stand,name=DayQ] run scoreboard players add @s CadeyrnShopX 44
execute as @e[type=armor_stand,name=DayQ] run scoreboard players set @s CadeyrnShopY 5
execute as @e[type=armor_stand,name=DayQ] run scoreboard players add @s CadeyrnShopZ 1
execute at @s positioned ~20 8 ~2 run summon stray ~ ~ ~ {PersistenceRequired:1b,Tags:["NetherStray","GKNameTag"],HandItems:[{id:"minecraft:bow",Count:1b,tag:{Enchantments:[{id:"minecraft:punch",lvl:2s}]}},{}],active_effects:[{id:"minecraft:fire_resistance",amplifier:0,duration:1200000},{id:"minecraft:slow_falling",amplifier:0,duration:400}]}
execute at @s positioned ~20 8 ~-2 run summon stray ~ ~ ~ {PersistenceRequired:1b,Tags:["NetherStray","GKNameTag"],HandItems:[{id:"minecraft:bow",Count:1b,tag:{Enchantments:[{id:"minecraft:punch",lvl:2s}]}},{}],active_effects:[{id:"minecraft:fire_resistance",amplifier:0,duration:1200000},{id:"minecraft:slow_falling",amplifier:0,duration:400}]}

#trap
execute at @s positioned ~ 5 ~42 run setblock ~ ~ ~ minecraft:structure_block[mode=load]{name:"suhc:withertrap",posX:-10,posZ:-8,posY:-3,rotation:"",mirror:NONE,mode:LOAD,ignoreEntities:0b} destroy
execute at @s positioned ~ 5 ~42 run setblock ~ ~1 ~ minecraft:redstone_block
execute at @s positioned ~2 8 ~20 run summon stray ~ ~ ~ {PersistenceRequired:1b,Tags:["NetherStray","GKNameTag"],HandItems:[{id:"minecraft:bow",Count:1b,tag:{Enchantments:[{id:"minecraft:punch",lvl:2s}]}},{}],active_effects:[{id:"minecraft:fire_resistance",amplifier:0,duration:1200000},{id:"minecraft:slow_falling",amplifier:0,duration:400}]}
execute at @s positioned ~-2 8 ~20 run summon stray ~ ~ ~ {PersistenceRequired:1b,Tags:["NetherStray","GKNameTag"],HandItems:[{id:"minecraft:bow",Count:1b,tag:{Enchantments:[{id:"minecraft:punch",lvl:2s}]}},{}],active_effects:[{id:"minecraft:fire_resistance",amplifier:0,duration:1200000},{id:"minecraft:slow_falling",amplifier:0,duration:400}]}

#spooder
execute at @s positioned ~ 4 ~-24 run fill ~ ~ ~ ~ ~ ~ minecraft:structure_block[mode=load]{name:"suhc:netherspooder",posX:-13,posZ:-25,posY:-3,rotation:"",mirror:NONE,mode:LOAD,ignoreEntities:0b} destroy
execute at @s positioned ~ 4 ~-24 run setblock ~ ~1 ~ minecraft:redstone_block
execute at @s positioned ~2 8 ~-15 run summon stray ~ ~ ~ {PersistenceRequired:1b,Tags:["NetherStray","GKNameTag"],HandItems:[{id:"minecraft:bow",Count:1b,tag:{Enchantments:[{id:"minecraft:punch",lvl:2s}]}},{}],active_effects:[{id:"minecraft:fire_resistance",amplifier:0,duration:1200000},{id:"minecraft:slow_falling",amplifier:0,duration:400}]}
execute at @s positioned ~-2 8 ~-15 run summon stray ~ ~ ~ {PersistenceRequired:1b,Tags:["NetherStray","GKNameTag"],HandItems:[{id:"minecraft:bow",Count:1b,tag:{Enchantments:[{id:"minecraft:punch",lvl:2s}]}},{}],active_effects:[{id:"minecraft:fire_resistance",amplifier:0,duration:1200000},{id:"minecraft:slow_falling",amplifier:0,duration:400}]}


execute at @s positioned ~-5 ~2 ~ run fill ~-35 ~20 ~-20 ~ ~ ~20 gray_concrete replace netherrack
execute at @s positioned ~-35 ~2 ~ run fill ~-30 ~20 ~-20 ~ ~ ~20 gray_concrete replace netherrack
execute at @s positioned ~-5 ~2 ~ run fill ~-35 ~20 ~-20 ~ ~ ~20 gray_concrete replace nether_quartz_ore
execute at @s positioned ~-35 ~2 ~ run fill ~-30 ~20 ~-20 ~ ~ ~20 gray_concrete replace nether_quartz_ore
execute at @s positioned ~ ~2 ~5 run fill ~20 ~20 ~35 ~-20 ~ ~ gray_concrete replace netherrack
execute at @s positioned ~ ~2 ~35 run fill ~-20 ~20 ~30 ~20 ~ ~ gray_concrete replace netherrack
execute at @s positioned ~ ~2 ~5 run fill ~20 ~20 ~35 ~-20 ~ ~ gray_concrete replace nether_quartz_ore
execute at @s positioned ~ ~2 ~35 run fill ~-20 ~20 ~30 ~20 ~ ~ gray_concrete replace nether_quartz_ore
execute at @s positioned ~ ~2 ~-5 run fill ~20 ~20 ~-35 ~-20 ~ ~ gray_concrete replace netherrack
execute at @s positioned ~ ~2 ~-35 run fill ~-20 ~20 ~-30 ~20 ~ ~ gray_concrete replace netherrack
execute at @s positioned ~ ~2 ~-35 run fill ~-20 ~20 ~-30 ~20 ~ ~ gray_concrete replace nether_quartz_ore
execute at @s positioned ~-42 0 ~15 run setblock ~ ~ ~ minecraft:repeating_command_block[facing=up]{auto:1b,Command:"execute at @e[name=LavD,limit=1] positioned ~ ~ ~-2 run fill ~-47 7 ~1 ~-46 6 ~3 gold_block replace"}
execute at @s positioned ~-42 1 ~15 run setblock ~ ~ ~ minecraft:chain_command_block[facing=up,conditional=true]{auto:1b,Command:"execute at @e[name=DayQ] positioned ~6 ~16 ~-4 run data merge block ~ ~ ~ {auto:1b}"}
execute at @s positioned ~-42 2 ~15 run setblock ~ ~ ~ minecraft:chain_command_block[facing=up,conditional=true]{auto:1b,Command:"fill ~ ~ ~ ~ ~-2 ~ air"}
execute at @s positioned ~ ~8 ~-43 run fill ~-1 ~ ~ ~3 ~ ~ nether_wart_block
execute at @s positioned ~3 ~8 ~-42 run setblock ~ ~ ~ minecraft:oak_wall_sign[facing=south]{Text1:"{\"text\":\"during this\"}",Text2:"{\"text\":\"process.\",\"color\":\"\"}",Text3:"{\"text\":\"-----\",\"color\":\"\"}",Text4:"{\"text\":\":)\",\"color\":\"\"}"}
execute at @s positioned ~2 ~8 ~-42 run setblock ~ ~ ~ minecraft:oak_wall_sign[facing=south]{Text1:"{\"text\":\"Teleported\"}",Text2:"{\"text\":\"around a little\",\"color\":\"\"}",Text3:"{\"text\":\"bit. You will\",\"color\":\"\"}",Text4:"{\"text\":\"be safe\",\"color\":\"\"}"}
execute at @s positioned ~1 ~8 ~-42 run setblock ~ ~ ~ minecraft:oak_wall_sign[facing=south]{Text1:"{\"text\":\"You will\"}",Text2:"{\"text\":\"experience some\",\"color\":\"\"}",Text3:"{\"text\":\"lag for a\",\"color\":\"\"}",Text4:"{\"text\":\"minute, and be\",\"color\":\"\"}"}
execute at @s positioned ~ ~8 ~-42 run setblock ~ ~ ~ minecraft:oak_wall_sign[facing=south]{Text1:"{\"text\":\"Click this button\"}",Text2:"{\"text\":\"to begin the\",\"color\":\"\"}",Text3:"{\"text\":\"dungeon spawning\",\"color\":\"\"}",Text4:"{\"text\":\"process\",\"color\":\"\"}"}
execute at @s positioned ~43 ~6 ~-11 run setblock ~ ~ ~ minecraft:oak_wall_sign[facing=south]{Text1:"{\"text\":\"OF THE \",\"color\":\"dark_red\",\"bold\":true}",Text2:"{\"text\":\"REQUIRED\",\"color\":\"dark_red\",\"bold\":true}",Text3:"{\"text\":\"INGREDIENTS!!\",\"color\":\"dark_red\",\"bold\":true}",Text4:"{\"text\":\"^^^WARNING^^^\",\"color\":\"dark_red\",\"bold\":true}"}
execute at @s positioned ~-1 ~8 ~-42 run setblock ~ ~ ~ stone_button[facing=south]
execute at @s positioned ~-1 ~8 ~-44 run setblock ~ ~ ~ minecraft:command_block[facing=down]{auto:0b,Command:"execute at @e[name=DayQ] positioned ~3 ~15 ~4 run fill ~ ~ ~ ~ ~ ~ redstone_block"}
execute at @s run setblock ~ 3 ~70 chain_command_block[facing=up,conditional=true]{auto:1b,Command:"data merge block ~ ~1 ~ {auto:1b}",TrackOutput:0}
execute at @s positioned ~-42 3 ~15 run setblock ~ ~ ~ minecraft:repeating_command_block[facing=up]{auto:1b,Command:"execute at @e[type=armor_stand,name=HiFire] run execute at @a[distance=..4] run fill ~ ~-1 ~ ~ ~-2 ~ fire replace air"}




execute as @e[type=stray,tag=!CadeyrnTP,tag=NetherStray] run execute at @s run execute if block ~ 31 ~ lava run kill @s

#text\
#execute as @s[nbt={Dimension:"minecraft:overworld",Inventory:[{id:"minecraft:golden_apple"}]}] run tellraw @a[tag=K] ["",{"text":"The world home has been set, at Coords ","color":"yellow"},,{"text":"x ","color":"yellow"},{"score":{"name":"@e[name=DayQ,limit=1]","objective":"PosY","color":"gold"}},{"text":"y ","color":"yellow"},{"score":{"name":"@e[name=DayQ,limit=1]","objective":"PosZ","color":"gold"}},{"text":"z.","color":"yellow"}]
tellraw @a[tag=K] ["",{"text":"[","color":"dark_blue"},{"text":"Cadeyrn the Wretched","color":"gold"},{"text":"] ","color":"dark_blue"},{"text":"The gods are always willing to ease your burdens...for a suitable sacrifice. I can facilitate this; come to ","color":"dark_red","italic":true},{"score":{"name":"@e[name=DayQ,limit=1]","objective":"CadeyrnShopX"},"color":"red","italic":true},{"text":"x, ","color":"red","italic":true},{"score":{"name":"@e[name=DayQ,limit=1]","objective":"CadeyrnShopY"},"color":"red","italic":true},{"text":"y, ","color":"red","italic":true},{"score":{"name":"@e[name=DayQ,limit=1]","objective":"CadeyrnShopZ"},"color":"red","italic":true},{"text":"z,","color":"red","italic":true},{"text":" in the Nether.","color":"dark_red","italic":true}]
tag @e[name=DayQ] add LavDungMade
execute as @e[type=slime,tag=CadeyrnCraftSl] run data merge entity @s {PersistenceRequired:1b}





###need cadeyrn
#execute at @e[name=LavD] positioned ~52 ~16 ~-5 run setblock ~ ~ ~ minecraft:repeating_command_block[facing=south,conditional=false]{auto:1b,Command:"execute at @e[name=\"Cadeyrn the Wretched\",distance=..15,type=stray] if entity @p[distance=..12] run tellraw @a[distance=..15] [\"\",{\"text\":\"[\",\"color\":\"dark_blue\"},{\"text\":\"Cadeyrn the Wretched\",\"color\":\"gold\"},{\"text\":\"] \",\"color\":\"dark_blue\"},{\"text\":\"Do not approach me, mortal, unless you wish to challenge me. However, you may shop freely.\",\"color\":\"dark_red\"}]"}
#execute at @e[name=LavD] positioned ~52 ~16 ~-4 run setblock ~ ~ ~ minecraft:chain_command_block[facing=south,conditional=true]{auto:1b,Command:"data merge block ~ ~ ~2 {auto:1b}"}
#execute at @e[name=LavD] positioned ~52 ~16 ~-3 run setblock ~ ~ ~ minecraft:chain_command_block[facing=south,conditional=true]{auto:1b,Command:"data merge block ~ ~ ~-2 {auto:0b}"}
#execute at @e[name=LavD] positioned ~52 ~16 ~-2 run setblock ~ ~ ~ minecraft:repeating_command_block[facing=south,conditional=false]{auto:0b,Command:"execute at @e[name=\"Cadeyrn the Wretched\"] unless entity @p[distance=..5] run data merge block ~3 15 ~-1 {auto:1b}"}
#execute at @e[name=LavD] positioned ~52 ~16 ~-1 run setblock ~ ~ ~ minecraft:chain_command_block[facing=south,conditional=true]{auto:1b,Command:"data merge block ~ ~ ~-1 {auto:0b}"}
#execute at @e[name=LavD] positioned ~52 ~16 ~ run setblock ~ ~ ~ minecraft:repeating_command_block[facing=south,conditional=false]{auto:0b,Command:"execute at @e[name=\"Cadeyrn the Wretched\"] if entity @p[distance=..2] run tellraw @a[distance=..15] [\"\",{\"text\":\"[\",\"color\":\"dark_blue\"},{\"text\":\"Cadeyrn the Wretched\",\"color\":\"gold\"},{\"text\":\"] \",\"color\":\"dark_blue\"},{\"text\":\"This is my final warning - Touch me again and you will not leave this place alive.\",\"color\":\"dark_red\"}]"}
#execute at @e[name=LavD] positioned ~52 ~16 ~1 run setblock ~ ~ ~ minecraft:chain_command_block[facing=south,conditional=true]{auto:1b,Command:"data merge block ~ ~ ~-1 {auto:0b}"}
#execute at @e[name=LavD] positioned ~52 ~16 ~2 run setblock ~ ~ ~ minecraft:chain_command_block[facing=south,conditional=true]{auto:1b,Command:"data merge block ~ ~ ~1 {auto:1b}"}
#execute at @e[name=LavD] positioned ~52 ~16 ~3 run setblock ~ ~ ~ minecraft:repeating_command_block[facing=south,conditional=false]{auto:0b,Command:"execute at @e[name=\"Cadeyrn the Wretched\"] unless entity @p[distance=..5] run data merge block ~3 15 ~4 {auto:1b}"}
#execute at @e[name=LavD] positioned ~52 ~16 ~4 run setblock ~ ~ ~ minecraft:chain_command_block[facing=south,conditional=true]{auto:1b,Command:"data merge block ~ ~ ~-1 {auto:0b}"}
#execute at @e[name=LavD] positioned ~52 ~16 ~5 run setblock ~ ~ ~ minecraft:repeating_command_block[facing=south,conditional=false]{auto:0b,Command:"execute at @e[name=\"Cadeyrn the Wretched\"] if entity @p[distance=..3] run tellraw @a[distance=..15] [\"\",{\"text\":\"[\",\"color\":\"dark_blue\"},{\"text\":\"Cadeyrn the Wretched\",\"color\":\"gold\"},{\"text\":\"] \",\"color\":\"dark_blue\"},{\"text\":\"weeeeeeeeeeee\",\"color\":\"dark_red\"}]"}
#execute at @e[name=LavD] positioned ~52 ~16 ~6 run setblock ~ ~ ~ minecraft:chain_command_block[facing=south,conditional=true]{auto:1b,Command:"data merge block ~ ~ ~-1 {auto:0b}"}
#execute at @e[name=LavD] positioned ~52 ~16 ~7 run setblock ~ ~ ~ minecraft:chain_command_block[facing=south,conditional=true]{auto:1b,Command:"execute at @e[name=DayQ] run data merge block 999990 137 999988 {auto:1b}"}