import crafttweaker.api.villagers.VillagerTrades;

villagerTrades.addTrade(<profession:minecraft:weaponsmith>, 2, <item:minecraft:iron_ingot> * 12, <item:minecraft:emerald>, 5, 2, 0.05);

villagerTrades.addTrade(<profession:minecraft:weaponsmith>, 1, <item:silentgear:sword_blade>.withTag({CraftedCount: 1 as int, Materials: [{Item: {id: "silents_mechanisms:copper_ingot" as string, Count: 1 as byte}, ID: "silentgear:copper" as string, Count: 2 as byte}]}) * 4, <item:minecraft:emerald>, 2, 3, 0.05);
villagerTrades.addTrade(<profession:minecraft:weaponsmith>, 1, <item:silentgear:sword_blueprint>, <item:minecraft:emerald> * 3, 2, 5, 0.05);
villagerTrades.addTrade(<profession:minecraft:weaponsmith>, 2, <item:silentgear:sword_blade>.withTag({CraftedCount: 1 as int, Materials: [{Item: {id: "minecraft:diamond" as string, Count: 1 as byte}, ID: "silentgear:diamond" as string, Count: 2 as byte}]}), <item:minecraft:emerald> * 4, 2, 15, 0.05);
villagerTrades.addTrade(<profession:minecraft:weaponsmith>, 1, <item:silentgear:sword_blade>.withTag({CraftedCount: 1 as int, Materials: [{Item: {id: "silents_mechanisms:aluminum_ingot" as string, Count: 1 as byte}, ID: "silentgear:aluminum" as string, Count: 2 as byte}]}) * 3, <item:minecraft:emerald>, 3, 5, 0.05);
villagerTrades.addTrade(<profession:minecraft:weaponsmith>, 5, <item:silentgear:crimson_iron_ingot>, <item:minecraft:emerald> * 3, 4, 5, 0.05);
villagerTrades.addTrade(<profession:minecraft:weaponsmith>, 1, <item:silentgear:katana_blade>.withTag({CraftedCount: 1 as int, Materials: [{Item: {id: "minecraft:emerald" as string, Count: 1 as byte}, ID: "silentgear:emerald" as string, Count: 3 as byte}]}), <item:minecraft:emerald> * 3, 4, 5, 0.05);
villagerTrades.addTrade(<profession:minecraft:weaponsmith>, 1, <item:minecraft:coal> * 22, <item:minecraft:emerald>, 4, 3, 0.05);
villagerTrades.addTrade(<profession:minecraft:weaponsmith>, 2, <item:silents_mechanisms:aluminum_ingot> * 8, <item:minecraft:emerald>, 6, 10, 0.05);
villagerTrades.addTrade(<profession:minecraft:weaponsmith>, 3, <item:silents_mechanisms:platinum_ingot> * 2, <item:minecraft:emerald> * 8, 2, 20, 0.05);
villagerTrades.addTrade(<profession:minecraft:weaponsmith>, 2, <item:betterendforge:diamond_hammer>, <item:minecraft:emerald> * 12, 4, 10, 0.05);
villagerTrades.addTrade(<profession:minecraft:weaponsmith>, 1, <item:silentgear:iron_rod> * 32, <item:minecraft:emerald>, 4, 4, 0.05);
villagerTrades.addTrade(<profession:minecraft:weaponsmith>, 2, <item:silentgear:katana_blueprint>, <item:minecraft:emerald> * 5, 1, 20, 0.05);
villagerTrades.addTrade(<profession:minecraft:weaponsmith>, 1, 3, <item:mysticalworld:lead_sword>, 2, 5, 0.05);
villagerTrades.addTrade(<profession:minecraft:weaponsmith>, 1, 2, <item:mysticalworld:tin_sword>, 2, 5, 0.05);
villagerTrades.addTrade(<profession:minecraft:weaponsmith>, 2, 7, <item:mysticalworld:amethyst_sword>, 2, 25, 0.05);
villagerTrades.addTrade(<profession:minecraft:weaponsmith>, 1, 4, <item:mysticalworld:silver_sword>, 2, 7, 0.05);
villagerTrades.addTrade(<profession:minecraft:weaponsmith>, 1, 2, <item:appliedenergistics2:certus_quartz_sword>, 3, 5, 0.05);
villagerTrades.addTrade(<profession:minecraft:weaponsmith>, 1, 2, <item:appliedenergistics2:nether_quartz_sword>, 3, 5, 0.05);
villagerTrades.addTrade(<profession:minecraft:weaponsmith>, 2, 6, <item:immersiveengineering:sword_steel>, 2, 20, 0.05);
villagerTrades.addTrade(<profession:minecraft:weaponsmith>, 3, 8, <item:silentgear:sword_blade>.withTag({CraftedCount: 1 as int, Materials: [{Item: {id: "silents_mechanisms:steel_ingot" as string, Count: 1 as byte}, ID: "silentgear:steel" as string, Count: 2 as byte}]}), 2, 20, 0.05);

