tag @s remove BlastItems
execute as @s[tag=!BlastItems,nbt={Inventory:[{id:"minecraft:tnt",Count:18b}]},scores={health=5..}] run tag @s add BlastItems
execute as @s[tag=!BlastItems,nbt={Inventory:[{id:"minecraft:tnt",Count:19b}]},scores={health=5..}] run tag @s add BlastItems
execute as @s[tag=!BlastItems,nbt={Inventory:[{id:"minecraft:tnt",Count:20b}]},scores={health=5..}] run tag @s add BlastItems
execute as @s[tag=!BlastItems,nbt={Inventory:[{id:"minecraft:tnt",Count:21b}]},scores={health=5..}] run tag @s add BlastItems
execute as @s[tag=!BlastItems,nbt={Inventory:[{id:"minecraft:tnt",Count:22b}]},scores={health=5..}] run tag @s add BlastItems
execute as @s[tag=!BlastItems,nbt={Inventory:[{id:"minecraft:tnt",Count:23b}]},scores={health=5..}] run tag @s add BlastItems
execute as @s[tag=!BlastItems,nbt={Inventory:[{id:"minecraft:tnt",Count:24b}]},scores={health=5..}] run tag @s add BlastItems
execute as @s[tag=!BlastItems,nbt={Inventory:[{id:"minecraft:tnt",Count:25b}]},scores={health=5..}] run tag @s add BlastItems
execute as @s[tag=!BlastItems,nbt={Inventory:[{id:"minecraft:tnt",Count:26b}]},scores={health=5..}] run tag @s add BlastItems
execute as @s[tag=!BlastItems,nbt={Inventory:[{id:"minecraft:tnt",Count:27b}]},scores={health=5..}] run tag @s add BlastItems
execute as @s[tag=!BlastItems,nbt={Inventory:[{id:"minecraft:tnt",Count:28b}]},scores={health=5..}] run tag @s add BlastItems
execute as @s[tag=!BlastItems,nbt={Inventory:[{id:"minecraft:tnt",Count:29b}]},scores={health=5..}] run tag @s add BlastItems
execute as @s[tag=!BlastItems,nbt={Inventory:[{id:"minecraft:tnt",Count:30b}]},scores={health=5..}] run tag @s add BlastItems
execute as @s[tag=!BlastItems,nbt={Inventory:[{id:"minecraft:tnt",Count:31b}]},scores={health=5..}] run tag @s add BlastItems
execute as @s[tag=!BlastItems,nbt={Inventory:[{id:"minecraft:tnt",Count:32b}]},scores={health=5..}] run tag @s add BlastItems
execute as @s[tag=!BlastItems,nbt={Inventory:[{id:"minecraft:tnt",Count:33b}]},scores={health=5..}] run tag @s add BlastItems
execute as @s[tag=!BlastItems,nbt={Inventory:[{id:"minecraft:tnt",Count:34b}]},scores={health=5..}] run tag @s add BlastItems
execute as @s[tag=!BlastItems,nbt={Inventory:[{id:"minecraft:tnt",Count:35b}]},scores={health=5..}] run tag @s add BlastItems
execute as @s[tag=!BlastItems,nbt={Inventory:[{id:"minecraft:tnt",Count:36b}]},scores={health=5..}] run tag @s add BlastItems
execute as @s[tag=!BlastItems,nbt={Inventory:[{id:"minecraft:tnt",Count:37b}]},scores={health=5..}] run tag @s add BlastItems
execute as @s[tag=!BlastItems,nbt={Inventory:[{id:"minecraft:tnt",Count:38b}]},scores={health=5..}] run tag @s add BlastItems
execute as @s[tag=!BlastItems,nbt={Inventory:[{id:"minecraft:tnt",Count:39b}]},scores={health=5..}] run tag @s add BlastItems
execute as @s[tag=!BlastItems,nbt={Inventory:[{id:"minecraft:tnt",Count:40b}]},scores={health=5..}] run tag @s add BlastItems
execute as @s[tag=!BlastItems,nbt={Inventory:[{id:"minecraft:tnt",Count:41b}]},scores={health=5..}] run tag @s add BlastItems
execute as @s[tag=!BlastItems,nbt={Inventory:[{id:"minecraft:tnt",Count:42b}]},scores={health=5..}] run tag @s add BlastItems
execute as @s[tag=!BlastItems,nbt={Inventory:[{id:"minecraft:tnt",Count:43b}]},scores={health=5..}] run tag @s add BlastItems
execute as @s[tag=!BlastItems,nbt={Inventory:[{id:"minecraft:tnt",Count:44b}]},scores={health=5..}] run tag @s add BlastItems
execute as @s[tag=!BlastItems,nbt={Inventory:[{id:"minecraft:tnt",Count:45b}]},scores={health=5..}] run tag @s add BlastItems
execute as @s[tag=!BlastItems,nbt={Inventory:[{id:"minecraft:tnt",Count:46b}]},scores={health=5..}] run tag @s add BlastItems
execute as @s[tag=!BlastItems,nbt={Inventory:[{id:"minecraft:tnt",Count:47b}]},scores={health=5..}] run tag @s add BlastItems
execute as @s[tag=!BlastItems,nbt={Inventory:[{id:"minecraft:tnt",Count:48b}]},scores={health=5..}] run tag @s add BlastItems
execute as @s[tag=!BlastItems,nbt={Inventory:[{id:"minecraft:tnt",Count:49b}]},scores={health=5..}] run tag @s add BlastItems
execute as @s[tag=!BlastItems,nbt={Inventory:[{id:"minecraft:tnt",Count:50b}]},scores={health=5..}] run tag @s add BlastItems
execute as @s[tag=!BlastItems,nbt={Inventory:[{id:"minecraft:tnt",Count:51b}]},scores={health=5..}] run tag @s add BlastItems
execute as @s[tag=!BlastItems,nbt={Inventory:[{id:"minecraft:tnt",Count:52b}]},scores={health=5..}] run tag @s add BlastItems
execute as @s[tag=!BlastItems,nbt={Inventory:[{id:"minecraft:tnt",Count:53b}]},scores={health=5..}] run tag @s add BlastItems
execute as @s[tag=!BlastItems,nbt={Inventory:[{id:"minecraft:tnt",Count:54b}]},scores={health=5..}] run tag @s add BlastItems
execute as @s[tag=!BlastItems,nbt={Inventory:[{id:"minecraft:tnt",Count:55b}]},scores={health=5..}] run tag @s add BlastItems
execute as @s[tag=!BlastItems,nbt={Inventory:[{id:"minecraft:tnt",Count:56b}]},scores={health=5..}] run tag @s add BlastItems
execute as @s[tag=!BlastItems,nbt={Inventory:[{id:"minecraft:tnt",Count:57b}]},scores={health=5..}] run tag @s add BlastItems
execute as @s[tag=!BlastItems,nbt={Inventory:[{id:"minecraft:tnt",Count:58b}]},scores={health=5..}] run tag @s add BlastItems
execute as @s[tag=!BlastItems,nbt={Inventory:[{id:"minecraft:tnt",Count:59b}]},scores={health=5..}] run tag @s add BlastItems
execute as @s[tag=!BlastItems,nbt={Inventory:[{id:"minecraft:tnt",Count:60b}]},scores={health=5..}] run tag @s add BlastItems
execute as @s[tag=!BlastItems,nbt={Inventory:[{id:"minecraft:tnt",Count:61b}]},scores={health=5..}] run tag @s add BlastItems
execute as @s[tag=!BlastItems,nbt={Inventory:[{id:"minecraft:tnt",Count:62b}]},scores={health=5..}] run tag @s add BlastItems
execute as @s[tag=!BlastItems,nbt={Inventory:[{id:"minecraft:tnt",Count:63b}]},scores={health=5..}] run tag @s add BlastItems
execute as @s[tag=!BlastItems,nbt={Inventory:[{id:"minecraft:tnt",Count:64b}]},scores={health=5..}] run tag @s add BlastItems
clear @s[tag=BlastItems] tnt 18
#do void damage
tag @s[tag=BlastItems] add DoVoid

