#execute at @e[type=armor_stand,name=H311] run fill ~-65 1 ~-65 ~65 1 ~65 bedrock replace #suhc:stones
execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 120 ~ netherrack replace minecraft:dirt
execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 120 ~ netherrack replace minecraft:coarse_dirt
execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 120 ~ soul_sand replace minecraft:podzol
execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 120 ~ heavy_weighted_pressure_plate replace #minecraft:wooden_pressure_plates
execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 150 ~ netherrack replace #suhc:stones
execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 100 ~ wet_sponge replace water
execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 100 ~ nether_bricks replace #suhc:sandstones
execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 100 ~ nether_brick_slab[type=bottom] replace #minecraft:slabs[type=bottom]
execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 100 ~ nether_brick_stairs[facing=east,half=top] replace #minecraft:stairs[facing=east,half=top]
execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 100 ~ nether_brick_stairs[facing=west,half=top] replace #minecraft:stairs[facing=west,half=top]
execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 100 ~ nether_brick_stairs[facing=south,half=top] replace #minecraft:stairs[facing=south,half=top]
execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 100 ~ nether_brick_stairs[facing=north,half=top] replace #minecraft:stairs[facing=north,half=top]
execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 100 ~ nether_brick_stairs[facing=east,half=bottom] replace #minecraft:stairs[facing=east,half=bottom]
execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 100 ~ nether_brick_stairs[facing=west,half=bottom] replace #minecraft:stairs[facing=west,half=bottom]
execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 100 ~ nether_brick_stairs[facing=south,half=bottom] replace #minecraft:stairs[facing=south,half=bottom]
execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 100 ~ nether_brick_stairs[facing=north,half=bottom] replace #minecraft:stairs[facing=north,half=bottom]
execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 100 ~ air replace #minecraft:wooden_trapdoors[facing=east,open=true,half=top]
#execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 100 ~ iron_trapdoor[facing=west,open=true,half=top] replace #minecraft:wooden_trapdoors[facing=west,open=true,half=top]
#execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 100 ~ iron_trapdoor[facing=south,open=true,half=top] replace #minecraft:wooden_trapdoors[facing=south,open=true,half=top]
#execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 100 ~ iron_trapdoor[facing=north,open=true,half=top] replace #minecraft:wooden_trapdoors[facing=north,open=true,half=top]
#execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 100 ~ iron_trapdoor[facing=east,open=true,half=bottom] replace #minecraft:wooden_trapdoors[facing=east,open=true,half=bottom]
#execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 100 ~ iron_trapdoor[facing=west,open=true,half=bottom] replace #minecraft:wooden_trapdoors[facing=west,open=true,half=bottom]
#execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 100 ~ iron_trapdoor[facing=south,open=true,half=bottom] replace #minecraft:wooden_trapdoors[facing=south,open=true,half=bottom]
#execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 100 ~ iron_trapdoor[facing=north,open=true,half=bottom] replace #minecraft:wooden_trapdoors[facing=north,open=true,half=bottom]
#execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 100 ~ iron_trapdoor[facing=east,open=false,half=top] replace #minecraft:wooden_trapdoors[facing=east,open=false,half=top]
#execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 100 ~ iron_trapdoor[facing=west,open=false,half=top] replace #minecraft:wooden_trapdoors[facing=west,open=false,half=top]
#execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 100 ~ iron_trapdoor[facing=south,open=false,half=top] replace #minecraft:wooden_trapdoors[facing=south,open=false,half=top]
#execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 100 ~ iron_trapdoor[facing=north,open=false,half=top] replace #minecraft:wooden_trapdoors[facing=north,open=false,half=top]
#execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 100 ~ iron_trapdoor[facing=east,open=false,half=bottom] replace #minecraft:wooden_trapdoors[facing=east,open=false,half=bottom]
#execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 100 ~ iron_trapdoor[facing=west,open=false,half=bottom] replace #minecraft:wooden_trapdoors[facing=west,open=false,half=bottom]
#execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 100 ~ iron_trapdoor[facing=south,open=false,half=bottom] replace #minecraft:wooden_trapdoors[facing=south,open=false,half=bottom]
#execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 100 ~ iron_trapdoor[facing=north,open=false,half=bottom] replace #minecraft:wooden_trapdoors[facing=north,open=false,half=bottom]
execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 100 ~ soul_sand replace minecraft:sand
execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 150 ~ fire replace #minecraft:leaves
execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 150 ~ magma_block replace #minecraft:logs
execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 100 ~ coal_block replace diamond_ore
execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 100 ~ nether_quartz_ore replace #suhc:ores
execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 100 ~ red_nether_bricks replace minecraft:cobblestone
execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 100 ~ nether_bricks replace #minecraft:planks
execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 100 ~ nether_brick_slab[type=top] replace #minecraft:slabs[type=top]
execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 100 ~ nether_brick_slab[type=double] replace #minecraft:slabs[type=double]
execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 100 ~ nether_brick_fence replace #minecraft:wooden_fences
##execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 100 ~ nether_brick_fence replace minecraft:oak_fence
##execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 100 ~ nether_brick_fence replace minecraft:spruce_fence
##execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 100 ~ nether_brick_fence replace minecraft:acacia_fence
execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 100 ~ black_stained_glass replace #minecraft:impermeable
execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 100 ~ air replace #minecraft:doors
execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 100 ~ lava replace farmland
execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 100 ~ black_stained_glass replace minecraft:glass_pane
execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 100 ~ jack_o_lantern replace #minecraft:wool
execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 100 ~ jack_o_lantern replace pumpkin
execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 100 ~ fire replace torch
execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 100 ~ fire replace wall_torch
execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 100 ~ nether_quartz_ore replace redstone_ore
execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 100 ~ nether_wart_block replace dirt_path
execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 100 ~ nether_wart replace dead_bush
execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 100 ~ air replace snow
#execute at @e[type=armor_stand,tag=NetherC] run fill ~ 190 ~ ~ 215 ~ air replace snow
execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 100 ~ air replace snow_block
#execute at @e[type=armor_stand,tag=NetherC] run fill ~ 190 ~ ~ 215 ~ air replace snow_block
execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 100 ~ air replace hay_block
execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 100 ~ black_glazed_terracotta replace clay
execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 100 ~ nether_brick_fence replace #minecraft:walls
execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 150 ~ fire replace vine
execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 100 ~ red_nether_bricks replace #minecraft:stone_bricks
execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 100 ~ nether_wart_block replace minecraft:mossy_cobblestone
execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 150 ~ lava replace minecraft:wet_sponge
execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 100 ~ minecraft:red_nether_bricks replace minecraft:smooth_sandstone
execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 100 ~ minecraft:red_nether_brick_slab replace minecraft:smooth_sandstone_slab
execute at @e[type=armor_stand,tag=NetherC] run fill ~ 255 ~ ~ 255 ~ barrier replace air
execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 120 ~ nether_wart_block replace #suhc:ices
#execute at @e[type=armor_stand,tag=NetherC] run fill ~ 190 ~ ~ 215 ~ nether_wart_block replace #suhc:ices
execute at @e[type=armor_stand,tag=NetherC] run fill ~ 1 ~ ~ 120 ~ black_carpet replace #minecraft:carpets
##kill @e[name=H3S]
#
##########################END OF BLOCK CORRUPTION, BEGIN OF VILLAGER CHANGES
#
execute at @e[type=armor_stand,name=H3S] run effect give @e[dx=0,dy=150,dz=0,type=villager] fire_resistance 12000 0