villagerTrades.addTrade(<profession:minecraft:weaponsmith>, 3, <item:minecraft:lava_bucket>, <item:minecraft:anvil>, <item:silents_mechanisms:steel_ingot> * 12, 1, 30, 0.01);

villagerTrades.removeItemsForEmeraldsTrade(<profession:minecraft:weaponsmith>, 2, <item:minecraft:bell>);
villagerTrades.removeItemsForEmeraldsTrade(<profession:minecraft:weaponsmith>, 1, <item:minecraft:iron_axe>);
villagerTrades.removeItemsForEmeraldsTrade(<profession:minecraft:weaponsmith>, 1, <item:minecraft:iron_sword>);
villagerTrades.removeEmeraldForItemsTrade(<profession:minecraft:weaponsmith>, 2, <item:minecraft:iron_ingot>.definition);
villagerTrades.removeEmeraldForItemsTrade(<profession:minecraft:weaponsmith>, 1, <item:minecraft:coal>.definition);
villagerTrades.removeEmeraldForItemsTrade(<profession:minecraft:weaponsmith>, 4, <item:minecraft:diamond>.definition);


villagerTrades.removeEnchantedItemForEmeraldsTrade(<profession:minecraft:weaponsmith>, 1, <item:minecraft:iron_sword>.withTag({Enchantments: [{lvl: 2 as short, id: "apotheosis:bane_of_illagers" as string}]}));
villagerTrades.removeEnchantedItemForEmeraldsTrade(<profession:minecraft:weaponsmith>, 1, <item:minecraft:iron_sword>.withTag({Enchantments: [{lvl: 1 as short, id: "minecraft:smite" as string}]}));
villagerTrades.removeEnchantedItemForEmeraldsTrade(<profession:minecraft:weaponsmith>, 1, <item:minecraft:iron_sword>.withTag({Enchantments: [{lvl: 1 as short, id: "minecraft:looting" as string}]}));
villagerTrades.removeEnchantedItemForEmeraldsTrade(<profession:minecraft:weaponsmith>, 1, <item:minecraft:iron_sword>.withTag({Enchantments: [{lvl: 1 as short, id: "minecraft:sharpness" as string}]}));
villagerTrades.removeEnchantedItemForEmeraldsTrade(<profession:minecraft:weaponsmith>, 1, <item:minecraft:iron_sword>.withTag({Enchantments: [{lvl: 2 as short, id: "minecraft:sharpness" as string}]}));
villagerTrades.removeEnchantedItemForEmeraldsTrade(<profession:minecraft:weaponsmith>, 1, <item:minecraft:iron_sword>.withTag({Enchantments: [{lvl: 1 as short, id: "minecraft:unbreaking" as string}]}));
villagerTrades.removeEnchantedItemForEmeraldsTrade(<profession:minecraft:weaponsmith>, 1, <item:minecraft:iron_sword>.withTag({Enchantments: [{lvl: 3 as short, id: "ma-enchants:faster_attack" as string}]}));
villagerTrades.removeEnchantedItemForEmeraldsTrade(<profession:minecraft:weaponsmith>, 1, <item:minecraft:iron_sword>.withTag({Enchantments: [{lvl: 2 as short, id: "ma-enchants:faster_attack" as string}]}));
villagerTrades.removeEnchantedItemForEmeraldsTrade(<profession:minecraft:weaponsmith>, 1, <item:minecraft:iron_sword>.withTag({Enchantments: [{lvl: 1 as short, id: "ma-enchants:faster_attack" as string}]}));
villagerTrades.removeEnchantedItemForEmeraldsTrade(<profession:minecraft:weaponsmith>, 1, <item:minecraft:iron_sword>.withTag({Enchantments: [{lvl: 3 as short, id: "ma-enchants:timeless" as string}]}));
villagerTrades.removeEnchantedItemForEmeraldsTrade(<profession:minecraft:weaponsmith>, 1, <item:minecraft:iron_sword>.withTag({Enchantments: [{lvl: 1 as short, id: "ma-enchants:lifesteal" as string}]}));
villagerTrades.removeEnchantedItemForEmeraldsTrade(<profession:minecraft:weaponsmith>, 1, <item:minecraft:iron_sword>.withTag({Enchantments: [{lvl: 1 as short, id: "wonderful_enchants:leech" as string}]}));
villagerTrades.removeEnchantedItemForEmeraldsTrade(<profession:minecraft:weaponsmith>, 1, <item:minecraft:iron_sword>.withTag({Enchantments: [{lvl: 1 as short, id: "wonderful_enchants:human_slayer" as string}]}));
villagerTrades.removeEnchantedItemForEmeraldsTrade(<profession:minecraft:weaponsmith>, 1, <item:minecraft:iron_sword>.withTag({Enchantments: [{lvl: 1 as short, id: "flowingagony:fresh_revenge" as string}]}));

