execute if predicate suhc:biomes/skeletonoutpost/lightbluespruce run tag @e[type=marker,tag=KyuOutpostStilts] add SpruceFence
execute if predicate suhc:biomes/skeletonoutpost/yellowjungle run tag @e[type=marker,tag=KyuOutpostStilts] add JungleFence
execute if predicate suhc:biomes/skeletonoutpost/purpleoak run tag @e[type=marker,tag=KyuOutpostStilts] add OakFence
execute if predicate suhc:biomes/skeletonoutpost/cyanacacia run tag @e[type=marker,tag=KyuOutpostStilts] add AcaciaFence
execute if predicate suhc:biomes/skeletonoutpost/limedarkoak run tag @e[type=marker,tag=KyuOutpostStilts] add DarkOakFence

execute as @e[type=marker,tag=KyuOutpostStilts] run function zzzzdonotuse:structures/commandblocks/skeletonoutpostcommandblockfillstilts
fill ~ ~-1 ~ ~ ~ ~ air

summon minecraft:marker ~ ~8 ~ {Tags:["KyuSkeletonOutpostColorChange"]}
summon minecraft:marker ~ ~20 ~ {Tags:["KyuSkeletonOutpostColorChange"]}

execute at @e[type=marker,tag=KyuSkeletonOutpostSkeletons,distance=..35] run fill ~ ~ ~ ~ ~ ~ air replace command_block
execute at @e[type=marker,tag=KyuSkeletonOutpostSkeletonsNoMove,distance=..35] run fill ~ ~ ~ ~ ~ ~ air replace command_block
execute at @e[type=marker,tag=KyuSkeletonOutpostSpawners,distance=..35] run fill ~ ~ ~ ~ ~ ~ air replace netherite_block
#execute at @e[type=marker,tag=KyuSkeletonOutpostSpawners,distance=..35] run setblock ~ ~ ~ spawner{SpawnCount:0,SpawnRange:0,Delay:100000,MinSpawnDelay:100000,MaxSpawnDelay:100000,MaxNearbyEntities:0,RequiredPlayerRange:12,SpawnData:{entity:{id:"minecraft:skeleton"}}}
execute at @e[type=marker,tag=KyuSkeletonOutpostSkeletons,distance=..35,tag=!MeleeSkele] run summon skeleton ~ ~ ~ {PersistenceRequired:1b,ArmorItems:[{},{},{},{id:"minecraft:iron_helmet",Count:1b}],HandItems:[{id:"minecraft:bow",Count:1b},{}]}
execute at @e[type=marker,tag=KyuSkeletonOutpostSkeletons,distance=..35,tag=MeleeSkele] run summon skeleton ~ ~ ~ {Tags:["GKNameTag"],PersistenceRequired:1b,HandItems:[{id:"minecraft:iron_axe",Count:1b},{}],ArmorItems:[{id:"minecraft:chainmail_boots",Count:1b},{id:"minecraft:chainmail_leggings",Count:1b},{id:"minecraft:chainmail_chestplate",Count:1b},{id:"minecraft:chainmail_helmet",Count:1b}]}
execute at @e[type=marker,tag=KyuSkeletonOutpostSkeletonsNoMove,distance=..35] run summon skeleton ~ ~ ~ {Attributes:[{Name:generic.movement_speed,Base:.00},{Name:generic.max_health,Base:20}],PersistenceRequired:1b,ArmorItems:[{},{},{},{id:"minecraft:iron_helmet",Count:1b}],HandItems:[{id:"minecraft:bow",Count:1b},{}]}

execute as @e[type=marker,tag=KyuSkeletonOutpostSkeletons,distance=..35] run kill @s
execute as @e[type=marker,tag=KyuSkeletonOutpostSkeletonsNoMove,distance=..35] run kill @s

execute if predicate suhc:biomes/skeletonoutpost/lightbluespruce run execute at @e[type=marker,tag=KyuSkeletonOutpostColorChange,distance=..35] run fill ~-10 ~-10 ~-10 ~13 ~10 ~12 light_blue_wool replace blue_wool
execute if predicate suhc:biomes/skeletonoutpost/lightbluespruce run execute at @e[type=marker,tag=KyuSkeletonOutpostColorChange,distance=..35] run fill ~-10 ~-10 ~-10 ~13 ~10 ~12 spruce_planks replace birch_planks
execute if predicate suhc:biomes/skeletonoutpost/lightbluespruce run execute at @e[type=marker,tag=KyuSkeletonOutpostColorChange,distance=..35] run fill ~-10 ~-10 ~-10 ~13 ~10 ~12 spruce_fence replace birch_fence
execute if predicate suhc:biomes/skeletonoutpost/lightbluespruce run execute at @e[type=marker,tag=KyuSkeletonOutpostColorChange,distance=..35] run fill ~-10 ~-10 ~-10 ~13 ~10 ~12 spruce_slab[type=bottom] replace birch_slab[type=bottom]
execute if predicate suhc:biomes/skeletonoutpost/lightbluespruce run execute at @e[type=marker,tag=KyuSkeletonOutpostColorChange,distance=..35] run fill ~-10 ~-10 ~-10 ~13 ~10 ~12 spruce_slab[type=top] replace birch_slab[type=top]

