execute at @e[scores={LavD=305..325}] run fill ~1 5 ~45 ~-1 6 ~45 soul_sand
#execute at @e[scores={LavD=300..325}] positioned ~ ~ ~-2 run fill ~-47 7 ~1 ~-46 6 ~3 gold_block
#execute at @e[scores={LavD=300..325}] positioned ~ ~ ~-2 run fill ~-50 4 ~-2 ~-43 4 ~6 bedrock
#execute at @e[scores={LavD=300..326}] positioned ~ ~ ~-2 run fill ~-48 5 ~ ~-45 8 ~4 infested_stone replace air
execute at @e[scores={LavD=300..320}] positioned ~-44 7 ~ run summon zombified_piglin ~ ~ ~
execute at @e[scores={LavD=300..328}] positioned ~44 4 ~ run fill ~-8 ~ ~-12 ~12 ~10 ~12 black_concrete hollow
execute at @e[scores={LavD=300..326}] run summon armor_stand ~ 0 ~45 {CustomName:"\"LavD22\"",Invisible:1b,Silent:1b,NoGravity:1,Invulnerable:1}
execute at @e[scores={LavD=300..327}] run summon armor_stand ~-1 0 ~45 {CustomName:"\"LavD22\"",Invisible:1b,Silent:1b,NoGravity:1,Invulnerable:1}
execute at @e[scores={LavD=300..328}] positioned ~ ~ ~45 run execute at @e[name=LavD22,distance=..40] run fill ~ 7 ~ ~ 7 ~ wither_skeleton_skull
execute at @e[name=LavssD] run setblock ~ 0 ~70 repeating_command_block[facing=up]{auto:1b,Command:"execute as @e[name=LavD2] run execute at @s run execute at @s unless block ~ 7 ~ wither_skeleton_skull run summon cow",TrackOutput:0}
execute at @e[name=LavD] run setblock ~ 1 ~70 chain_command_block[facing=up,conditional=true]{auto:1b,Command:"data merge block ~ ~1 ~ {auto:1b}",TrackOutput:0}
execute at @e[name=LavD] 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 @e[name=LavD] 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 @e[name=LavD] 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 @e[name=LavD] 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 @e[name=LavD] 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 @e[name=LavD] 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=LavD22,distance=..35] run summon skeleton ~ 10 ~-20",TrackOutput:0}
execute at @e[name=LavD] 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 @e[name=LavD] 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=LavD22,distance=..15] run summon ghast ~ 5 ~-30",TrackOutput:0}
execute at @e[name=LavD] run setblock ~ 11 ~70 chain_command_block[facing=up]{auto:1b,Command:"kill @e[distance=..200,name=LavD22]",TrackOutput:0}
execute at @e[name=LavD] run setblock ~ 12 ~70 chain_command_block[facing=up]{auto:1b,Command:"fill ~ 0 ~ ~ 12 ~ air",TrackOutput:0}
execute if entity @e[scores={LavD=310}] run scoreboard players add @e[name=DayQ,type=armor_stand] TestforReplace 1
setblock ~-1 ~ ~ redstone_block
execute at @e[name=LavD,limit=1] positioned ~5 ~2 ~ run fill ~35 ~20 ~-20 ~ ~ ~20 black_concrete replace netherrack
execute at @e[name=LavD,limit=1] positioned ~5 ~2 ~ run fill ~35 ~20 ~-20 ~ ~ ~20 black_concrete replace nether_quartz_ore
execute at @e[name=LavD,limit=1] positioned ~35 ~2 ~ run fill ~10 ~20 ~-20 ~ ~ ~20 black_concrete replace netherrack
execute at @e[name=LavD,limit=1] positioned ~35 ~2 ~ run fill ~10 ~20 ~-20 ~ ~ ~20 black_concrete replace nether_quartz_ore
execute at @e[name=LavD,limit=1] run execute at @e[sort=random,type=!player,limit=10,distance=..100] run execute at @e[name=LavD] run summon stray ~ ~ ~ {Tags:["GKNameTag"],HandItems:[{id:"minecraft:bow",Count:1b,tag:{Enchantments:[{id:"minecraft:punch",lvl:2s}]}},{}],ActiveEffects:[{Id:12,Amplifier:0,Duration:1200000},{Id:28,Amplifier:0,Duration:400}]}
execute at @e[name=LavD] run spreadplayers ~ ~ 1 30 false @e[type=stray,limit=12]
execute at @e[name=LavD] run execute as @e[distance=..1000,type=stray] run execute at @s run tp @s ~ 40 ~
execute at @e[name=LavD] positioned ~14 4 ~ run fill ~3 ~ ~-12 ~22 ~-4 ~12 black_concrete
execute at @e[name=LavD] positioned ~14 4 ~ run fill ~4 ~ ~-9 ~21 ~-4 ~9 air
execute at @e[name=LavD] positioned ~26 3 ~-3 run fill ~10 ~ ~8 ~2 ~5 ~ bone_block
execute at @e[name=LavD] positioned ~26 3 ~-3 run fill ~3 ~ ~8 ~3 ~5 ~-1 air
execute at @e[name=LavD] positioned ~26 3 ~-3 run fill ~5 ~ ~8 ~5 ~5 ~-1 air
execute at @e[name=LavD] positioned ~26 3 ~-3 run fill ~7 ~ ~8 ~7 ~5 ~-1 air
execute at @e[name=LavD] positioned ~26 3 ~-3 run fill ~9 ~ ~8 ~9 ~5 ~-1 air
execute at @e[name=LavD] positioned ~26 3 ~-3 run fill ~10 ~1 ~3 ~ ~5 ~5 air
execute at @e[name=LavD] positioned ~26 3 ~-3 run fill ~10 ~1 ~1 ~ ~4 ~7 air
execute at @e[name=LavD] positioned ~26 3 ~-3 run fill ~10 ~5 ~8 ~ ~6 ~8 air
execute at @e[name=LavD] positioned ~26 3 ~-3 run fill ~10 ~5 ~ ~ ~6 ~ air
#?execute at @e[name=LavD] positioned ~26 3 ~-3 run fill ~11 ~ ~4 ~1 ~ ~4 bone_block
execute at @e[name=LavD] positioned ~15 ~5 ~ run fill ~-1 ~ ~-17 ~2 ~ ~17 magma_block
execute at @e[name=LavD] positioned ~9 ~5 ~ run fill ~ ~ ~-1 ~38 ~ ~3 magma_block
execute at @e[name=LavD] positioned ~9 ~5 ~ run fill ~ ~ ~ ~38 ~ ~2 red_nether_bricks
execute at @e[name=LavD] positioned ~15 ~5 ~ run fill ~ ~ ~-17 ~1 ~ ~17 red_nether_bricks
#?execute at @e[name=LavD] positioned ~48 4 ~-1 run fill ~ ~ ~ ~4 ~ ~4 magma_block
execute at @e[name=LavD] positioned ~51 4 ~-1 run fill ~ ~ ~ ~ ~5 ~4 magma_block
execute at @e[name=LavD] positioned ~52 4 ~-1 run fill ~ ~ ~ ~ ~5 ~4 obsidian
execute at @e[name=LavD] positioned ~52 4 ~ run fill ~ ~2 ~ ~-1 ~4 ~2 air
execute at @e[name=LavD] positioned ~49 5 ~ run fill ~ ~ ~ ~3 ~ ~2 obsidian
#######execute at @e[name=LavD] positioned ~51 10 ~-1 run fill ~ ~ ~ ~ ~ ~4 fire
##############SECOND PART

