import crafttweaker.api.tag.MCTag;
import crafttweaker.api.item.IItemStack;
import crafttweaker.api.item.IIngredient;
import crafttweaker.api.item.MCItemDefinition;
import crafttweaker.api.blocks.MCBlock;
import crafttweaker.api.tool.ToolType;
import stdlib.List;

#-------------------------------#
# Make Vanilla Pickaxes Useless #
#-------------------------------#

val vanilla_swords = [
    <item:minecraft:wooden_sword>,
    <item:minecraft:stone_sword>,
    <item:minecraft:iron_sword>,
    <item:minecraft:golden_sword>,
    <item:minecraft:diamond_sword>,
    <item:minecraft:netherite_sword>,
    <item:betterendforge:aeternium_sword>,
    <item:betterendforge:thallasium_sword>,
    <item:betterendforge:terminite_sword>,
    <item:mysticalworld:sapphire_sword>,
    <item:mysticalworld:cactus_sword>,
    <item:mysticalworld:copper_sword>,
    <item:mysticalworld:lead_sword>,
    <item:mysticalworld:quicksilver_sword>,
    <item:mysticalworld:silver_sword>,
    <item:mysticalworld:tin_sword>,
    <item:iceandfire:silver_sword>,
    <item:iceandfire:copper_sword>,
    <item:iceandfire:dragonbone_sword>,
    <item:iceandfire:dragonbone_sword_fire>,
    <item:iceandfire:dragonbone_sword_ice>,
    <item:iceandfire:dragonbone_sword_lightning>,
    <item:iceandfire:myrmex_desert_sword>,
    <item:iceandfire:myrmex_desert_sword_venom>,
    <item:iceandfire:myrmex_jungle_sword>,
    <item:iceandfire:myrmex_jungle_sword_venom>,
    <item:iceandfire:dragonsteel_fire_sword>,
    <item:iceandfire:dragonsteel_ice_sword>,
    <item:iceandfire:dragonsteel_lightning_sword>
] as IItemStack[];

val vanilla_pickaxes = [
    <item:minecraft:wooden_pickaxe>,
    <item:minecraft:stone_pickaxe>,
    <item:minecraft:iron_pickaxe>,
    <item:minecraft:golden_pickaxe>,
    <item:minecraft:diamond_pickaxe>,
    <item:minecraft:netherite_pickaxe>,
    <item:betterendforge:aeternium_pickaxe>,
    <item:betterendforge:thallasium_pickaxe>,
    <item:betterendforge:terminite_pickaxe>,
    <item:mysticalworld:sapphire_pickaxe>,
    <item:mysticalworld:cactus_pickaxe>,
    <item:mysticalworld:copper_pickaxe>,
    <item:mysticalworld:lead_pickaxe>,
    <item:mysticalworld:quicksilver_pickaxe>,
    <item:mysticalworld:silver_pickaxe>,
    <item:mysticalworld:tin_pickaxe>,
    <item:iceandfire:silver_pickaxe>,
    <item:iceandfire:copper_pickaxe>,
    <item:iceandfire:dragonbone_pickaxe>,
    <item:iceandfire:myrmex_desert_pickaxe>,
    <item:iceandfire:myrmex_jungle_pickaxe>,
    <item:iceandfire:dragonsteel_fire_pickaxe>,
    <item:iceandfire:dragonsteel_ice_pickaxe>,
    <item:iceandfire:dragonsteel_lightning_pickaxe>
] as IItemStack[];