execute if predicate suhc:biomes/skeletonoutpost/yellowjungle run execute at @e[type=marker,tag=KyuSkeletonOutpostColorChange,distance=..35] run fill ~-10 ~-10 ~-10 ~13 ~10 ~12 yellow_wool replace blue_wool
execute if predicate suhc:biomes/skeletonoutpost/yellowjungle run execute at @e[type=marker,tag=KyuSkeletonOutpostColorChange,distance=..35] run fill ~-10 ~-10 ~-10 ~13 ~10 ~12 jungle_planks replace birch_planks
execute if predicate suhc:biomes/skeletonoutpost/yellowjungle run execute at @e[type=marker,tag=KyuSkeletonOutpostColorChange,distance=..35] run fill ~-10 ~-10 ~-10 ~13 ~10 ~12 jungle_fence replace birch_fence
execute if predicate suhc:biomes/skeletonoutpost/yellowjungle run execute at @e[type=marker,tag=KyuSkeletonOutpostColorChange,distance=..35] run fill ~-10 ~-10 ~-10 ~13 ~10 ~12 jungle_slab[type=bottom] replace birch_slab[type=bottom]
execute if predicate suhc:biomes/skeletonoutpost/yellowjungle run execute at @e[type=marker,tag=KyuSkeletonOutpostColorChange,distance=..35] run fill ~-10 ~-10 ~-10 ~13 ~10 ~12 jungle_slab[type=top] replace birch_slab[type=top]

execute if predicate suhc:biomes/skeletonoutpost/purpleoak run execute at @e[type=marker,tag=KyuSkeletonOutpostColorChange,distance=..35] run fill ~-10 ~-10 ~-10 ~13 ~10 ~12 purple_wool replace blue_wool
execute if predicate suhc:biomes/skeletonoutpost/purpleoak run execute at @e[type=marker,tag=KyuSkeletonOutpostColorChange,distance=..35] run fill ~-10 ~-10 ~-10 ~13 ~10 ~12 oak_planks replace birch_planks
execute if predicate suhc:biomes/skeletonoutpost/purpleoak run execute at @e[type=marker,tag=KyuSkeletonOutpostColorChange,distance=..35] run fill ~-10 ~-10 ~-10 ~13 ~10 ~12 oak_fence replace birch_fence
execute if predicate suhc:biomes/skeletonoutpost/purpleoak run execute at @e[type=marker,tag=KyuSkeletonOutpostColorChange,distance=..35] run fill ~-10 ~-10 ~-10 ~13 ~10 ~12 oak_slab[type=bottom] replace birch_slab[type=bottom]
execute if predicate suhc:biomes/skeletonoutpost/purpleoak run execute at @e[type=marker,tag=KyuSkeletonOutpostColorChange,distance=..35] run fill ~-10 ~-10 ~-10 ~13 ~10 ~12 oak_slab[type=top] replace birch_slab[type=top]

execute if predicate suhc:biomes/skeletonoutpost/cyanacacia run execute at @e[type=marker,tag=KyuSkeletonOutpostColorChange,distance=..35] run fill ~-10 ~-10 ~-10 ~13 ~10 ~12 cyan_wool replace blue_wool
execute if predicate suhc:biomes/skeletonoutpost/cyanacacia run execute at @e[type=marker,tag=KyuSkeletonOutpostColorChange,distance=..35] run fill ~-10 ~-10 ~-10 ~13 ~10 ~12 acacia_planks replace birch_planks
execute if predicate suhc:biomes/skeletonoutpost/cyanacacia run execute at @e[type=marker,tag=KyuSkeletonOutpostColorChange,distance=..35] run fill ~-10 ~-10 ~-10 ~13 ~10 ~12 acacia_fence replace birch_fence
execute if predicate suhc:biomes/skeletonoutpost/cyanacacia run execute at @e[type=marker,tag=KyuSkeletonOutpostColorChange,distance=..35] run fill ~-10 ~-10 ~-10 ~13 ~10 ~12 acacia_slab[type=bottom] replace birch_slab[type=bottom]
execute if predicate suhc:biomes/skeletonoutpost/cyanacacia run execute at @e[type=marker,tag=KyuSkeletonOutpostColorChange,distance=..35] run fill ~-10 ~-10 ~-10 ~13 ~10 ~12 acacia_slab[type=top] replace birch_slab[type=top]

execute if predicate suhc:biomes/skeletonoutpost/limedarkoak run execute at @e[type=marker,tag=KyuSkeletonOutpostColorChange,distance=..35] run fill ~-10 ~-10 ~-10 ~13 ~10 ~12 lime_wool replace blue_wool
execute if predicate suhc:biomes/skeletonoutpost/limedarkoak run execute at @e[type=marker,tag=KyuSkeletonOutpostColorChange,distance=..35] run fill ~-10 ~-10 ~-10 ~13 ~10 ~12 dark_oak_planks replace birch_planks
execute if predicate suhc:biomes/skeletonoutpost/limedarkoak run execute at @e[type=marker,tag=KyuSkeletonOutpostColorChange,distance=..35] run fill ~-10 ~-10 ~-10 ~13 ~10 ~12 dark_oak_fence replace birch_fence
execute if predicate suhc:biomes/skeletonoutpost/limedarkoak run execute at @e[type=marker,tag=KyuSkeletonOutpostColorChange,distance=..35] run fill ~-10 ~-10 ~-10 ~13 ~10 ~12 dark_oak_slab[type=bottom] replace birch_slab[type=bottom]
execute if predicate suhc:biomes/skeletonoutpost/limedarkoak run execute at @e[type=marker,tag=KyuSkeletonOutpostColorChange,distance=..35] run fill ~-10 ~-10 ~-10 ~13 ~10 ~12 dark_oak_slab[type=top] replace birch_slab[type=top]

kill @e[type=marker,tag=KyuSkeletonOutpostColorChange,distance=..35]