








#execute at @e[type=armor_stand,name=H311] run fill ~-65 1 ~-65 ~65 1 ~65 bedrock replace #suhc:stones

fill ~ ~-30 ~ ~ ~30 ~ fire replace #minecraft:replaceable_plants
fill ~ ~-30 ~ ~ ~30 ~ wither_rose replace #minecraft:flowers
fillbiome ~ ~-30 ~ ~ ~30 ~ minecraft:nether_wastes


fill ~ ~-30 ~ ~ ~30 ~ netherrack replace minecraft:grass_block
fill ~ ~-30 ~ ~ ~30 ~ netherrack replace minecraft:dirt
fill ~ ~-30 ~ ~ ~30 ~ netherrack replace minecraft:rooted_dirt
fill ~ ~-30 ~ ~ ~30 ~ netherrack replace minecraft:coarse_dirt
fill ~ ~-30 ~ ~ ~30 ~ soul_sand replace minecraft:podzol
fill ~ ~-30 ~ ~ ~30 ~ heavy_weighted_pressure_plate replace #minecraft:wooden_pressure_plates
fill ~ ~-30 ~ ~ ~30 ~ netherrack replace #suhc:stones
fill ~ ~-30 ~ ~ ~30 ~ nether_bricks replace #suhc:sandstones
fill ~ ~-30 ~ ~ ~30 ~ nether_brick_slab[type=bottom] replace #minecraft:slabs[type=bottom]
fill ~ ~-30 ~ ~ ~30 ~ nether_brick_stairs[facing=east,half=top] replace #minecraft:stairs[facing=east,half=top]
fill ~ ~-30 ~ ~ ~30 ~ nether_brick_stairs[facing=west,half=top] replace #minecraft:stairs[facing=west,half=top]
fill ~ ~-30 ~ ~ ~30 ~ nether_brick_stairs[facing=south,half=top] replace #minecraft:stairs[facing=south,half=top]
fill ~ ~-30 ~ ~ ~30 ~ nether_brick_stairs[facing=north,half=top] replace #minecraft:stairs[facing=north,half=top]
fill ~ ~-30 ~ ~ ~30 ~ nether_brick_stairs[facing=east,half=bottom] replace #minecraft:stairs[facing=east,half=bottom]
fill ~ ~-30 ~ ~ ~30 ~ nether_brick_stairs[facing=west,half=bottom] replace #minecraft:stairs[facing=west,half=bottom]
fill ~ ~-30 ~ ~ ~30 ~ nether_brick_stairs[facing=south,half=bottom] replace #minecraft:stairs[facing=south,half=bottom]
fill ~ ~-30 ~ ~ ~30 ~ nether_brick_stairs[facing=north,half=bottom] replace #minecraft:stairs[facing=north,half=bottom]
fill ~ ~-30 ~ ~ ~30 ~ air replace #minecraft:wooden_trapdoors[facing=east,open=true,half=top]
#fill ~ ~-30 ~ ~ ~30 ~ iron_trapdoor[facing=west,open=true,half=top] replace #minecraft:wooden_trapdoors[facing=west,open=true,half=top]
#fill ~ ~-30 ~ ~ ~30 ~ iron_trapdoor[facing=south,open=true,half=top] replace #minecraft:wooden_trapdoors[facing=south,open=true,half=top]
#fill ~ ~-30 ~ ~ ~30 ~ iron_trapdoor[facing=north,open=true,half=top] replace #minecraft:wooden_trapdoors[facing=north,open=true,half=top]
#fill ~ ~-30 ~ ~ ~30 ~ iron_trapdoor[facing=east,open=true,half=bottom] replace #minecraft:wooden_trapdoors[facing=east,open=true,half=bottom]
#fill ~ ~-30 ~ ~ ~30 ~ iron_trapdoor[facing=west,open=true,half=bottom] replace #minecraft:wooden_trapdoors[facing=west,open=true,half=bottom]
#fill ~ ~-30 ~ ~ ~30 ~ iron_trapdoor[facing=south,open=true,half=bottom] replace #minecraft:wooden_trapdoors[facing=south,open=true,half=bottom]
#fill ~ ~-30 ~ ~ ~30 ~ iron_trapdoor[facing=north,open=true,half=bottom] replace #minecraft:wooden_trapdoors[facing=north,open=true,half=bottom]
#fill ~ ~-30 ~ ~ ~30 ~ iron_trapdoor[facing=east,open=false,half=top] replace #minecraft:wooden_trapdoors[facing=east,open=false,half=top]
#fill ~ ~-30 ~ ~ ~30 ~ iron_trapdoor[facing=west,open=false,half=top] replace #minecraft:wooden_trapdoors[facing=west,open=false,half=top]
#fill ~ ~-30 ~ ~ ~30 ~ iron_trapdoor[facing=south,open=false,half=top] replace #minecraft:wooden_trapdoors[facing=south,open=false,half=top]
#fill ~ ~-30 ~ ~ ~30 ~ iron_trapdoor[facing=north,open=false,half=top] replace #minecraft:wooden_trapdoors[facing=north,open=false,half=top]
#fill ~ ~-30 ~ ~ ~30 ~ iron_trapdoor[facing=east,open=false,half=bottom] replace #minecraft:wooden_trapdoors[facing=east,open=false,half=bottom]
#fill ~ ~-30 ~ ~ ~30 ~ iron_trapdoor[facing=west,open=false,half=bottom] replace #minecraft:wooden_trapdoors[facing=west,open=false,half=bottom]
#fill ~ ~-30 ~ ~ ~30 ~ iron_trapdoor[facing=south,open=false,half=bottom] replace #minecraft:wooden_trapdoors[facing=south,open=false,half=bottom]
#fill ~ ~-30 ~ ~ ~30 ~ iron_trapdoor[facing=north,open=false,half=bottom] replace #minecraft:wooden_trapdoors[facing=north,open=false,half=bottom]
fill ~ ~-30 ~ ~ ~30 ~ soul_fire replace cactus
fill ~ ~-30 ~ ~ ~30 ~ soul_fire replace dead_bush
fill ~ ~-30 ~ ~ ~30 ~ soul_sand replace minecraft:sand
fill ~ ~-30 ~ ~ ~30 ~ fire replace #minecraft:leaves
fill ~ ~-30 ~ ~ ~30 ~ magma_block replace #minecraft:logs
fill ~ ~-30 ~ ~ ~30 ~ coal_block replace diamond_ore
fill ~ ~-30 ~ ~ ~30 ~ nether_quartz_ore replace #suhc:ores
fill ~ ~-30 ~ ~ ~30 ~ red_nether_bricks replace minecraft:cobblestone
fill ~ ~-30 ~ ~ ~30 ~ nether_bricks replace #minecraft:planks
fill ~ ~-30 ~ ~ ~30 ~ nether_brick_slab[type=top] replace #minecraft:slabs[type=top]
fill ~ ~-30 ~ ~ ~30 ~ nether_brick_slab[type=double] replace #minecraft:slabs[type=double]
fill ~ ~-30 ~ ~ ~30 ~ nether_brick_fence replace #minecraft:wooden_fences
##fill ~ ~-30 ~ ~ ~30 ~ nether_brick_fence replace minecraft:oak_fence
##fill ~ ~-30 ~ ~ ~30 ~ nether_brick_fence replace minecraft:spruce_fence
##fill ~ ~-30 ~ ~ ~30 ~ nether_brick_fence replace minecraft:acacia_fence
fill ~ ~-30 ~ ~ ~30 ~ black_stained_glass replace #minecraft:impermeable
fill ~ ~-30 ~ ~ ~30 ~ air replace #minecraft:doors
fill ~ ~-30 ~ ~ ~30 ~ air replace #minecraft:fence_gates