execute at @e[name=LavD] run fill ~-40 0 ~-40 ~40 0 ~40 nether_wart_block replace bedrock
execute at @e[name=LavD] run fill ~-40 0 ~-40 ~40 0 ~40 nether_wart_block replace #suhc:concrete
execute at @e[name=LavD] run fill ~-80 0 ~-80 ~80 0 ~80 nether_wart_block replace bedrock
execute at @e[name=LavD] run fill ~-80 0 ~-80 ~80 0 ~80 nether_wart_block replace #suhc:concrete


#keep
execute at @e[name=LavD] positioned ~-42 2 ~ run setblock ~ ~ ~ minecraft:structure_block[mode=load]{name:"suhc:crumblingkeep",posX:-14,posZ:-13,posY:-2,rotation:"",mirror:NONE,mode:LOAD,ignoreEntities:0b} destroy
execute at @e[name=LavD] positioned ~-42 2 ~ run setblock ~ ~1 ~ minecraft:redstone_block

#shop
execute at @e[name=LavD] 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 @e[name=LavD] positioned ~46 5 ~1 run setblock ~ ~1 ~ minecraft:redstone_block
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 @e[name=LavD] positioned ~46 5 ~1 run tag @e[type=item,distance=..25] add NetherShopText

#trap
execute at @e[name=LavD] 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 @e[name=LavD] positioned ~ 5 ~42 run setblock ~ ~1 ~ minecraft:redstone_block