val vanilla_axes = [
    <item:minecraft:wooden_axe>,
    <item:minecraft:stone_axe>,
    <item:minecraft:iron_axe>,
    <item:minecraft:golden_axe>,
    <item:minecraft:diamond_axe>,
    <item:minecraft:netherite_axe>,
    <item:betterendforge:aeternium_axe>,
    <item:betterendforge:thallasium_axe>,
    <item:betterendforge:terminite_axe>,
    <item:mysticalworld:sapphire_axe>,
    <item:mysticalworld:cactus_axe>,
    <item:mysticalworld:copper_axe>,
    <item:mysticalworld:lead_axe>,
    <item:mysticalworld:quicksilver_axe>,
    <item:mysticalworld:silver_axe>,
    <item:mysticalworld:tin_axe>,
    <item:iceandfire:silver_axe>,
    <item:iceandfire:copper_axe>,
    <item:iceandfire:dragonbone_axe>,
    <item:iceandfire:myrmex_desert_axe>,
    <item:iceandfire:myrmex_jungle_axe>,
    <item:iceandfire:dragonsteel_fire_axe>,
    <item:iceandfire:dragonsteel_ice_axe>,
    <item:iceandfire:dragonsteel_lightning_axe>
] as IItemStack[];

val vanilla_shovels = [
    <item:minecraft:wooden_shovel>,
    <item:minecraft:stone_shovel>,
    <item:minecraft:iron_shovel>,
    <item:minecraft:golden_shovel>,
    <item:minecraft:diamond_shovel>,
    <item:minecraft:netherite_shovel>,
    <item:betterendforge:aeternium_shovel>,
    <item:betterendforge:thallasium_shovel>,
    <item:betterendforge:terminite_shovel>,
    <item:mysticalworld:sapphire_shovel>,
    <item:mysticalworld:cactus_shovel>,
    <item:mysticalworld:copper_shovel>,
    <item:mysticalworld:lead_shovel>,
    <item:mysticalworld:quicksilver_shovel>,
    <item:mysticalworld:silver_shovel>,
    <item:mysticalworld:tin_shovel>,
    <item:iceandfire:silver_shovel>,
    <item:iceandfire:copper_shovel>,
    <item:iceandfire:dragonbone_shovel>,
    <item:iceandfire:myrmex_desert_shovel>,
    <item:iceandfire:myrmex_jungle_shovel>,
    <item:iceandfire:dragonsteel_fire_shovel>,
    <item:iceandfire:dragonsteel_ice_shovel>,
    <item:iceandfire:dragonsteel_lightning_shovel>
] as IItemStack[];

val vanilla_hoes = [
    <item:minecraft:wooden_hoe>,
    <item:minecraft:stone_hoe>,
    <item:minecraft:iron_hoe>,
    <item:minecraft:golden_hoe>,
    <item:minecraft:diamond_hoe>,
    <item:minecraft:netherite_hoe>,
    <item:betterendforge:aeternium_hoe>,
    <item:betterendforge:thallasium_hoe>,
    <item:betterendforge:terminite_hoe>,
    <item:mysticalworld:sapphire_hoe>,
    <item:mysticalworld:cactus_hoe>,
    <item:mysticalworld:copper_hoe>,
    <item:mysticalworld:lead_hoe>,
    <item:mysticalworld:quicksilver_hoe>,
    <item:mysticalworld:silver_hoe>,
    <item:mysticalworld:tin_hoe>,
    <item:iceandfire:silver_hoe>,
    <item:iceandfire:copper_hoe>,
    <item:iceandfire:dragonbone_hoe>,
    <item:iceandfire:myrmex_desert_hoe>,
    <item:iceandfire:myrmex_jungle_hoe>,
    <item:iceandfire:dragonsteel_fire_hoe>,
    <item:iceandfire:dragonsteel_ice_hoe>,
    <item:iceandfire:dragonsteel_lightning_hoe>
] as IItemStack[];

for item in vanilla_swords {
    item.maxDamage = item.maxDamage / 4;
}

for item in vanilla_pickaxes {
    item.maxDamage = item.maxDamage / 4;
}

for item in vanilla_axes {
    item.maxDamage = item.maxDamage / 4;
}

for item in vanilla_shovels {
    item.maxDamage = item.maxDamage / 4;
}

for item in vanilla_hoes {
    item.maxDamage = item.maxDamage / 4;
}