global.tools_disable = [
    'minecraft:wooden_sword',
    'minecraft:netherite_pickaxe',
    'minecraft:netherite_shovel',
    'minecraft:netherite_sword',
    'minecraft:diamond_hoe',
    'minecraft:diamond_axe',
    'minecraft:diamond_pickaxe',
    'minecraft:diamond_shovel',
    'minecraft:diamond_sword',
    'minecraft:golden_hoe',
    'minecraft:golden_axe',
    'minecraft:golden_pickaxe',
    'minecraft:golden_shovel',
    'minecraft:golden_sword',
    'minecraft:iron_hoe',
    'minecraft:iron_axe',
    'minecraft:iron_pickaxe',
    'minecraft:iron_shovel',
    'minecraft:iron_sword',
    'minecraft:stone_hoe',
    'minecraft:stone_axe',
    'minecraft:stone_pickaxe',
    'minecraft:stone_shovel',
    'minecraft:stone_sword',
    'minecraft:wooden_hoe',
    'minecraft:wooden_axe',
    'minecraft:wooden_pickaxe',
    'minecraft:wooden_shovel',
    'appliedenergistics2:nether_quartz_hoe',
    'appliedenergistics2:nether_quartz_axe',
    'appliedenergistics2:certus_quartz_sword',
    'appliedenergistics2:certus_quartz_pickaxe',
    'appliedenergistics2:certus_quartz_shovel',
    'appliedenergistics2:certus_quartz_hoe',
    'appliedenergistics2:certus_quartz_axe',
    'minecraft:netherite_hoe',
    'minecraft:netherite_axe',
    'appliedenergistics2:nether_quartz_sword',
    'appliedenergistics2:nether_quartz_pickaxe',
    'appliedenergistics2:nether_quartz_shovel',
    'boss_tools:oxygen_mask',
    'boss_tools:space_suit',
    'boss_tools:space_pants',
    'boss_tools:space_boots',
    'mysticalagradditions:inferium_paxel',
    'mysticalagradditions:prudentium_paxel',
    'mysticalagradditions:tertium_paxel',
    'mysticalagradditions:imperium_paxel',
    'mysticalagradditions:supremium_paxel',
    'mysticalagriculture:inferium_sword',
    'mysticalagriculture:inferium_pickaxe',
    'mysticalagriculture:inferium_shovel',
    'mysticalagriculture:inferium_axe',
    'mysticalagriculture:inferium_hoe',
    'mysticalagriculture:prudentium_sword',
    'mysticalagriculture:prudentium_pickaxe',
    'mysticalagriculture:prudentium_shovel',
    'mysticalagriculture:prudentium_axe',
    'mysticalagriculture:prudentium_hoe',
    'mysticalagriculture:tertium_sword',
    'mysticalagriculture:tertium_pickaxe',
    'mysticalagriculture:tertium_shovel',
    'mysticalagriculture:tertium_axe',
    'mysticalagriculture:tertium_hoe',
    'mysticalagriculture:imperium_sword',
    'mysticalagriculture:imperium_pickaxe',
    'mysticalagriculture:imperium_shovel',
    'mysticalagriculture:imperium_axe',
    'mysticalagriculture:imperium_hoe',
    'mysticalagriculture:supremium_sword',
    'mysticalagriculture:supremium_pickaxe',
    'mysticalagriculture:supremium_shovel',
    'mysticalagriculture:supremium_axe',
    'mysticalagriculture:supremium_hoe',
]

onEvent('item.modification', e => {
    let disableTools = (tools) => {
        tools.forEach(tool => {
            e.modify(tool, item => {
                item.maxDamage = 1
            })
        })
    }
    disableTools(global.tools_disable)
})