execute as @s[tag=BlastItems] run scoreboard players set @s KyuVoid -10
execute if entity @s[tag=BlastItems] run function zzzzdonotuse:misc/activatevoiddamage
give @s[tag=BlastItems] minecraft:villager_spawn_egg{HideFlags:1,Enchantments:[{id:"minecraft:smite",lvl:1}],EntityTag:{VillagerData:{level:5,profession:"minecraft:armorer",type:"minecraft:savanna"},CustomName:"\"Blastsmith\"",CustomNameVisible:1,Offers:{Recipes:[{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:"minecraft:string",Count:12b},buyB:{id:"minecraft:bone",Count:6b},sell:{id:"minecraft:tnt",Count:4b}},{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:"minecraft:iron_block",Count:1b},sell:{id:"minecraft:tnt",Count:4b}},{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:"minecraft:redstone_torch",Count:1b},buyB:{id:"minecraft:tnt",Count:1b},sell:{id:"minecraft:tnt",Count:1b,tag:{BlockStateTag:{unstable:"true"},display:{Name:"{\"text\":\"Volatile TNT\",\"color\":\"#E34A09\"}","Lore":["{\"text\":\"A batch of tnt that is highly volatile,\",\"color\":\"#E30202\"}","{\"text\":\"and simply punching it will set it off.\",\"color\":\"#E30202\"}"]},HideFlags:1,Enchantments:[{id:"minecraft:minecraft:blast_protection",lvl:1}]}}},{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:"minecraft:tnt",Count:5b},buyB:{id:"minecraft:iron_ingot",Count:3b},sell:{id:"minecraft:black_glazed_terracotta",Count:1b,tag:{kyuminingcatalyst:1b,kyuspecialitem:1b,Enchantments:[{id:"minecraft:blast_protection",lvl:1}],display:{Name:"\"Mining Catalyst\"",Lore:["\"Acts as a larger tnt explosion and preserves all blocks deleted.\"","\"Throw on the ground to activate.\""]}}}},{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:"minecraft:tnt",Count:4b},buyB:{id:"minecraft:gold_ingot",Count:2b},sell:{id:"minecraft:stick",Count:1b,tag:{kyustripmine:1b,kyuspecialitem:1b,Enchantments:[{id:"minecraft:blast_protection",lvl:1}],display:{Name:"\"Strip Mine\"",Lore:["\"Throw on the ground to create a tiny stripped area.\""]}}}},{buy:{id:"minecraft:diamond",Count:3b},buyB:{id:"minecraft:fire_charge",Count:3b},sell:{id:"minecraft:crossbow",Count:1b,tag:{kyutntcrossbow:1b,display:{Name:"{\"text\":\"TNT Crossbow\",\"color\":\"#E34A09\"}","Lore":["{\"text\":\"\",\"color\":\"#CF3C3C\"}","{\"text\":\"A rare, reinforced crossbow that can fire TNT,\",\"color\":\"#E30202\"}","{\"text\":\"provided the user has TNT in their inventory.\",\"color\":\"#E30202\"}"]},Enchantments:[{id:"minecraft:blast_protection",lvl:3}]}}}]},PersistenceRequired:1}}
tag @s remove BlastItems