fill ~ ~-30 ~ ~ ~30 ~ lava replace farmland
fill ~ ~-30 ~ ~ ~30 ~ black_stained_glass replace minecraft:glass_pane
fill ~ ~-30 ~ ~ ~30 ~ jack_o_lantern replace #minecraft:wool
fill ~ ~-30 ~ ~ ~30 ~ jack_o_lantern replace pumpkin
fill ~ ~-30 ~ ~ ~30 ~ soul_torch replace torch
fill ~ ~-30 ~ ~ ~30 ~ fire replace wall_torch
fill ~ ~-30 ~ ~ ~30 ~ nether_quartz_ore replace redstone_ore
fill ~ ~-30 ~ ~ ~30 ~ nether_wart_block replace dirt_path
fill ~ ~-30 ~ ~ ~30 ~ air replace snow
#fill ~ 190 ~ ~ 215 ~ air replace snow
fill ~ ~-30 ~ ~ ~30 ~ air replace snow_block
fill ~ ~-30 ~ ~ ~30 ~ air replace snow_block
fill ~ ~-30 ~ ~ ~30 ~ lava replace powder_snow

#fill ~ 190 ~ ~ 215 ~ air replace snow_block
fill ~ ~-30 ~ ~ ~30 ~ air replace hay_block
fill ~ ~-30 ~ ~ ~30 ~ black_glazed_terracotta replace clay
fill ~ ~-30 ~ ~ ~30 ~ nether_brick_fence replace #minecraft:walls
fill ~ ~-30 ~ ~ ~30 ~ fire replace vine
fill ~ ~-30 ~ ~ ~30 ~ red_nether_bricks replace #minecraft:stone_bricks
fill ~ ~-30 ~ ~ ~30 ~ nether_wart_block replace minecraft:mossy_cobblestone
fill ~ ~-30 ~ ~ ~30 ~ minecraft:red_nether_bricks replace minecraft:smooth_sandstone
fill ~ ~-30 ~ ~ ~30 ~ minecraft:red_nether_brick_slab replace minecraft:smooth_sandstone_slab
fill ~ -62 ~ ~ -62 ~ barrier
fill ~ ~-30 ~ ~ ~30 ~ nether_wart_block replace #suhc:ices
#fill ~ 190 ~ ~ 215 ~ nether_wart_block replace #suhc:ices
fill ~ ~-30 ~ ~ ~30 ~ black_carpet replace #minecraft:wool_carpets

