let EntityTypes = Java.loadClass("net.minecraft.world.entity.EntityType")
EntityJSEvents.attributes(event => {
    event.getAllTypes().forEach(entity => {
        event.modify(entity, a => {
            if (entity == EntityTypes.PLAYER) return
            event.getAttributes(entity).forEach(attribute => {
                if (attribute.descriptionId == "attribute.name.generic.max_health") {
                    a.add(attribute, attribute.defaultValue * 2)
                }
            })
        })
    })
})
/*EntityJSEvents.attributes(e => {
    let default_health = e.getAttributes('minecraft:zombie').filter(a => a.descriptionId == 'minecraft:generic.max_health').defaultValue
    console.log("debuging"+default_health)
    e.modify('minecraft:zombie', attribute => {
        attribute.add('minecraft:generic.max_health', default_health*2);
    })
})*/
 
    /*MobIDs.forEach(id => {
        event.modify(id, attribute => {
           
            attribute.add("minecraft:generic.max_health", 30)
        })
    });*/
  

/*const MobIDs = [
    "irons_spellbooks:apothecarist",
    "irons_spellbooks:archevoker",
    "irons_spellbooks:catacombs_zombie",
    "irons_spellbooks:citadel_keeper",
    "irons_spellbooks:cryomancer",
    "irons_spellbooks:cultist",
    "irons_spellbooks:dead_king",
    "irons_spellbooks:debug_wizard",
    "irons_spellbooks:firefly_swarm",
    "irons_spellbooks:frozen_humanoid",
    "irons_spellbooks:magehunter_vindicator",
    "irons_spellbooks:necromancer",
    "irons_spellbooks:priest",
    "irons_spellbooks:pyromancer",
    "irons_spellbooks:spectral_steed",
    "irons_spellbooks:summoned_polar_bear",
    "irons_spellbooks:summoned_skeleton",
    "irons_spellbooks:summoned_vex",
    "irons_spellbooks:summoned_zombie",
    "minecraft:allay",
    "minecraft:axolotl",
    "minecraft:bat",
    "minecraft:bee",
    "minecraft:blaze",
    "minecraft:camel",
    "minecraft:cat",
    "minecraft:cave_spider",
    "minecraft:chicken",
    "minecraft:cod",
    "minecraft:cow",
    "minecraft:creeper",
    "minecraft:dolphin", 
    "minecraft:donkey",
    "minecraft:drowned",
    "minecraft:elder_guardian",
    "minecraft:ender_dragon",
    "minecraft:enderman",
    "minecraft:endermite",
    "minecraft:evoker",
    "minecraft:fox",
    "minecraft:frog", 
    "minecraft:ghast",
    "minecraft:giant",
    "minecraft:glow_squid",
    "minecraft:goat",
    "minecraft:guardian",
    "minecraft:hoglin",
    "minecraft:horse",
    "minecraft:husk",
    "minecraft:illusioner", 
    "minecraft:iron_golem",
    "minecraft:llama", 
    "minecraft:magma_cube",
    "minecraft:mooshroom",
    "minecraft:mule",
    "minecraft:ocelot",
    "minecraft:panda",
    "minecraft:parrot",
    "minecraft:phantom",
    "minecraft:pig",
    "minecraft:piglin",
    "minecraft:piglin_brute",
    "minecraft:pillager",
    "minecraft:polar_bear",
    "minecraft:pufferfish",
    "minecraft:rabbit",
    "minecraft:ravager",
    "minecraft:salmon",
    "minecraft:sheep", 
    "minecraft:shulker",
    "minecraft:silverfish",
    "minecraft:skeleton",
    "minecraft:skeleton_horse",
    "minecraft:slime",
    "minecraft:sniffer",
    "minecraft:snow_golem",
    "minecraft:spider",
    "minecraft:squid",
    "minecraft:stray",
    "minecraft:strider",
    "minecraft:tadpole",
    "minecraft:trader_llama", 
    "minecraft:tropical_fish",
    "minecraft:turtle",
    "minecraft:vex",
    "minecraft:villager",
    "minecraft:vindicator",
    "minecraft:wandering_trader",
    "minecraft:warden", 
    "minecraft:witch",
    "minecraft:wither",
    "minecraft:wither_skeleton",
    "minecraft:wolf",
    "minecraft:zoglin",
    "minecraft:zombie",
    "minecraft:zombie_horse",
    "minecraft:zombie_villager",
    "minecraft:zombified_piglin", 
    "tombstone:grave_guardian",
    "tombstone:spectral_wolf",
    "alexsmobs:alligator_snapping_turtle",
    "alexsmobs:anaconda",
    "alexsmobs:anaconda_part",
    "alexsmobs:anteater",
    "alexsmobs:bald_eagle",
    "alexsmobs:banana_slug",
    "alexsmobs:bison",
    "alexsmobs:blobfish",
    "alexsmobs:blue_jay",
    "alexsmobs:bone_serpent",
    "alexsmobs:bone_serpent_part",
    "alexsmobs:bunfungus",
    "alexsmobs:cachalot_whale",
    "alexsmobs:caiman",
    "alexsmobs:capuchin_monkey",
    "alexsmobs:catfish",
    "alexsmobs:centipede_body",
    "alexsmobs:centipede_head",
    "alexsmobs:centipede_tail",
    "alexsmobs:cockroach",
    "alexsmobs:comb_jelly",
    "alexsmobs:cosmaw",
    "alexsmobs:cosmic_cod",
    "alexsmobs:crimson_mosquito",
    "alexsmobs:crocodile",
    "alexsmobs:crow",
    "alexsmobs:devils_hole_pupfish",
    "alexsmobs:dropbear",
    "alexsmobs:elephant",
    "alexsmobs:emu",
    "alexsmobs:endergrade",
    "alexsmobs:enderiophage",
    "alexsmobs:farseer",
    "alexsmobs:flutter",
    "alexsmobs:fly",
    "alexsmobs:flying_fish",
    "alexsmobs:frilled_shark",
    "alexsmobs:froststalker",
    "alexsmobs:gazelle",
    "alexsmobs:gelada_monkey",
    "alexsmobs:giant_squid",
    "alexsmobs:gorilla",
    "alexsmobs:grizzly_bear",
    "alexsmobs:guster",
    "alexsmobs:hammerhead_shark",
    "alexsmobs:hummingbird",
    "alexsmobs:jerboa",
    "alexsmobs:kangaroo",
    "alexsmobs:komodo_dragon",
    "alexsmobs:laviathan",
    "alexsmobs:leafcutter_ant",
    "alexsmobs:lobster",
    "alexsmobs:maned_wolf",
    "alexsmobs:mantis_shrimp",
    "alexsmobs:mimic_octopus",
    "alexsmobs:mimicube",
    "alexsmobs:moose",
    "alexsmobs:mudskipper",
    "alexsmobs:mungus",
    "alexsmobs:murmur",
    "alexsmobs:murmur_head",
    "alexsmobs:orca",
    "alexsmobs:platypus",
    "alexsmobs:potoo",
    "alexsmobs:raccoon",
    "alexsmobs:rain_frog",
    "alexsmobs:rattlesnake",
    "alexsmobs:rhinoceros",
    "alexsmobs:roadrunner",
    "alexsmobs:rocky_roller",
    "alexsmobs:sea_bear",
    "alexsmobs:seagull",
    "alexsmobs:seal",
    "alexsmobs:shoebill",
    "alexsmobs:skelewag",
    "alexsmobs:skreecher",
    "alexsmobs:skunk",
    "alexsmobs:snow_leopard",
    "alexsmobs:soul_vulture",
    "alexsmobs:spectre",
    "alexsmobs:straddler",
    "alexsmobs:stradpole",
    "alexsmobs:sugar_glider",
    "alexsmobs:sunbird",
    "alexsmobs:tarantula_hawk",
    "alexsmobs:tasmanian_devil",
    "alexsmobs:terrapin",
    "alexsmobs:tiger",
    "alexsmobs:toucan",
    "alexsmobs:triops",
    "alexsmobs:tusklin",
    "alexsmobs:underminer",
    "alexsmobs:void_worm",
    "alexsmobs:void_worm_part",
    "alexsmobs:warped_mosco",
    "alexsmobs:warped_toad",
    "immersiveengineering:bulwark",
    "immersiveengineering:commando",
    "immersiveengineering:fusilier",
    "deeperdarker:angler_fish",
    "deeperdarker:sculk_centipede",
    "deeperdarker:sculk_leech",
    "deeperdarker:sculk_snapper",
    "deeperdarker:shattered",
    "deeperdarker:shriek_worm",
    "deeperdarker:sludge",
    "deeperdarker:stalker",
    "aether:aechor_plant",
    "aether:aerbunny",
    "aether:aerwhale",
    "aether:blue_swet",
    "aether:cloud_minion",
    "aether:cockatrice",
    "aether:evil_whirlwind",
    "aether:fire_minion",
    "aether:flying_cow",
    "aether:golden_swet",
    "aether:mimic",
    "aether:moa",
    "aether:phyg",
    "aether:sentry",
    "aether:sheepuff",
    "aether:slider",
    "aether:sun_spirit",
    "aether:valkyrie",
    "aether:valkyrie_queen",
    "aether:whirlwind",
    "aether:zephyr",
    "railways:conductor",
    "ars_nouveau:ally_vex",
    "ars_nouveau:amethyst_golem",
    "ars_nouveau:animated_block",
    "ars_nouveau:animated_head",
    "ars_nouveau:blazing_weald_walker",
    "ars_nouveau:bookwyrm",
    "ars_nouveau:cascading_weald_walker",
    "ars_nouveau:drygmy",
    "ars_nouveau:dummy",
    "ars_nouveau:familiar_amethyst_golem",
    "ars_nouveau:familiar_bookwyrm",
    "ars_nouveau:familiar_drygmy",
    "ars_nouveau:familiar_starbuncle",
    "ars_nouveau:familiar_whirlisprig",
    "ars_nouveau:familiar_wixie",
    "ars_nouveau:flourishing_weald_walker", 
    "ars_nouveau:gift_starby",
    "ars_nouveau:lily",
    "ars_nouveau:starbuncle",
    "ars_nouveau:summon_horse",
    "ars_nouveau:summon_skeleton",
    "ars_nouveau:summon_wolf",
    "ars_nouveau:vexing_weald_walker",
    "ars_nouveau:whirlisprig",
    "ars_nouveau:wilden_boss",
    "ars_nouveau:wilden_guardian",
    "ars_nouveau:wilden_hunter",
    "ars_nouveau:wilden_stalker",
    "ars_nouveau:wixie",
    "deep_aether:aerglow_fish",
    "deep_aether:quail",
    "deep_aether:venomite",
    "aether_redux:blightbunny",
    "aether_redux:blightbunny_spawner",
    "aether_redux:cockatrice_spawner",
    "aether_redux:mykapod",
    "aether_redux:shimmercow",
    "aether_redux:vanilla_swet",
    "ancient_aether:aeronautic_leaper",
    "ancient_aether:festive_swet",
    "ancient_aether:fluffalo",
    "ancient_aether:mutated_aechor_plant",
    "ancient_aether:slammroot",
    "thermal:basalz",
    "thermal:blitz",
    "thermal:blizz",
    "quark:crab",
    "quark:forgotten",
    "quark:foxhound",
    "quark:shiba",
    "quark:toretoise",
    "quark:wraith",
    "twilightforest:adherent",
    "twilightforest:alpha_yeti",
    "twilightforest:armored_giant",
    "twilightforest:bighorn_sheep",
    "twilightforest:blockchain_goblin",
    "twilightforest:boar",
    "twilightforest:carminite_broodling",
    "twilightforest:carminite_ghastguard",
    "twilightforest:carminite_ghastling",
    "twilightforest:carminite_golem",
    "twilightforest:death_tome", 
    "twilightforest:deer",
    "twilightforest:dwarf_rabbit",
    "twilightforest:fire_beetle",
    "twilightforest:giant_miner",
    "twilightforest:harbinger_cube",
    "twilightforest:hedge_spider",
    "twilightforest:helmet_crab",
    "twilightforest:hostile_wolf",
    "twilightforest:hydra", 
    "twilightforest:ice_crystal",
    "twilightforest:king_spider",
    "twilightforest:knight_phantom",
    "twilightforest:kobold",
    "twilightforest:lich",
    "twilightforest:lich_minion", 
    "twilightforest:lower_goblin_knight",
    "twilightforest:loyal_zombie",
    "twilightforest:maze_slime",
    "twilightforest:minoshroom",
    "twilightforest:minotaur",
    "twilightforest:mist_wolf",
    "twilightforest:mosquito_swarm",
    "twilightforest:naga",
    "twilightforest:penguin",
    "twilightforest:pinch_beetle",
    "twilightforest:plateau_boss", 
    "twilightforest:quest_ram",
    "twilightforest:raven",
    "twilightforest:redcap",
    "twilightforest:redcap_sapper",
    "twilightforest:rising_zombie",
    "twilightforest:roving_cube",
    "twilightforest:skeleton_druid",
    "twilightforest:slime_beetle",
    "twilightforest:snow_guardian",
    "twilightforest:snow_queen", 
    "twilightforest:squirrel",
    "twilightforest:stable_ice_core",
    "twilightforest:swarm_spider", 
    "twilightforest:tiny_bird",
    "twilightforest:towerwood_borer",
    "twilightforest:troll",
    "twilightforest:unstable_ice_core",
    "twilightforest:upper_goblin_knight",
    "twilightforest:ur_ghast",
    "twilightforest:winter_wolf",
    "twilightforest:wraith",
    "twilightforest:yeti",
    "pots_and_mimics:end_pot_crab",
    "pots_and_mimics:nether_pot_crab",
    "pots_and_mimics:poison_pot_crab",
    "pots_and_mimics:pot_crab"]*/
    
    