execute at @e[type=armor_stand,name=H3S] run tag @e[dx=0,dy=150,dz=0,type=villager,nbt={VillagerData:{profession:"minecraft:cleric"}}] add CHG
execute as @e[sort=random,limit=1,type=villager,tag=CHG] run data merge entity @s {VillagerData:{level:5,profession:"minecraft:cleric"},CustomName:"\"Alchemist\"",Profession:2,Career:0,CareerLevel:200,Offers:{Recipes:[{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:emerald,Count:5},buyB:{id:gold_ingot,Count:9},sell:{id:brewing_stand,Count:1}},{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:emerald,Count:30},buyB:{id:gold_block,Count:2},sell:{id:blaze_powder,Count:1}},{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:emerald,Count:1},buyB:{id:diamond,Count:1},sell:{id:potion,Count:1,tag:{Potion:"minecraft:strength"}}},{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:emerald,Count:1},buyB:{id:sugar,Count:3},sell:{id:potion,Count:3,tag:{Potion:"minecraft:strong_swiftness"}}},{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:gold_block,Count:8},buyB:{id:emerald,Count:10},sell:{id:ghast_tear,Count:1}},{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:gold_ingot,Count:1},buyB:{id:emerald,Count:3},sell:{id:glistering_melon_slice,Count:1}},{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:ender_pearl,Count:3},buyB:{id:lava_bucket,Count:1},sell:{id:ender_eye,Count:3}},{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:brewing_stand,Count:1},buyB:{id:emerald,Count:1},sell:{id:chest,Count:1,tag:{display:{Name:'{"text":"Potion Chest","color":"light_purple"}',Lore:["\"Contains a random assortment of potions.\""]},Enchantments:[{}],BlockEntityTag:{LootTable:"chests/potionchest"}}}}]}}
tag @e[type=villager] remove CHG
tag @e remove Useless
execute at @e[type=armor_stand,name=H3S] run tag @e[dx=0,dy=150,dz=0,type=villager,nbt={VillagerData:{profession:"minecraft:librarian"}}] add CHG2
execute as @e[sort=random,limit=1,type=villager,tag=CHG2] run data merge entity @s {VillagerData:{level:5,profession:"minecraft:cartographer",type:"minecraft:snow"},CustomName:"\"Sorcerer\"",CustomNameVisible:1,Profession:1,Career:0,Offers:{Recipes:[{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:"minecraft:diamond_block",Count:1b},buyB:{id:"minecraft:carved_pumpkin",Count:1b},sell:{id:"minecraft:carved_pumpkin",Count:1b,tag:{AttributeModifiers:[{AttributeName:"generic.follow_range",Name:"generic.follow_range",Amount:-.05,Operation:1,UUID:[I;6969,6969,6969,1143],Slot:"head"},{AttributeName:"generic.armor",Name:"generic.armor",Amount:3,Operation:0,UUID:[I;6969,6969,6969,1144],Slot:"head"},{AttributeName:"generic.armor_toughness",Name:"generic.armor_toughness",Amount:2,Operation:0,UUID:[I;6969,6969,6969,1145],Slot:"head"}],display:{Name:"\"Sturdy Pumpkin\"",Lore:["\"Plump\""]}}}},{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:"minecraft:carved_pumpkin",Count:1b,tag:{display:{Name:"\"Sturdy Pumpkin\"",Lore:["\"Plump\""]}}},buyB:{id:"minecraft:yellow_dye",Count:2b,tag:{display:{Name:"\"Magical Fragment\"",Lore:["\"Used in trading and enchanting\""]}}},sell:{id:"minecraft:carved_pumpkin",Count:1b,tag:{AttributeModifiers:[{AttributeName:"generic.follow_range",Name:"generic.follow_range",Amount:-.05,Operation:1,UUID:[I;6969,6969,6969,1146],Slot:"head"},{AttributeName:"generic.armor",Name:"generic.armor",Amount:3,Operation:0,UUID:[I;6969,6969,6969,1147],Slot:"head"},{AttributeName:"generic.armor_toughness",Name:"generic.armor_toughness",Amount:2,Operation:0,UUID:[I;6969,6969,6969,1148],Slot:"head"}],display:{Name:"\"Super Sturdy Pumpkin\""},Enchantments:[{id:"minecraft:protection",lvl:4},{id:"minecraft:fire_protection",lvl:1}]}}},{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:"minecraft:enchanting_table",Count:1b},buyB:{id:"minecraft:brewing_stand",Count:1b},sell:{id:"minecraft:yellow_dye",Count:1b,tag:{HideFlags:1,display:{Name:"\"Magical Fragment\"",Lore:["\"Used in trading and enchanting\""]},Enchantments:[{id:"minecraft:depth_strider",lvl:1}]}}},{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:"minecraft:gold_block",Count:1b},buyB:{id:"minecraft:yellow_dye",Count:1b,tag:{display:{Name:"\"Magical Fragment\"",Lore:["\"Used in trading and enchanting\""]}}},sell:{id:"minecraft:shield",Count:1b,tag:{HideFlags:32,Enchantments:[{id:"minecraft:unbreaking",lvl:3s}],AttributeModifiers:[{AttributeName:"generic.movement_speed",Name:"generic.movement_speed",Amount:.2,Operation:2,UUID:[I;6969,6969,6969,1149],Slot:"offhand"},{AttributeName:"generic.attack_speed",Name:"generic.attack_speed",Amount:.1,Operation:2,UUID:[I;6969,6969,6969,1150],Slot:"offhand"}],display:{Name:"\"Agile Shield\"",Lore:["\"Hi\""]},BlockEntityTag:{Base:8,Patterns:[{Pattern:tts,Color:13},{Pattern:bts,Color:13},{Pattern:sc,Color:0},{Pattern:sc,Color:8},{Pattern:bo,Color:13},{Pattern:mc,Color:7},{Pattern:mc,Color:8}]}}}},{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:"minecraft:anvil",Count:1b},buyB:{id:"minecraft:yellow_dye",Count:3b,tag:{display:{Name:"\"Magical Fragment\"",Lore:["\"Used in trading and enchanting\""]}}},sell:{id:"minecraft:shield",Count:1b,tag:{HideFlags:32,Enchantments:[{id:"minecraft:unbreaking",lvl:3s}],AttributeModifiers:[{AttributeName:"generic.knockback_resistance",Name:"generic.knockback_resistance",Amount:1,Operation:0,UUID:[I;6969,6969,6969,1151],Slot:"offhand"},{AttributeName:"generic.movement_speed",Name:"generic.movement_speed",Amount:-.1,Operation:2,UUID:[I;6969,6969,6969,1152],Slot:"offhand"},{AttributeName:"generic.armor",Name:"generic.armor",Amount:0,Operation:0,UUID:[I;6969,6969,6969,1153],Slot:"offhand"},{AttributeName:"generic.armor_toughness",Name:"generic.armor_toughness",Amount:1,Operation:0,UUID:[I;6969,6969,6969,1154],Slot:"offhand"}],display:{Name:"\"Heavy Shield\""},BlockEntityTag:{Base:12,Patterns:[{Color:7,Pattern:"dls"},{Color:7,Pattern:"drs"},{Color:8,Pattern:"cr"},{Color:8,Pattern:"mr"},{Color:7,Pattern:"mc"},{Color:8,Pattern:"flo"}]}}}},{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:"minecraft:blaze_powder",Count:1b},buyB:{id:"minecraft:yellow_dye",Count:1b,tag:{display:{Name:"\"Magical Fragment\"",Lore:["\"Used in trading and enchanting\""]}}},sell:{id:"minecraft:shield",Count:1b,tag:{HideFlags:33,Enchantments:[{id:"minecraft:unbreaking",lvl:3s}],AttributeModifiers:[{AttributeName:"generic.attack_damage",Name:"generic.attack_damage",Amount:.2,Operation:2,UUID:[I;6969,6969,6969,1155],Slot:"offhand"},{AttributeName:"generic.armor",Name:"generic.armor",Amount:-.15,Operation:2,UUID:[I;6969,6969,6969,1156],Slot:"offhand"}],display:{Name:"\"Damage Shield\""},BlockEntityTag:{Base:14,Patterns:[{Pattern:moj,Color:4},{Pattern:bt,Color:4},{Pattern:mr,Color:14},{Pattern:gru,Color:1}]}}}},{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:"minecraft:diamond_block",Count:1b},buyB:{id:"minecraft:yellow_dye",Count:3b,tag:{display:{Name:"\"Magical Fragment\"",Lore:["\"Used in trading and enchanting\""]}}},sell:{id:"minecraft:shield",Count:1b,tag:{HideFlags:33,Enchantments:[{id:"minecraft:unbreaking",lvl:3s}],AttributeModifiers:[{AttributeName:"generic.armor",Name:"generic.armor",Amount:1,Operation:0,UUID:[I;6969,6969,6969,1157],Slot:"offhand"},{AttributeName:"generic.armor_toughness",Name:"generic.armor_toughness",Amount:2,Operation:0,UUID:[I;6969,6969,6969,1158],Slot:"offhand"}],display:{Name:"\"Paladin's Shield\""},BlockEntityTag:{Base:15,Patterns:[{Pattern:gru,Color:8},{Pattern:gra,Color:0},{Pattern:cr,Color:4},{Pattern:sc,Color:1},{Pattern:mc,Color:14},{Pattern:flo,Color:4},{Pattern:cbo,Color:4}]}}}},{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:"minecraft:rabbit_foot",Count:1b},buyB:{id:"minecraft:yellow_dye",Count:2b,tag:{display:{Name:"\"Magical Fragment\"",Lore:["\"Used in trading and enchanting\""]}}},sell:{id:"minecraft:rabbit_foot",Count:1b,tag:{Enchantments:[{id:"minecraft:knockback",lvl:1}],HideFlags:1,display:{Name:"\"Lucky Foot\"",Lore:["\"Gives +1 luck when held in your hand.\""]}}}},{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:"minecraft:leather_leggings",Count:1b},buyB:{id:"minecraft:yellow_dye",Count:5b,tag:{display:{Name:"\"Magical Fragment\"",Lore:["\"Used in trading and enchanting\""]}}},sell:{id:"minecraft:oak_sign",Count:1b,tag:{display:{Name:"\"Zistykin Battle Sign\""},Enchantments:[{id:"minecraft:knockback",lvl:10}]}}},{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:"minecraft:elytra",Count:1b},buyB:{id:"minecraft:yellow_dye",Count:2b,tag:{display:{Name:"\"Magical Fragment\"",Lore:["\"Used in trading and enchanting\""]}}},sell:{id:"minecraft:elytra",Count:1b,tag:{AttributeModifiers:[{AttributeName:"generic.armor",Name:"generic.armor",Amount:8,Operation:0,UUID:[I;6969,6969,6969,1159],Slot:"chest"},{AttributeName:"generic.armor_toughness",Name:"generic.armor_toughness",Amount:2,Operation:0,UUID:[I;6969,6969,6969,1160],Slot:"chest"}],display:{Name:"\"Sturdy Elytra\"",Lore:["\"Sturdy!\""]}}}},{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:"minecraft:elytra",Count:1b,tag:{display:{Name:"\"Sturdy Elytra\"",Lore:["\"Sturdy!\""]}}},buyB:{id:"minecraft:yellow_dye",Count:6b,tag:{display:{Name:"\"Magical Fragment\"",Lore:["\"Used in trading and enchanting\""]}}},sell:{id:"minecraft:elytra",Count:1b,tag:{AttributeModifiers:[{AttributeName:"generic.armor",Name:"generic.armor",Amount:8,Operation:0,UUID:[I;6969,6969,6969,1161],Slot:"chest"},{AttributeName:"generic.armor_toughness",Name:"generic.armor_toughness",Amount:2,Operation:0,UUID:[I;6969,6969,6969,1162],Slot:"chest"}],Enchantments:[{id:"minecraft:protection",lvl:3},{id:"minecraft:feather_falling",lvl:4}]}}},{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:"minecraft:egg",Count:1b},buyB:{id:"minecraft:yellow_dye",Count:1b,tag:{display:{Name:"\"Magical Fragment\"",Lore:["\"Used in trading and enchanting\""]}}},sell:{id:"minecraft:villager_spawn_egg",Count:1b,tag:{Enchantments:[{id:"minecraft:depth_strider",lvl:1}],HideFlags:1,display:{Name:"\"Sorcerer Egg\""},EntityTag:{VillagerData:{level:5,profession:"minecraft:cartographer",type:"minecraft:snow"},CustomName:"\"Sorceror\"",CustomNameVisible:1,Profession:1,Career:0,Offers:{Recipes:[{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:"minecraft:diamond_block",Count:1b},buyB:{id:"minecraft:carved_pumpkin",Count:1b},sell:{id:"minecraft:carved_pumpkin",Count:1b,tag:{AttributeModifiers:[{AttributeName:"generic.follow_range",Name:"generic.follow_range",Amount:-.05,Operation:1,UUID:[I;6969,6969,6969,1163],Slot:"head"},{AttributeName:"generic.armor",Name:"generic.armor",Amount:3,Operation:0,UUID:[I;6969,6969,6969,1164],Slot:"head"},{AttributeName:"generic.armor_toughness",Name:"generic.armor_toughness",Amount:2,Operation:0,UUID:[I;6969,6969,6969,1165],Slot:"head"}],display:{Name:"\"Sturdy Pumpkin\"",Lore:["\"Plump\""]}}}},{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:"minecraft:carved_pumpkin",Count:1b,tag:{display:{Name:"\"Sturdy Pumpkin\"",Lore:["\"Plump\""]}}},buyB:{id:"minecraft:yellow_dye",Count:2b,tag:{display:{Name:"\"Magical Fragment\"",Lore:["\"Used in trading and enchanting\""]}}},sell:{id:"minecraft:carved_pumpkin",Count:1b,tag:{AttributeModifiers:[{AttributeName:"generic.follow_range",Name:"generic.follow_range",Amount:-.05,Operation:1,UUID:[I;6969,6969,6969,1166],Slot:"head"},{AttributeName:"generic.armor",Name:"generic.armor",Amount:3,Operation:0,UUID:[I;6969,6969,6969,1167],Slot:"head"},{AttributeName:"generic.armor_toughness",Name:"generic.armor_toughness",Amount:2,Operation:0,UUID:[I;6969,6969,6969,1168],Slot:"head"}],display:{Name:"\"Super Sturdy Pumpkin\""},Enchantments:[{id:"minecraft:protection",lvl:4},{id:"minecraft:fire_protection",lvl:1}]}}},{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:"minecraft:enchanting_table",Count:1b},buyB:{id:"minecraft:brewing_stand",Count:1b},sell:{id:"minecraft:yellow_dye",Count:1b,tag:{HideFlags:1,display:{Name:"\"Magical Fragment\"",Lore:["\"Used in trading and enchanting\""]},Enchantments:[{id:"minecraft:depth_strider",lvl:1}]}}},{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:"minecraft:gold_block",Count:1b},buyB:{id:"minecraft:yellow_dye",Count:1b,tag:{display:{Name:"\"Magical Fragment\"",Lore:["\"Used in trading and enchanting\""]}}},sell:{id:"minecraft:shield",Count:1b,tag:{HideFlags:32,Enchantments:[{id:"minecraft:unbreaking",lvl:3s}],AttributeModifiers:[{AttributeName:"generic.movement_speed",Name:"generic.movement_speed",Amount:.2,Operation:2,UUID:[I;6969,6969,6969,1169],Slot:"offhand"},{AttributeName:"generic.attack_speed",Name:"generic.attack_speed",Amount:.1,Operation:2,UUID:[I;6969,6969,6969,1170],Slot:"offhand"}],display:{Name:"\"Agile Shield\"",Lore:["\"Hi\""]},BlockEntityTag:{Base:8,Patterns:[{Pattern:tts,Color:13},{Pattern:bts,Color:13},{Pattern:sc,Color:0},{Pattern:sc,Color:8},{Pattern:bo,Color:13},{Pattern:mc,Color:7},{Pattern:mc,Color:8}]}}}},{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:"minecraft:anvil",Count:1b},buyB:{id:"minecraft:yellow_dye",Count:3b,tag:{display:{Name:"\"Magical Fragment\"",Lore:["\"Used in trading and enchanting\""]}}},sell:{id:"minecraft:shield",Count:1b,tag:{HideFlags:32,Enchantments:[{id:"minecraft:unbreaking",lvl:3s}],AttributeModifiers:[{AttributeName:"generic.knockback_resistance",Name:"generic.knockback_resistance",Amount:1,Operation:0,UUID:[I;6969,6969,6969,1171],Slot:"offhand"},{AttributeName:"generic.movement_speed",Name:"generic.movement_speed",Amount:-.1,Operation:2,UUID:[I;6969,6969,6969,1172],Slot:"offhand"},{AttributeName:"generic.armor",Name:"generic.armor",Amount:0,Operation:0,UUID:[I;6969,6969,6969,1173],Slot:"offhand"},{AttributeName:"generic.armor_toughness",Name:"generic.armor_toughness",Amount:1,Operation:0,UUID:[I;6969,6969,6969,1174],Slot:"offhand"}],display:{Name:"\"Heavy Shield\""},BlockEntityTag:{Base:12,Patterns:[{Color:7,Pattern:"dls"},{Color:7,Pattern:"drs"},{Color:8,Pattern:"cr"},{Color:8,Pattern:"mr"},{Color:7,Pattern:"mc"},{Color:8,Pattern:"flo"}]}}}},{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:"minecraft:blaze_powder",Count:1b},buyB:{id:"minecraft:yellow_dye",Count:1b,tag:{display:{Name:"\"Magical Fragment\"",Lore:["\"Used in trading and enchanting\""]}}},sell:{id:"minecraft:shield",Count:1b,tag:{HideFlags:33,Enchantments:[{id:"minecraft:unbreaking",lvl:3s}],AttributeModifiers:[{AttributeName:"generic.attack_damage",Name:"generic.attack_damage",Amount:.2,Operation:2,UUID:[I;6969,6969,6969,1175],Slot:"offhand"},{AttributeName:"generic.armor",Name:"generic.armor",Amount:-.15,Operation:2,UUID:[I;6969,6969,6969,1176],Slot:"offhand"}],display:{Name:"\"Damage Shield\""},BlockEntityTag:{Base:14,Patterns:[{Pattern:moj,Color:4},{Pattern:bt,Color:4},{Pattern:mr,Color:14},{Pattern:gru,Color:1}]}}}},{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:"minecraft:diamond_block",Count:1b},buyB:{id:"minecraft:yellow_dye",Count:3b,tag:{display:{Name:"\"Magical Fragment\"",Lore:["\"Used in trading and enchanting\""]}}},sell:{id:"minecraft:shield",Count:1b,tag:{HideFlags:33,Enchantments:[{id:"minecraft:unbreaking",lvl:3s}],AttributeModifiers:[{AttributeName:"generic.armor",Name:"generic.armor",Amount:1,Operation:0,UUID:[I;6969,6969,6969,1177],Slot:"offhand"},{AttributeName:"generic.armor_toughness",Name:"generic.armor_toughness",Amount:2,Operation:0,UUID:[I;6969,6969,6969,1178],Slot:"offhand"}],display:{Name:"\"Paladin's Shield\""},BlockEntityTag:{Base:15,Patterns:[{Pattern:gru,Color:8},{Pattern:gra,Color:0},{Pattern:cr,Color:4},{Pattern:sc,Color:1},{Pattern:mc,Color:14},{Pattern:flo,Color:4},{Pattern:cbo,Color:4}]}}}},{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:"minecraft:rabbit_foot",Count:1b},buyB:{id:"minecraft:yellow_dye",Count:2b,tag:{display:{Name:"\"Magical Fragment\"",Lore:["\"Used in trading and enchanting\""]}}},sell:{id:"minecraft:rabbit_foot",Count:1b,tag:{Enchantments:[{id:"minecraft:knockback",lvl:1}],HideFlags:1,display:{Name:"\"Lucky Foot\"",Lore:["\"Gives +1 luck when held in your hand.\""]}}}},{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:"minecraft:leather_leggings",Count:1b},buyB:{id:"minecraft:yellow_dye",Count:5b,tag:{display:{Name:"\"Magical Fragment\"",Lore:["\"Used in trading and enchanting\""]}}},sell:{id:"minecraft:oak_sign",Count:1b,tag:{display:{Name:"\"Zistykin Battle Sign\""},Enchantments:[{id:"minecraft:knockback",lvl:10}]}}},{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:"minecraft:elytra",Count:1b},buyB:{id:"minecraft:yellow_dye",Count:1b,tag:{display:{Name:"\"Magical Fragment\"",Lore:["\"Used in trading and enchanting\""]}}},sell:{id:"minecraft:elytra",Count:1b,tag:{AttributeModifiers:[{AttributeName:"generic.armor",Name:"generic.armor",Amount:8,Operation:0,UUID:[I;6969,6969,6969,1179],Slot:"chest"},{AttributeName:"generic.armor_toughness",Name:"generic.armor_toughness",Amount:2,Operation:0,UUID:[I;6969,6969,6969,1180],Slot:"chest"}],display:{Name:"\"Sturdy Elytra\"",Lore:["\"Sturdy!\""]}}}},{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:"minecraft:elytra",Count:1b,tag:{display:{Name:"\"Sturdy Elytra\"",Lore:["\"Sturdy!\""]}}},buyB:{id:"minecraft:yellow_dye",Count:6b,tag:{display:{Name:"\"Magical Fragment\"",Lore:["\"Used in trading and enchanting\""]}}},sell:{id:"minecraft:elytra",Count:1b,tag:{AttributeModifiers:[{AttributeName:"generic.armor",Name:"generic.armor",Amount:8,Operation:0,UUID:[I;6969,6969,6969,1181],Slot:"chest"},{AttributeName:"generic.armor_toughness",Name:"generic.armor_toughness",Amount:2,Operation:0,UUID:[I;6969,6969,6969,1182],Slot:"chest"}],Enchantments:[{id:"minecraft:protection",lvl:3},{id:"minecraft:feather_falling",lvl:4}]}}},]}}}}}]}}
tag @e[type=villager] remove CHG2
execute at @e[type=armor_stand,name=H3S] run tag @e[dx=0,dy=150,dz=0,type=villager,nbt={VillagerData:{profession:"minecraft:fletcher"}}] add CHG3
execute as @e[sort=random,limit=1,type=villager,tag=CHG3] run data merge entity @s {VillagerData:{level:99,profession:"minecraft:fletcher",type:"minecraft:swamp"},CustomName:'{"text":"Fabulous Fletcher","color":"gold"}',Offers:{Recipes:[{buy:{id:"minecraft:iron_ingot",Count:1b},buyB:{id:"minecraft:arrow",Count:4b},sell:{id:"minecraft:tipped_arrow",Count:4b,tag:{display:{Name:"{\"text\":\"Iron-Tipped Arrow\",\"color\":\"#BFAFAE\"}","Lore":["{\"text\":\"If shot from a crossbow, will deal 16%\",\"color\":\"#CF3C3C\"}","{\"text\":\"more damage, however the arrow\",\"color\":\"#CF3C3C\"}","{\"text\":\"may not be picked back up.\",\"color\":\"#CF3C3C\"}","{\"text\":\"\"}","{\"text\":\"If fired from a bow, it will apply 4 seconds\",\"color\":\"#008DD4\"}","{\"text\":\"of slowness to enemies hit.\",\"color\":\"#008DD4\"}"]},HideFlags:35,CustomPotionEffects:[{Id:13b,Amplifier:100b,Duration:1111,ShowParticles:0b},{Id:32b,Amplifier:100b,Duration:1111,ShowParticles:0b}],CustomPotionColor:12562350}}},{buy:{id:"minecraft:gold_ingot",Count:1b},buyB:{id:"minecraft:arrow",Count:10b},sell:{id:"minecraft:tipped_arrow",Count:10b,tag:{display:{Name:"{\"text\":\"Gold-Tipped Arrow\",\"color\":\"#E5F502\"}","Lore":["{\"text\":\"If shot from a crossbow, grants haste and\",\"color\":\"#CF3C3C\"}","{\"text\":\"speed to nearby players, however the\",\"color\":\"#CF3C3C\"}","{\"text\":\"arrow may not be picked back up.\",\"color\":\"#CF3C3C\"}","{\"text\":\"\"}","{\"text\":\"If fired from a bow, enemies hit\",\"color\":\"#008DD4\"}","{\"text\":\"will drop xp orbs.\",\"color\":\"#008DD4\"}"]},HideFlags:35,CustomPotionEffects:[{Id:13b,Amplifier:100b,Duration:1111,ShowParticles:0b},{Id:32b,Amplifier:101b,Duration:1111,ShowParticles:0b}],CustomPotionColor:14408448}}},{buy:{id:"minecraft:diamond",Count:1b},buyB:{id:"minecraft:arrow",Count:8b},sell:{id:"minecraft:tipped_arrow",Count:8b,tag:{display:{Name:"{\"text\":\"Diamond-Tipped Arrow\",\"color\":\"#02EFF7\"}","Lore":["{\"text\":\"If shot from a crossbow, will deal 33%\",\"color\":\"#CF3C3C\"}","{\"text\":\"more damage, however the arrow\",\"color\":\"#CF3C3C\"}","{\"text\":\"may not be picked back up.\",\"color\":\"#CF3C3C\"}","{\"text\":\"\"}","{\"text\":\"If fired from a bow, it will apply weakness and a\",\"color\":\"#008DD4\"}","{\"text\":\"-3 armor debuff to enemies hit for 6 seconds.\",\"color\":\"#008DD4\"}"]},HideFlags:35,CustomPotionEffects:[{Id:13b,Amplifier:100b,Duration:1111,ShowParticles:0b},{Id:32b,Amplifier:102b,Duration:1111,ShowParticles:0b}],CustomPotionColor:65535}}},{buy:{id:"minecraft:emerald",Count:1b},buyB:{id:"minecraft:arrow",Count:2b},sell:{id:"minecraft:tipped_arrow",Count:2b,tag:{display:{Name:"{\"text\":\"Emerald-Tipped Arrow\",\"color\":\"#00FF00\"}","Lore":["{\"text\":\"If shot from a crossbow, the arrow will\",\"color\":\"#CF3C3C\"}","{\"text\":\"gain Looting, however the arrow\",\"color\":\"#CF3C3C\"}","{\"text\":\"may not be picked back up.\",\"color\":\"#CF3C3C\"}","{\"text\":\"\"}","{\"text\":\"If fired from a bow, hitting an enemy may\",\"color\":\"#008DD4\"}","{\"text\":\"grant access to the Rare Drop Table.\",\"color\":\"#008DD4\"}"]},HideFlags:35,CustomPotionEffects:[{Id:13b,Amplifier:100b,Duration:1111,ShowParticles:0b},{Id:32b,Amplifier:103b,Duration:1111,ShowParticles:0b}],CustomPotionColor:65297}}},{buy:{id:"minecraft:netherite_scrap",Count:1b},buyB:{id:"minecraft:arrow",Count:16b},sell:{id:"minecraft:tipped_arrow",Count:16b,tag:{display:{Name:"{\"text\":\"Netherite-Tipped Arrow\",\"color\":\"#8F2222\"}","Lore":["{\"text\":\"If shot from a crossbow, grants resistance and\",\"color\":\"#CF3C3C\"}","{\"text\":\"strength to nearby players, however the\",\"color\":\"#CF3C3C\"}","{\"text\":\"arrow may not be picked back up.\",\"color\":\"#CF3C3C\"}","{\"text\":\"\"}","{\"text\":\"If fired from a bow, hitting an enemy applies weakness and\",\"color\":\"#008DD4\"}","{\"text\":\"a stacking armor shred(-3 per stack, up to 7 stacks).\",\"color\":\"#008DD4\"}","{\"text\":\"Each arrow adds 10 seconds to the shred timer.\",\"color\":\"#008DD4\"}"]},HideFlags:35,CustomPotionEffects:[{Id:13b,Amplifier:100b,Duration:1111,ShowParticles:0b},{Id:32b,Amplifier:104b,Duration:1111,ShowParticles:0b}],CustomPotionColor:9841194}}},{buy:{id:"minecraft:ender_pearl",Count:1b},buyB:{id:"minecraft:diamond_sword",Count:1b},sell:{id:"minecraft:tipped_arrow",Count:5b,tag:{display:{Name:"{\"text\":\"Ender-Tipped Arrow\",\"color\":\"#298573\"}","Lore":["{\"text\":\"If shot from a crossbow, the shooter will follow\",\"color\":\"#CF3C3C\"}","{\"text\":\"the arrow's trajectory, however the arrow\",\"color\":\"#CF3C3C\"}","{\"text\":\"may not be picked back up.\",\"color\":\"#CF3C3C\"}","{\"text\":\"\"}","{\"text\":\"If fired from a bow, hitting an enemy will\",\"color\":\"#008DD4\"}","{\"text\":\"teleport them to you.\",\"color\":\"#008DD4\"}"]},HideFlags:35,CustomPotionEffects:[{Id:13b,Amplifier:100b,Duration:1111,ShowParticles:0b},{Id:32b,Amplifier:105b,Duration:1111,ShowParticles:0b}],CustomPotionColor:3905129}}},{buy:{id:"minecraft:shulker_shell",Count:1b},buyB:{id:"minecraft:arrow",Count:16b},sell:{id:"minecraft:tipped_arrow",Count:16b,tag:{display:{Name:"{\"text\":\"Shulker-Tipped Arrow\",\"color\":\"#E802D9\"}","Lore":["{\"text\":\"If shot from a crossbow, applies a strong\",\"color\":\"#CF3C3C\"}","{\"text\":\"levitation effect, however the arrow\",\"color\":\"#CF3C3C\"}","{\"text\":\"may not be picked back up.\",\"color\":\"#CF3C3C\"}","{\"text\":\"\"}","{\"text\":\"If fired from a bow, killing an enemy will\",\"color\":\"#008DD4\"}","{\"text\":\"teleport its loot and xp to you.\",\"color\":\"#008DD4\"}"]},HideFlags:35,CustomPotionEffects:[{Id:13b,Amplifier:100b,Duration:1111,ShowParticles:0b},{Id:32b,Amplifier:106b,Duration:1111,ShowParticles:0b}],CustomPotionColor:16190207}}}]}}
tag @e[type=villager] remove CHG3

kill @e[name=H3S]