#spooder
execute at @e[name=LavD] 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 @e[name=LavD] positioned ~ 4 ~-24 run setblock ~ ~1 ~ minecraft:redstone_block


#execute at @e[name=LavD] positioned ~38 ~7 ~-11 run setblock ~ ~ ~ minecraft:stone_button[facing=south,face=wall]
#execute at @e[name=LavD] positioned ~38 ~7 ~-13 run setblock ~ ~ ~ minecraft:command_block[facing=up]{Command:"clear @p[distance=..9] gold_ingot 32"}
#execute at @e[name=LavD] positioned ~38 ~8 ~-13 run setblock ~ ~ ~ minecraft:chain_command_block[facing=up,conditional=true]{auto:1b,Command:"clear @p[distance=..9] blaze_powder 1"}
#execute at @e[name=LavD] positioned ~38 ~9 ~-13 run setblock ~ ~ ~ minecraft:chain_command_block[facing=up,conditional=true]{auto:1b,Command:"tag @p[distance=..9] add KyuLuck"}
#execute at @e[name=LavD] positioned ~38 ~9 ~-13 run setblock ~ ~1 ~ minecraft:chain_command_block[facing=up,conditional=true]{auto:1b,Command:"tellraw @p[tag=KyuLuck] [\"\",{\"text\":\"Congratulations, you are now lucky!\",\"color\":\"green\"},{\"score\":{\"name\":\"\",\"objective\":\"DayQ\"},\"color\":\"green\"},{\"text\":\"\",\"color\":\"green\"}]"}
#execute at @e[name=LavD] positioned ~38 ~11 ~-13 run setblock ~ ~ ~ minecraft:chain_command_block[facing=up,conditional=true]{auto:1b,Command:"execute at @p[distance=..13,tag=KyuLuck] run summon lightning_bolt ~ ~-2 ~"}
#execute at @e[name=LavD] positioned ~38 ~8 ~-11 run setblock ~ ~ ~ minecraft:oak_wall_sign[facing=south]{Text1:"{\"text\":\"Luck, Cost:\",\"color\":\"green\"}",Text2:"{\"text\":\"32 gold ingots\",\"color\":\"gold\"}",Text3:"{\"text\":\"1 blaze powder\",\"color\":\"red\"}",Text4:"{\"text\":\"BLOOD\",\"color\":\"dark_red\",\"bold\":true}"}
#execute at @e[name=LavD] positioned ~38 ~7 ~11 run setblock ~ ~ ~ stone_button[facing=north,face=wall]
#execute at @e[name=LavD] positioned ~38 ~7 ~13 run setblock ~ ~ ~ minecraft:command_block[facing=up]{Command:"clear @p[distance=..13] brewing_stand 1"}
#execute at @e[name=LavD] positioned ~38 ~8 ~13 run setblock ~ ~ ~ minecraft:chain_command_block[facing=up,conditional=true]{auto:1b,Command:"clear @p[distance=..13] egg 1"}
#execute at @e[name=LavD] positioned ~38 ~8 ~11 run setblock ~ ~ ~ minecraft:oak_wall_sign[facing=north]{Text1:"{\"text\":\"Supr. Alchemist\",\"color\":\"green\"}",Text2:"{\"text\":\"Brewing Stand\",\"color\":\"gold\"}",Text3:"{\"text\":\"Egg\",\"color\":\"black\"}",Text4:"{\"text\":\"BLOOD\",\"color\":\"dark_red\",\"bold\":true}"}
#execute at @e[name=LavD] run setblock ~38 ~9 ~13 minecraft:chain_command_block[facing=up,conditional=true]{auto:1b,Command:"give @p[distance=..13] minecraft:villager_spawn_egg{EntityTag:{ id:\"minecraft:villager\",CustomName:\"\\\"Supreme Alchemist\\\"\",VillagerData:{level:5,profession:\"minecraft:cleric\",type:\"minecraft:plains\"},Profession:2,Career:0,CareerLevel:200,Offers:{ Recipes:[ {rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:emerald,Count:4},buyB:{id:gold_ingot,Count:8},sell:{id:brewing_stand,Count:1}}, {rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:emerald,Count:27},buyB:{id:gold_block,Count:2},sell:{id:blaze_powder,Count:1}}, {rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:emerald,Count:2},buyB:{id:diamond,Count:2},sell:{id:potion,Count:3,tag:{Potion:\"minecraft:strength\"}}}, {rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:emerald,Count:1},buyB:{id:sugar,Count:2},sell:{id:potion,Count:3,tag:{Potion:\"minecraft:strong_swiftness\"}}}, {rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:emerald,Count:3},buyB:{id:fish,Damage:3,Count:1},sell:{id:potion,Count:2,tag:{Potion:\"minecraft:water_breathing\"}}}, {rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:diamond,Count:6},buyB:{id:iron_block,Count:2},sell:{id:potion,Count:1,tag:{display:{Name:\"Resistance Potion\"},CustomPotionEffects:[{Id:11,Amplifier:0,Duration:3600}],Potion:\"minecraft:mundane\",CustomPotionColor:3159616}}}, {rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:emerald,Count:5},buyB:{id:golden_apple,Count:1},sell:{id:splash_potion,Count:1,tag:{display:{Name:\"GETMEOUTTAHERE\"},CustomPotionEffects:[{Id:10,Amplifier:0,Duration:120},{Id:1,Amplifier:2,Duration:100},{Id:3,Amplifier:2,Duration:100},{Id:11,Amplifier:0,Duration:300},{Id:22,Amplifier:0,Duration:1200}],Potion:\"minecraft:mundane\",CustomPotionColor:3159616}}}, {rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:gold_block,Count:7},buyB:{id:emerald,Count:8},sell:{id:ghast_tear,Count:1}}, {rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:gold_ingot,Count:2},buyB:{id:emerald,Count:4},sell:{id:glistering_melon_slice,Count:2}}, {rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:ender_pearl,Count:3},buyB:{id:lava_bucket,Count:1},sell:{id:ender_eye,Count:3}},   ]}}} 1"}
#execute at @e[name=LavD] positioned ~38 ~10 ~13 run setblock ~ ~ ~ minecraft:chain_command_block[facing=up,conditional=true]{auto:1b,Command:"execute at @p[distance=..15] run summon lightning_bolt ~ ~-2 ~"}
execute at @e[name=LavD,limit=1] positioned ~-5 ~2 ~ run fill ~-35 ~20 ~-20 ~ ~ ~20 gray_concrete replace netherrack
execute at @e[name=LavD,limit=1] positioned ~-35 ~2 ~ run fill ~-30 ~20 ~-20 ~ ~ ~20 gray_concrete replace netherrack
execute at @e[name=LavD,limit=1] positioned ~-5 ~2 ~ run fill ~-35 ~20 ~-20 ~ ~ ~20 gray_concrete replace nether_quartz_ore
execute at @e[name=LavD,limit=1] positioned ~-35 ~2 ~ run fill ~-30 ~20 ~-20 ~ ~ ~20 gray_concrete replace nether_quartz_ore
execute at @e[name=LavD,limit=1] positioned ~ ~2 ~5 run fill ~20 ~20 ~35 ~-20 ~ ~ gray_concrete replace netherrack
execute at @e[name=LavD,limit=1] positioned ~ ~2 ~35 run fill ~-20 ~20 ~30 ~20 ~ ~ gray_concrete replace netherrack
execute at @e[name=LavD,limit=1] positioned ~ ~2 ~5 run fill ~20 ~20 ~35 ~-20 ~ ~ gray_concrete replace nether_quartz_ore
execute at @e[name=LavD,limit=1] positioned ~ ~2 ~35 run fill ~-20 ~20 ~30 ~20 ~ ~ gray_concrete replace nether_quartz_ore
execute at @e[name=LavD,limit=1] positioned ~ ~2 ~-5 run fill ~20 ~20 ~-35 ~-20 ~ ~ gray_concrete replace netherrack
execute at @e[name=LavD,limit=1] positioned ~ ~2 ~-35 run fill ~-20 ~20 ~-30 ~20 ~ ~ gray_concrete replace netherrack
#?execute at @e[name=LavD,limit=1] positioned ~ ~2 ~-5 run fill ~20 ~20 ~-35 ~-20 ~ ~ gray_concrete replace quartz_ore
execute at @e[name=LavD,limit=1] positioned ~ ~2 ~-35 run fill ~-20 ~20 ~-30 ~20 ~ ~ gray_concrete replace nether_quartz_ore
execute at @e[name=LavD] 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 @e[name=LavD] positioned ~-42 1 ~15 run setblock ~ ~ ~ minecraft:chain_command_block[facing=up,conditional=true]{auto:1b,Command:"execute in overworld run data merge block 999985 120 999975 {auto:1b}"}
execute at @e[name=LavD] positioned ~-42 2 ~15 run setblock ~ ~ ~ minecraft:chain_command_block[facing=up,conditional=true]{auto:1b,Command:"fill ~ ~ ~ ~ ~-2 ~ air"}
execute at @e[name=LavD] positioned ~ ~8 ~-43 run fill ~-1 ~ ~ ~3 ~ ~ nether_wart_block
#execute at @e[name=LavD] positioned ~42 ~6 ~-11 run setblock ~ ~ ~ minecraft:oak_wall_sign[facing=south]{Text1:"{\"text\":\"WARNING: DO NOT\",\"color\":\"dark_red\",\"bold\":true}",Text2:"{\"text\":\"CLICK BUTTON\",\"color\":\"dark_red\",\"bold\":true}",Text3:"{\"text\":\"UNLESS YOU\",\"color\":\"dark_red\",\"bold\":true}",Text4:"{\"text\":\"HAVE ALL\",\"color\":\"dark_red\",\"bold\":true}"}
#execute at @e[name=LavD] positioned ~43 ~8 ~-11 run setblock ~ ~ ~ minecraft:oak_wall_sign[facing=south]{Text1:"{\"text\":\"Iron Sword,\",\"color\":\"dark_red\"}",Text2:"{\"text\":\"Gold Pick, BLOOD\",\"color\":\"dark_red\"}",Text3:"{\"text\":\"Lava Bucket,\",\"color\":\"dark_red\"}",Text4:"{\"text\":\"Ferm. Spider eye.\",\"color\":\"dark_red\"}"}
#execute at @e[name=LavD] positioned ~42 ~8 ~-11 run setblock ~ ~ ~ minecraft:oak_wall_sign[facing=south]{Text1:"{\"text\":\"Overload Potion:\"}",Text2:"{\"text\":\"Cauldron, Anvil,\",\"color\":\"dark_red\"}",Text3:"{\"text\":\"Rabbit's Foot,\",\"color\":\"dark_red\"}",Text4:"{\"text\":\"Rabbit Stew,\",\"color\":\"dark_red\"}"}
#execute at @e[name=LavD] positioned ~42 ~18 ~-13 run setblock ~ ~ ~ minecraft:chain_command_block[facing=up,conditional=true]{auto:1b,Command:"execute at @p[distance=..15] run summon lightning_bolt ~ ~-2 ~"}
#execute at @e[name=LavD] positioned ~42 ~17 ~-13 run setblock ~ ~ ~ minecraft:chain_command_block[facing=up,conditional=true]{auto:1b,Command:"give @p[tag=KyuOvl] minecraft:potion{display:{Name:\"Overload\"},CustomPotionEffects:[{Id:1,Amplifier:1,Duration:6600,ShowParticles:0b},{Id:3,Amplifier:0,Duration:6600,ShowParticles:0b},{Id:5,Amplifier:1,Duration:6600,ShowParticles:0b},{Id:7,Amplifier:1,Duration:0,ShowParticles:0b},{Id:12,Amplifier:0,Duration:6600,ShowParticles:0b},{Id:13,Amplifier:0,Duration:6600,ShowParticles:0b},{Id:15,Amplifier:0,Duration:200,ShowParticles:0b},{Id:19,Amplifier:4,Duration:200,ShowParticles:0b},{Id:23,Amplifier:10,Duration:100,ShowParticles:0b}],Potion:\"minecraft:mundane\",CustomPotionColor:1507328}"}
#execute at @e[name=LavD] positioned ~42 ~16 ~-13 run setblock ~ ~ ~ minecraft:chain_command_block[facing=up,conditional=true]{auto:1b,Command:"clear @p[tag=KyuOvl] golden_pickaxe"}
#execute at @e[name=LavD] positioned ~42 ~15 ~-13 run setblock ~ ~ ~ minecraft:chain_command_block[facing=up,conditional=true]{auto:1b,Command:"clear @p[tag=KyuOvl] rabbit_foot"}
#execute at @e[name=LavD] positioned ~42 ~14 ~-13 run setblock ~ ~ ~ minecraft:chain_command_block[facing=up,conditional=true]{auto:1b,Command:"clear @p[tag=KyuOvl] rabbit_stew"}
#execute at @e[name=LavD] positioned ~42 ~13 ~-13 run setblock ~ ~ ~ minecraft:chain_command_block[facing=up,conditional=true]{auto:1b,Command:"clear @p[tag=KyuOvl] fermented_spider_eye"}
#execute at @e[name=LavD] positioned ~42 ~12 ~-13 run setblock ~ ~ ~ minecraft:chain_command_block[facing=up,conditional=true]{auto:1b,Command:"clear @p[tag=KyuOvl] lava_bucket"}
#execute at @e[name=LavD] positioned ~42 ~11 ~-13 run setblock ~ ~ ~ minecraft:chain_command_block[facing=up,conditional=true]{auto:1b,Command:"clear @p[tag=KyuOvl] anvil"}
#execute at @e[name=LavD] positioned ~42 ~10 ~-13 run setblock ~ ~ ~ minecraft:chain_command_block[facing=up,conditional=true]{auto:1b,Command:"clear @p[tag=KyuOvl] iron_sword"}
#execute at @e[name=LavD] positioned ~42 ~9 ~-13 run setblock ~ ~ ~ minecraft:chain_command_block[facing=up,conditional=true]{auto:1b,Command:"clear @p[tag=KyuOvl] cauldron"}
#execute at @e[name=LavD] positioned ~42 ~8 ~-13 run setblock ~ ~ ~ minecraft:chain_command_block[facing=up]{auto:1b,Command:"tag @p[distance=..10] add KyuOvl"}
#execute at @e[name=LavD] positioned ~42 ~7 ~-13 run setblock ~ ~ ~ minecraft:command_block[facing=up]{auto:0b,Command:"tag @a remove KyuOvl"}
#execute at @e[name=LavD] positioned ~42 ~7 ~-11 run setblock ~ ~ ~ stone_button[facing=south]
execute at @e[name=LavD] 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 @e[name=LavD] 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 @e[name=LavD] 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 @e[name=LavD] 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 @e[name=LavD] 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 @e[name=LavD] positioned ~-1 ~8 ~-42 run setblock ~ ~ ~ stone_button[facing=south]
execute at @e[name=LavD] 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 @e[name=LavD] run setblock ~ 3 ~70 chain_command_block[facing=up,conditional=true]{auto:1b,Command:"data merge block ~ ~1 ~ {auto:1b}",TrackOutput:0}
#execute at @e[name=LavD] positioned ~49 5 ~1 run summon skeleton_horse ~ ~1 ~ {NoGravity:1,Tags:["RealCadeyrn","GKNameTag"],PersistenceRequired:1,Attributes:[{Name:generic.knockback_resistance,Base:1}],Invulnerable:1,NoAI:1,Silent:1,Passengers:[{id:"stray",NoGravity:1,Tags:["RealCadeyrn","GKNameTag"],CustomNameVisible:1,CustomName:"\"Cadeyrn the Wretched\"",ArmorItems:[{id:"minecraft:chainmail_boots",Count:1b},{id:"minecraft:chainmail_leggings",Count:1b},{id:"minecraft:chainmail_chestplate",Count:1b},{}],HandItems:[{id:"minecraft:golden_sword",Count:1b,tag:{Enchantments:[{id:"minecraft:knockback",lvl:15}]}},{}],Attributes:[{Name:generic.knockback_resistance,Base:1}],Invulnerable:1,Silent:1,PersistenceRequired:1}]}
execute at @e[name=LavD] positioned ~-42 3 ~15 run setblock ~ ~ ~ minecraft:repeating_command_block[facing=up]{auto:1b,Command:"execute at @e[name=HiFire] run execute at @a[distance=..4] run fill ~ ~-1 ~ ~ ~-1 ~ fire replace air"}
###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}"}