fill ~ ~-30 ~ ~ ~30 ~ soul_lantern[hanging=true] replace lantern[hanging=true]
fill ~ ~-30 ~ ~ ~30 ~ soul_lantern[hanging=false] replace lantern[hanging=false]
fill ~ ~-30 ~ ~ ~30 ~ soul_campfire replace minecraft:campfire
fill ~ ~-30 ~ ~ ~30 ~ nether_bricks replace bricks

fill ~ ~-30 ~ ~ ~30 ~ soul_sand replace mud
fill ~ ~-30 ~ ~ ~30 ~ air replace moss_carpet
fill ~ ~-30 ~ ~ ~30 ~ magma_block replace mangrove_roots
fill ~ ~-30 ~ ~ ~30 ~ magma_block replace muddy_mangrove_roots
##kill @e[name=H3S]
#
##########################END OF BLOCK CORRUPTION, BEGIN OF VILLAGER CHANGES
#
execute positioned ~-1 ~-30 ~-1 run effect give @e[dx=2,dy=60,dz=2,type=villager] fire_resistance 12000 0

execute positioned ~-1 ~-30 ~-1 run tag @e[dx=2,dy=60,dz=2,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 positioned ~-1 ~-30 ~-1 run execute as @e[tag=!NetherCorrupted,dx=2,dy=60,dz=2,type=villager,nbt={VillagerData:{profession:"minecraft:librarian"}}] run function zzzzdonotuse:nethercorruption/villagers/sorcerer
#execute positioned ~-1 ~-30 ~-1 run tag @e[dx=2,dy=60,dz=2,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 positioned ~-1 ~-30 ~-1 run tag @e[dx=2,dy=60,dz=2,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:[{maxUses:9999,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,custom_potion_effects:[{id:"minecraft:water_breathing",amplifier:100b,duration:1111,show_particles:0b},{id:"minecraft:hero_of_the_village",amplifier:100b,duration:1111,show_particles:0b}],CustomPotionColor:12562350}}},{maxUses:9999,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,custom_potion_effects:[{id:"minecraft:water_breathing",amplifier:100b,duration:1111,show_particles:0b},{id:"minecraft:hero_of_the_village",amplifier:101b,duration:1111,show_particles:0b}],CustomPotionColor:14408448}}},{maxUses:9999,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,custom_potion_effects:[{id:"minecraft:water_breathing",amplifier:100b,duration:1111,show_particles:0b},{id:"minecraft:hero_of_the_village",amplifier:102b,duration:1111,show_particles:0b}],CustomPotionColor:65535}}},{maxUses:9999,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,custom_potion_effects:[{id:"minecraft:water_breathing",amplifier:100b,duration:1111,show_particles:0b},{id:"minecraft:hero_of_the_village",amplifier:103b,duration:1111,show_particles:0b}],CustomPotionColor:65297}}},{maxUses:9999,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,custom_potion_effects:[{id:"minecraft:water_breathing",amplifier:100b,duration:1111,show_particles:0b},{id:"minecraft:hero_of_the_village",amplifier:104b,duration:1111,show_particles:0b}],CustomPotionColor:9841194}}},{maxUses:9999,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,custom_potion_effects:[{id:"minecraft:water_breathing",amplifier:100b,duration:1111,show_particles:0b},{id:"minecraft:hero_of_the_village",amplifier:105b,duration:1111,show_particles:0b}],CustomPotionColor:3905129}}},{maxUses:9999,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,custom_potion_effects:[{id:"minecraft:water_breathing",amplifier:100b,duration:1111,show_particles:0b},{id:"minecraft:hero_of_the_village",amplifier:106b,duration:1111,show_particles:0b}],CustomPotionColor:16190207}}}]}}
tag @e[type=villager] remove CHG3





#kill @e[name=H3S]