#summon villager ~ ~1 ~ {VillagerData:{level:5,profession:"minecraft:armorer",type:"minecraft:savanna"},CustomName:"\"Blastsmith\"",CustomNameVisible:1,Profession:3,CareerLevel:500,Offers:{Recipes:[
#{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:"minecraft:string",Count:12b},buyB:{id:"minecraft:bone",Count:6b},sell:{id:"minecraft:tnt",Count:4b}},
#{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:"minecraft:iron_block",Count:1b},sell:{id:"minecraft:tnt",Count:4b}},
#{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:"minecraft:redstone_torch",Count:1b},buyB:{id:"minecraft:tnt",Count:1b},sell:{id:"minecraft:tnt",Count:1b,tag:{BlockStateTag:{unstable:"true"},display:{Name:"{\"text\":\"Volatile TNT\",\"color\":\"#E34A09\"}","Lore":["{\"text\":\"A batch of tnt that is highly volatile,\",\"color\":\"#E30202\"}","{\"text\":\"and simply punching it will set it off.\",\"color\":\"#E30202\"}"]},HideFlags:1,Enchantments:[{id:"minecraft:minecraft:blast_protection",lvl:1}]}}},
#{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:"minecraft:tnt",Count:3b},buyB:{id:"minecraft:iron_ingot",Count:3b},sell:{id:"minecraft:black_glazed_terracotta",Count:1b,tag:{Enchantments:[{id:"minecraft:blast_protection",lvl:1}],display:{Name:"\"Mining Catalyst\"",Lore:["\"Acts as a larger tnt explosion and preserves all blocks deleted.\"","\"Throw on the ground to activate.\""]}}}},
#{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:"minecraft:tnt",Count:4b},buyB:{id:"minecraft:gold_ingot",Count:2b},sell:{id:"minecraft:stick",Count:1b,tag:{Enchantments:[{id:"minecraft:blast_protection",lvl:1}],display:{Name:"\"Strip Mine\"",Lore:["\"Throw on the ground to create a tiny stripped area.\""]}}}},
#{buy:{id:"minecraft:diamond",Count:3b},buyB:{id:"minecraft:fire_charge",Count:3b},sell:{id:"minecraft:crossbow",Count:1b,tag:{kyutntcrossbow:1b,display:{Name:"{\"text\":\"TNT Crossbow\",\"color\":\"#E34A09\"}","Lore":["{\"text\":\"\",\"color\":\"#CF3C3C\"}","{\"text\":\"A rare, reinforced crossbow that can fire TNT,\",\"color\":\"#E30202\"}","{\"text\":\"provided the user has TNT in their inventory.\",\"color\":\"#E30202\"}"]},Enchantments:[{id:"minecraft:blast_protection",lvl:3}]}}},
#{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:"minecraft:tnt",Count:8b},buyB:{id:"minecraft:egg",Count:1b},sell:{id:"minecraft:villager_spawn_egg",Damage:120,Count:1b,tag:{HideFlags:1,Enchantments:[{id:"minecraft:smite",lvl:1}],EntityTag:{id:"minecraft:villager",VillagerData:{level:5,profession:"minecraft:armorer",type:"minecraft:savanna"},CustomName:"\"Blastsmith\"",CustomNameVisible:1,Profession:3,CareerLevel:500,Offers:{Recipes:[
#
#{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:"minecraft:string",Count:12b},buyB:{id:"minecraft:bone",Count:6b},sell:{id:"minecraft:tnt",Count:4b}},
#{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:"minecraft:iron_block",Count:1b},sell:{id:"minecraft:tnt",Count:4b}},
#{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:"minecraft:redstone_torch",Count:1b},buyB:{id:"minecraft:tnt",Count:1b},sell:{id:"minecraft:tnt",Count:1b,tag:{BlockStateTag:{unstable:"true"},display:{Name:"{\"text\":\"Volatile TNT\",\"color\":\"#E34A09\"}","Lore":["{\"text\":\"A batch of tnt that is highly volatile,\",\"color\":\"#E30202\"}","{\"text\":\"and simply punching it will set it off.\",\"color\":\"#E30202\"}"]},HideFlags:1,Enchantments:[{id:"minecraft:minecraft:blast_protection",lvl:1}]}}},
#{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:"minecraft:tnt",Count:5b},buyB:{id:"minecraft:iron_ingot",Count:3b},sell:{id:"minecraft:black_glazed_terracotta",Count:1b,tag:{Enchantments:[{id:"minecraft:blast_protection",lvl:1}],display:{Name:"\"Mining Catalyst\"",Lore:["\"Acts as a larger tnt explosion and preserves all blocks deleted.\"","\"Throw on the ground to activate.\""]}}}},
#{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:"minecraft:tnt",Count:4b},buyB:{id:"minecraft:gold_ingot",Count:2b},sell:{id:"minecraft:stick",Count:1b,tag:{Enchantments:[{id:"minecraft:blast_protection",lvl:1}],display:{Name:"\"Strip Mine\"",Lore:["\"Throw on the ground to create a tiny stripped area.\""]}}}},
#{buy:{id:"minecraft:diamond",Count:3b},buyB:{id:"minecraft:fire_charge",Count:3b},sell:{id:"minecraft:crossbow",Count:1b,tag:{kyutntcrossbow:1b,display:{Name:"{\"text\":\"TNT Crossbow\",\"color\":\"#E34A09\"}","Lore":["{\"text\":\"\",\"color\":\"#CF3C3C\"}","{\"text\":\"A rare, reinforced crossbow that can fire TNT,\",\"color\":\"#E30202\"}","{\"text\":\"provided the user has TNT in their inventory.\",\"color\":\"#E30202\"}"]},Enchantments:[{id:"minecraft:blast_protection",lvl:3}]}}}]},
#
#
#PersistenceRequired:1}}}}]},PersistenceRequired:1}





