tag @s remove SorcItems
execute as @s[nbt={Inventory:[{id:"minecraft:brewing_stand"}]},nbt=!{Inventory:[{id:"minecraft:brewing_stand",Count:1b}]},nbt={Inventory:[{id:"minecraft:enchanting_table"}]},nbt=!{Inventory:[{id:"minecraft:enchanting_table",Count:1b}]},scores={health=5..}] run tag @s add SorcItems
execute as @s[nbt={Inventory:[{id:"minecraft:brewing_stand",Count:2b}]},nbt={Inventory:[{id:"minecraft:enchanting_table",Count:2b}]},scores={health=5..}] run tag @s add SorcItems
clear @s[tag=SorcItems] brewing_stand 2
clear @s[tag=SorcItems] enchanting_table 2
#do void damage
tag @s[tag=SorcItems] add DoVoid

execute as @s[tag=SorcItems] run scoreboard players set @s KyuVoid -10
execute if entity @s[tag=SorcItems] run function zzzzdonotuse:misc/activatevoiddamage
give @s[tag=SorcItems] minecraft:villager_spawn_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,1081],Slot:"head"},{AttributeName:"generic.armor",Name:"generic.armor",Amount:3,Operation:0,UUID:[I;6969,6969,6969,1082],Slot:"head"},{AttributeName:"generic.armor_toughness",Name:"generic.armor_toughness",Amount:2,Operation:0,UUID:[I;6969,6969,6969,1083],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,1084],Slot:"head"},{AttributeName:"generic.armor",Name:"generic.armor",Amount:3,Operation:0,UUID:[I;6969,6969,6969,1085],Slot:"head"},{AttributeName:"generic.armor_toughness",Name:"generic.armor_toughness",Amount:2,Operation:0,UUID:[I;6969,6969,6969,1086],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,1087],Slot:"offhand"},{AttributeName:"generic.attack_speed",Name:"generic.attack_speed",Amount:.1,Operation:2,UUID:[I;6969,6969,6969,1088],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,1089],Slot:"offhand"},{AttributeName:"generic.movement_speed",Name:"generic.movement_speed",Amount:-.1,Operation:2,UUID:[I;6969,6969,6969,1090],Slot:"offhand"},{AttributeName:"generic.armor",Name:"generic.armor",Amount:0,Operation:0,UUID:[I;6969,6969,6969,1091],Slot:"offhand"},{AttributeName:"generic.armor_toughness",Name:"generic.armor_toughness",Amount:1,Operation:0,UUID:[I;6969,6969,6969,1092],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,AttributeModifiers:[{AttributeName:"generic.attack_damage",Name:"generic.attack_damage",Amount:.2,Operation:2,UUID:[I;6969,6969,6969,1093],Slot:"offhand"},{AttributeName:"generic.armor",Name:"generic.armor",Amount:-.15,Operation:2,UUID:[I;6969,6969,6969,1094],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,AttributeModifiers:[{AttributeName:"generic.armor",Name:"generic.armor",Amount:1,Operation:0,UUID:[I;6969,6969,6969,1095],Slot:"offhand"},{AttributeName:"generic.armor_toughness",Name:"generic.armor_toughness",Amount:2,Operation:0,UUID:[I;6969,6969,6969,1096],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,1097],Slot:"chest"},{AttributeName:"generic.armor_toughness",Name:"generic.armor_toughness",Amount:2,Operation:0,UUID:[I;6969,6969,6969,1098],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,1099],Slot:"chest"},{AttributeName:"generic.armor_toughness",Name:"generic.armor_toughness",Amount:2,Operation:0,UUID:[I;6969,6969,6969,1100],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,1101],Slot:"head"},{AttributeName:"generic.armor",Name:"generic.armor",Amount:3,Operation:0,UUID:[I;6969,6969,6969,1102],Slot:"head"},{AttributeName:"generic.armor_toughness",Name:"generic.armor_toughness",Amount:2,Operation:0,UUID:[I;6969,6969,6969,1103],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,1104],Slot:"head"},{AttributeName:"generic.armor",Name:"generic.armor",Amount:3,Operation:0,UUID:[I;6969,6969,6969,1105],Slot:"head"},{AttributeName:"generic.armor_toughness",Name:"generic.armor_toughness",Amount:2,Operation:0,UUID:[I;6969,6969,6969,1106],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,1107],Slot:"offhand"},{AttributeName:"generic.attack_speed",Name:"generic.attack_speed",Amount:.1,Operation:2,UUID:[I;6969,6969,6969,1108],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,1109],Slot:"offhand"},{AttributeName:"generic.movement_speed",Name:"generic.movement_speed",Amount:-.1,Operation:2,UUID:[I;6969,6969,6969,1110],Slot:"offhand"},{AttributeName:"generic.armor",Name:"generic.armor",Amount:0,Operation:0,UUID:[I;6969,6969,6969,1111],Slot:"offhand"},{AttributeName:"generic.armor_toughness",Name:"generic.armor_toughness",Amount:1,Operation:0,UUID:[I;6969,6969,6969,1112],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,AttributeModifiers:[{AttributeName:"generic.attack_damage",Name:"generic.attack_damage",Amount:.2,Operation:2,UUID:[I;6969,6969,6969,1113],Slot:"offhand"},{AttributeName:"generic.armor",Name:"generic.armor",Amount:-.15,Operation:2,UUID:[I;6969,6969,6969,1114],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,AttributeModifiers:[{AttributeName:"generic.armor",Name:"generic.armor",Amount:1,Operation:0,UUID:[I;6969,6969,6969,1115],Slot:"offhand"},{AttributeName:"generic.armor_toughness",Name:"generic.armor_toughness",Amount:2,Operation:0,UUID:[I;6969,6969,6969,1116],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,1117],Slot:"chest"},{AttributeName:"generic.armor_toughness",Name:"generic.armor_toughness",Amount:2,Operation:0,UUID:[I;6969,6969,6969,1118],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,1119],Slot:"chest"},{AttributeName:"generic.armor_toughness",Name:"generic.armor_toughness",Amount:2,Operation:0,UUID:[I;6969,6969,6969,1120],Slot:"chest"}],Enchantments:[{id:"minecraft:protection",lvl:3},{id:"minecraft:feather_falling",lvl:4}]}}},]}}}}}]}}}
tag @s remove SorcItems