global.colors = ['red','blue','white','gray','light_gray','black','purple','magenta','yellow','green','lime','light_blue','blue','orange','pink','brown']

var ThermalMetals = ['tin','silver','lead','gold','iron','copper','nickel','aluminum']

var alloys = ['bronze','enderium','brass','invar','rose_gold','constantan','signalum','lumium']

var wood_TF = ['canopy','mangrove','twilight_oak','time','transformation','mining','sorting','dark']

var wood_TF_no_mangrove = ['canopy','twilight_oak','time','transformation','mining','sorting','dark']


global.nukelist = [
	"twigs:calcite_wall",
	"ancient_aether:blue_skyroot_pine_sapling",
	"immersive_weathering:ancient_aether/blue_skyroot_pine_leaf_pile",
	"everycomp:q/ancient_aether/blue_skyroot_pine_hedge",
	'aether:zanite_pendant',
	'aether:zanite_ring',
	'deep_aether:skyjade_ring',
	'enigmaticlegacy:enchanter_pearl',
	'rehooked:diamond_chain',
	'rehooked:blaze_chain',
	'rehooked:ender_chain',
	'thermal:machine_insolator',
	'thermal:dynamo_stirling',
	'thermal:dynamo_compression',
	'thermal:dynamo_magmatic',
	'thermal:dynamo_numismatic',
	'thermal:dynamo_lapidary',
	'thermal:dynamo_disenchantment',
	'thermal:dynamo_gourmand',
	'thermal:dynamo_output_augment',
	'thermal:dynamo_fuel_augment',
	'thermal:dynamo_throttle_augment',
	'vintageimprovements:small_zinc_spring',
	'vintageimprovements:small_vanadium_spring',
	'vintageimprovements:small_uranium_spring',
	'vintageimprovements:small_tin_spring',
	'vintageimprovements:small_steel_spring',
	'vintageimprovements:small_silver_spring',
	'vintageimprovements:small_signalum_spring',
	'vintageimprovements:small_rose_gold_spring',
	'vintageimprovements:small_nickel_spring',
	'vintageimprovements:small_netherite_spring',
	'vintageimprovements:small_lumium_spring',
	'vintageimprovements:small_lead_spring',
	'vintageimprovements:small_knightmetal_spring',
	'vintageimprovements:small_ironwood_spring',
	'vintageimprovements:small_iron_spring',
	'vintageimprovements:small_invar_spring',
	'vintageimprovements:small_golden_spring',
	'vintageimprovements:small_fiery_spring',
	'vintageimprovements:small_enderium_spring',
	'vintageimprovements:small_electrum_spring',
	'vintageimprovements:small_copper_spring',
	'vintageimprovements:small_constantan_spring',
	'vintageimprovements:small_bronze_spring',
	'vintageimprovements:small_brass_spring',
	'vintageimprovements:small_andesite_spring',
	'vintageimprovements:small_aluminum_spring',
	'vintageimprovements:aluminum_spring',
	'vintageimprovements:ironwood_spring',
	'vintageimprovements:iron_spring',
	'vintageimprovements:invar_spring',
	'vintageimprovements:golden_spring',
	'vintageimprovements:enderium_spring',
	'vintageimprovements:electrum_spring',
	'vintageimprovements:copper_spring',
	'vintageimprovements:constantan_spring',
	'vintageimprovements:bronze_spring',
	'vintageimprovements:brass_spring',
	'vintageimprovements:blaze_spring',
	'vintageimprovements:andesite_spring',
	'vintageimprovements:knightmetal_spring',
	'vintageimprovements:lead_spring',
	'vintageimprovements:lumium_spring',
	'vintageimprovements:netherite_spring',
	'vintageimprovements:nickel_spring',
	'vintageimprovements:rose_gold_spring',
	'vintageimprovements:signalum_spring',
	'vintageimprovements:silver_spring',
	'vintageimprovements:steel_spring',
	'vintageimprovements:tin_spring',
	'vintageimprovements:uranium_spring',
	'vintageimprovements:vanadium_spring',
	'vintageimprovements:zinc_spring',
	'vintageimprovements:zinc_wire',
	'vintageimprovements:vanadium_wire',
	'vintageimprovements:uranium_wire',
	'vintageimprovements:tin_wire',
	'vintageimprovements:steel_wire',
	'vintageimprovements:silver_wire',
	'vintageimprovements:signalum_wire',
	'vintageimprovements:rose_gold_wire',
	'vintageimprovements:nickel_wire',
	'vintageimprovements:netherite_wire',
	'vintageimprovements:lumium_wire',
	'vintageimprovements:lead_wire',
	'vintageimprovements:knightmetal_wire',
	'vintageimprovements:ironwood_wire',
	'vintageimprovements:invar_wire',
	'vintageimprovements:fiery_wire',
	'vintageimprovements:enderium_wire',
	'vintageimprovements:constantan_wire',
	'vintageimprovements:bronze_wire',
	'vintageimprovements:brass_wire',
	'vintageimprovements:andesite_wire',
	'vintageimprovements:aluminum_wire',
    "twigs:tuff_wall",
	"twigs:calcite_stairs",
	"twigs:tuff_stairs",
	'twigs:mossy_bricks',
	'twigs:mossy_brick_stairs',
	'twigs:mossy_brick_slab',
	'twigs:mossy_brick_wall',
	'ftbquests:barrier',
	'ftbquests:stage_barrier',
	'ftbquests:detector',
	'ftbquests:loot_crate_opener',
	'ftbquests:screen_1',
	'ftbquests:screen_3',
	'ftbquests:screen_5',
	'ftbquests:screen_7',
	'ftbquests:task_screen_configurator',
	'twilightforest:brittle_potion_flask',
	'twilightforest:greater_potion_flask',
	'twilightforest:cube_of_annihilation',
	'twilightforest:candelabra',
	'twilightforest:keepsake_casket',
	'twilightforest:wrought_iron_fence',
	'vintagedelight:sweet_berry_mason_jar',
	'brewinandchewin:apple_jelly',
	'vintagedelight:apple_sauce_mason_jar',
	'vintagedelight:apple_sauce_bottle',
	'brewinandchewin:sweet_berry_jam',
	'brewinandchewin:glow_berry_marmalade',
	'sob:peanut_butter',
	'sob:pepper_jelly',
	'vintagedelight:pepper_jam_bottle',
	'vintagedelight:glow_berry_jam_bottle',
	'vintagedelight:sweet_berry_jam_bottle',
	'vintagedelight:gearo_berry_jam_bottle',
	'vintagedelight:glow_berry_mason_jar',
	"ancient_aether:valkyrum_ore",
    "aether:life_shard",
    "immersiveengineering:shield",
    "alexsmobs:shield_of_the_deep",
    "enigmaticlegacy:infernal_shield",
    "immersiveengineering:toolbox",
    'vintageimprovements:refined_radiance_sheet',
	'vintageimprovements:refined_glowstone_sheet',
	'vintageimprovements:refined_obsidian_sheet', 
	'vintageimprovements:refined_glowstone_rod', 
	'vintageimprovements:refined_obsidian_rod',
	'vintageimprovements:refined_glowstone_spring',
	'vintageimprovements:refined_obsidian_spring',
	'vintageimprovements:small_refined_glowstone_spring',
	'vintageimprovements:small_refined_obsidian_spring',
	'vintageimprovements:refined_glowstone_wire',
	'vintageimprovements:refined_obsidian_wire',
	'vintageimprovements:refined_radiance_rod',
	'vintageimprovements:refined_radiance_spring',
	'vintageimprovements:small_refined_radiance_spring',
	'vintageimprovements:refined_radiance_wire',
	'vintageimprovements:queens_slime_sheet',
	'vintageimprovements:slimesteel_sheet',
	'vintageimprovements:amethyst_bronze_sheet',
	'vintageimprovements:cast_iron_sheet', 
	'vintageimprovements:cobalt_sheet',
	'vintageimprovements:cast_iron_rod',
	'vintageimprovements:cobalt_rod',
	'vintageimprovements:amethyst_bronze_rod',
	'vintageimprovements:nethersteel_sheet',
	'vintageimprovements:nethersteel_sheet',
	'vintageimprovements:hepatizon_sheet',
	'vintageimprovements:rhodium_sheet',
	'vintageimprovements:pure_gold_sheet',
	'vintageimprovements:platinum_sheet',
	'vintageimprovements:pig_iron_sheet',
	'vintageimprovements:palladium_sheet',
	'vintageimprovements:manyullyn_sheet',
	'vintageimprovements:osmium_sheet',
	'vintageimprovements:hepatizon_rod',
	'vintageimprovements:manyullyn_rod',
	'vintageimprovements:osmium_rod',
	'vintageimprovements:palladium_rod',
	'vintageimprovements:pig_iron_rod',
	'vintageimprovements:platinum_rod',
	'vintageimprovements:pure_gold_rod',
	'vintageimprovements:rhodium_rod',
	'vintageimprovements:amethyst_bronze_spring',
	'vintageimprovements:pure_gold_spring',
	'vintageimprovements:platinum_spring',
	'vintageimprovements:pig_iron_spring',
	'vintageimprovements:palladium_spring',
	'vintageimprovements:osmium_spring',
	'vintageimprovements:manyullyn_spring',
	'vintageimprovements:hepatizon_spring',
	'vintageimprovements:cobalt_spring',
	'vintageimprovements:cast_iron_spring',
	'vintageimprovements:rhodium_spring',
	'vintageimprovements:small_amethyst_bronze_spring',
	'vintageimprovements:small_cast_iron_spring',
	'vintageimprovements:small_cobalt_spring',
	'vintageimprovements:small_hepatizon_spring',
	'vintageimprovements:small_manyullyn_spring',
	'twilightforest:hollow_jungle_log',
	'twilightforest:hollow_acacia_log',
	'twilightforest:hollow_dark_oak_log',
	'twilightforest:hollow_crimson_stem',
	'twilightforest:hollow_warped_stem',
	'twilightforest:hollow_vangrove_log',
	'twilightforest:hollow_cherry_log',
	'twilightforest:hollow_oak_log',
	'twilightforest:hollow_spruce_log',
	'twilightforest:hollow_birch_log',
	'twilightforest:hollow_sorting_log',
	'twilightforest:hollow_mining_log',
	'twilightforest:hollow_transformation_log',
	'twilightforest:hollow_time_log',
	'twilightforest:hollow_dark_log',
	'twilightforest:hollow_mangrove_log',
	'twilightforest:hollow_canopy_log',
	'twilightforest:hollow_twilight_oak_log',
	'vintageimprovements:small_osmium_spring',
	'vintageimprovements:small_palladium_spring',
	'vintageimprovements:small_pig_iron_spring',
	'vintageimprovements:small_platinum_spring',
	'vintageimprovements:small_pure_gold_spring',
	'vintageimprovements:small_rhodium_spring',
	'vintageimprovements:amethyst_bronze_wire',
	'vintageimprovements:cast_iron_wire',
	'vintageimprovements:cobalt_wire',
	'vintageimprovements:hepatizon_wire',
	'vintageimprovements:manyullyn_wire',
	'vintageimprovements:osmium_wire',
	'vintageimprovements:palladium_wire',
	'vintageimprovements:pig_iron_wire',
	'vintageimprovements:platinum_wire',
	'vintageimprovements:pure_gold_wire',
	'vintageimprovements:rhodium_wire',
	'vintageimprovements:calorite_rod',
	'vintageimprovements:ostrum_rod',
	'vintageimprovements:desh_rod',
	'vintageimprovements:nethersteel_rod',
	'vintageimprovements:queens_slime_rod',
	'vintageimprovements:slimesteel_rod',
	'vintageimprovements:calorite_wire',
	'vintageimprovements:ostrum_wire',
	'vintageimprovements:desh_wire',
	'vintageimprovements:queens_slime_wire',
	'vintageimprovements:slimesteel_wire',
	'vintageimprovements:nethersteel_wire',
	'vintageimprovements:calorite_spring',
	'vintageimprovements:ostrum_spring',
	'vintageimprovements:desh_spring',
	'vintageimprovements:nethersteel_spring',
	'vintageimprovements:queens_slime_spring',
	'vintageimprovements:slimesteel_spring',
	'vintageimprovements:shadow_steel_spring',
	'vintageimprovements:small_calorite_spring', 
	'vintageimprovements:small_ostrum_spring',
	'vintageimprovements:small_desh_spring',
	'vintageimprovements:small_queens_slime_spring',
	'vintageimprovements:small_slimesteel_spring',
	'vintageimprovements:small_shadow_steel_spring',
	'vintageimprovements:small_nethersteel_spring',
	'immersiveengineering:plate_copper', 
	'immersiveengineering:plate_aluminum',
	'immersiveengineering:plate_gold',
	'immersiveengineering:plate_iron',
	'immersiveengineering:plate_constantan',
	'immersiveengineering:plate_uranium',
	'immersiveengineering:plate_nickel',
	'immersiveengineering:plate_silver',
	'immersiveengineering:plate_lead',
	'thermal:iron_plate',
	'thermal:gold_plate',
	'thermal:copper_plate',
	'thermal:tin_plate',
	'thermal:lead_plate',
	'thermal:silver_plate',
	'thermal:netherite_plate',
	'thermal:nickel_plate',
	'thermal:enderium_plate',
	'thermal:lumium_plate',
	'thermal:signalum_plate',
	'thermal:constantan_plate',
	'thermal:invar_plate',
	'thermal:electrum_plate',
	'thermal:bronze_plate',
	'thermal:rose_gold_plate',
	'vintageimprovements:shadow_steel_wire', 
	'vintageimprovements:shadow_steel_sheet',
	'vintageimprovements:shadow_steel_rod',
	'immersiveengineering:stick_aluminum',
	'immersiveengineering:storage_electrum',
	'immersiveengineering:storage_electrum',
	'immersiveengineering:dust_silver',
	'immersiveengineering:raw_silver',
	'immersiveengineering:raw_lead',
	'immersiveengineering:raw_block_lead',
	'immersiveengineering:deepslate_ore_lead',
	'immersiveengineering:ore_lead',
	'immersiveengineering:storage_lead',
	'immersiveengineering:ingot_electrum',
	'immersiveengineering:ingot_silver',
	'immersiveengineering:ingot_lead',
	'immersiveengineering:ingot_nickel',
	'immersiveengineering:ingot_constantan',
	'immersiveengineering:dust_lead',
	'immersiveengineering:storage_nickel',
	'immersiveengineering:ore_nickel',
	'immersiveengineering:nugget_electrum',
	'immersiveengineering:nugget_silver',
	'immersiveengineering:nugget_lead',
	'immersiveengineering:nugget_nickel',
	'immersiveengineering:raw_nickel',
	'immersiveengineering:storage_nickel',
	'immersiveengineering:raw_block_nickel',
	'immersiveengineering:ore_nickel',
	'immersiveengineering:deepslate_ore_nickel',
	'immersiveengineering:dust_electrum',
	'immersiveengineering:dust_silver',
	'immersiveengineering:dust_nickel',
	'immersiveengineering:raw_silver',
	'immersiveengineering:raw_block_silver',
	'immersiveengineering:ore_silver',
	'immersiveengineering:storage_silver',
	'immersiveengineering:deepslate_ore_silver',
	'thermal:copper_nugget',
	'immersiveengineering:nugget_copper',
	'immersiveengineering:dust_copper',
	'immersiveengineering:dust_gold',
	'immersiveengineering:dust_iron',
	'immersiveengineering:coal_coke',
	'immersiveengineering:coke',
	'immersiveengineering:slab_coke',
	'immersiveengineering:slab_storage_lead',
	'immersiveengineering:storage_constantan',
	'immersiveengineering:slab_storage_constantan',
	'immersiveengineering:slab_storage_electrum',
	'immersiveengineering:slab_storage_silver',
	'immersiveengineering:nugget_constantan',
	'immersiveengineering:dust_constantan',
	'thermal:ruby_ore',
	'thermal:deepslate_ruby_ore',
	'thermal:sapphire_gear',
	'thermal:ruby_gear',
	'thermal:quartz_gear',
	'thermal:emerald_gear',
	'thermal:lapis_gear',
	'aetherdelight:veridium_knife', 
	'create:cart_assembler', 
	'create:mechanical_bearing',
	'create:clockwork_bearing', 
	'create:windmill_bearing',
	'immersiveengineering:dust_wood', 
	'immersiveengineering:dust_sulfur', 
	'vintageimprovements:sulfur', 
	'vintageimprovements:sulfur_block',
	'aether:valkyrie_pickaxe',
	'aether:valkyrie_axe',
	'aether:valkyrie_shovel',
	'aether:valkyrie_hoe',
	'aether:valkyrie_lance',
	'aether:valkyrie_helmet',
	'aether:valkyrie_chestplate',
	'aether:valkyrie_leggings',
	'aether:valkyrie_boots',
	'aether:valkyrie_gloves',
	'everycomp:tf/twilightforest/mangrove_banister',
	"everycomp:tf/aether/skyroot_banister",
	"quark:charcoal_block",
	"immersiveengineering:slag",
	"twilightforest:mangrove_chest",
	"wizards_reborn:arcane_wood_mortar",
	"wizards_reborn:arcane_wood_scythe",
	"wizards_reborn:arcane_wood_knife",
	"wizards_reborn:arcane_wood_sword",
	"wizards_reborn:innocent_wood_mortar",
	"wizards_reborn:innocent_wood_knife",
	"wizards_reborn:innocent_wood_sword",
	"wizards_reborn:innocent_wood_scythe",
	"wizards_reborn:arcane_gold_scythe",
	'wizards_reborn:arcane_gold_ore',
	'wizards_reborn:deepslate_arcane_gold_ore',
	'wizards_reborn:nether_arcane_gold_ore',
	'wizards_reborn:raw_arcane_gold_block',
	'wizards_reborn:crushed_raw_arcane_gold',
	'wizards_reborn:raw_arcane_gold',
	'silly_oddities:tuff_slab',
	'silly_oddities:tuff_stairs',
	'silly_oddities:tuff_bricks_wall',
	'silly_oddities:tuff_bricks_slab',
	'silly_oddities:tuff_bricks_stairs',
	'silly_oddities:tuff_bricks',
	'silly_oddities:polished_tuff_wall',
	'silly_oddities:polished_tuff_slab',
	'silly_oddities:polished_tuff',
	'silly_oddities:polished_tuff_stairs',
	"silly_oddities:tuff_wall",
	"minecraft:enchanting_table",
	'thermal:press_coin_die',
	'thermal:iron_coin',
	'thermal:tin_coin',
	'thermal:lead_coin',
	'thermal:nickel_coin',
	'thermal:steel_coin',
	'thermal:rose_gold_coin',
	'thermal:bronze_coin',
	'thermal:electrum_coin',
	'thermal:invar_coin',
	'thermal:constantan_coin',
	'thermal:signalum_coin',
	'thermal:lumium_coin',
	'enigmaticlegacy:the_cube',
	'enigmaticlegacy:enigmatic_item',
	'enigmaticlegacy:void_pearl',
	'enigmaticlegacy:escape_scroll',
	'enigmaticlegacy:fabulous_scroll',
	'enigmaticlegacy:ascension_amulet',
	'aether:freezer',
	'twilightforest:charm_of_keeping_1',
	'twilightforest:charm_of_keeping_2',
	'twilightforest:charm_of_keeping_3',
	'sob:peanut_bag',
	'sob:wild_peanuts',
	'sob:peanut',
	'sob:roasted_peanuts',
	'thermal:flux_magnet',
	'aether:holystone_sword',
	'aether:holystone_shovel',
	'aether:holystone_pickaxe',
	'aether:holystone_axe',
	'aether:holystone_hoe',
	'quark:rope',
	'twilightforest:raw_ironwood',
	"immersiveengineering:deepslate_ore_aluminum",
	"immersiveengineering:deepslate_ore_uranium",
	"thermal:deepslate_sapphire_ore",
	'thermal:niter_block',
	'thermal:niter_ore',
	'thermal:deepslate_niter_ore',
	'thermal:niter',
	'thermal:niter_dust',
	'vintagedelight:pb_j',
	"thermal:deepslate_cinnabar_ore",
	'minecraft:orange_bundle',
	'minecraft:yellow_bundle',
	'minecraft:lime_bundle',
	'minecraft:green_bundle',
	'minecraft:cyan_bundle',
	'minecraft:light_blue_bundle',
	'minecraft:blue_bundle',
	'minecraft:purple_bundle',
	'minecraft:magenta_bundle',
	'minecraft:pink_bundle',
	'minecraft:white_bundle',
	'minecraft:light_gray_bundle',
	'minecraft:gray_bundle',
	'minecraft:black_bundle', 
	'minecraft:brown_bundle',
	'minecraft:red_bundle',
	'minecraft:bush',
	'minecraft:firefly_bush',
	'minecraft:wildflowers',
	'minecraft:leaf_litter',
	'minecraft:cactus_flower',
	'minecraft:short_dry_grass',
	'minecraft:tall_dry_grass',
	"enigmaticlegacy:recall_potion",
	"aether:skyroot_stick",
	'umbral_skies:hollow_skyroot_log',
	'umbral_skies:hollow_golden_oak_log',
	'twilightforest:uncrafting_table',
	'irons_spellbooks:silver_ring',
	'ancient_aether:divine_shovel',
	'ancient_aether:divine_pickaxe',
	'ancient_aether:divine_axe',
	'ancient_aether:divine_hoe',
	'quark:beetroot_crate',
	'quark:carrot_crate',
	'quark:potato_crate',
	'thermal:carrot_block',
	'thermal:potato_block',
	'thermal:apple_block',
	'quark:apple_crate',
	"arsdelight:source_berry_crate",
	"thermal:beetroot_block",
	"biomeswevegone:blueberries",
	'fruitsdelight:durian_shell',
	'immersive_weathering:biomeswevegone/sakura_bark',
	'immersive_weathering:biomeswevegone/skyris_bark',
	'immersive_weathering:biomeswevegone/white_mangrove_bark',
	'immersive_weathering:biomeswevegone/willow_bark',
	'immersive_weathering:biomeswevegone/witch_hazel_bark',
	'immersive_weathering:biomeswevegone/zelkova_bark',
	'immersive_weathering:wizards_reborn/arcane_wood_bark',
	'immersive_weathering:wizards_reborn/innocent_wood_bark',
	'immersive_weathering:thermal/rubberwood_scales',
	'immersive_weathering:quark/ancient_bark',
	'immersive_weathering:quark/blossom_bark',
	'immersive_weathering:biomeswevegone/redwood_bark',
	'immersive_weathering:biomeswevegone/rainbow_eucalyptus_bark',
	'immersive_weathering:biomeswevegone/pine_bark',
	'immersive_weathering:biomeswevegone/palm_bark',
	'immersive_weathering:biomeswevegone/maple_bark',
	'immersive_weathering:biomeswevegone/mahogany_bark',
	'immersive_weathering:biomeswevegone/jacaranda_bark',
	'immersive_weathering:biomeswevegone/ironwood_bark',
	'immersive_weathering:biomeswevegone/holly_bark',
	'immersive_weathering:biomeswevegone/green_enchanted_bark',
	'immersive_weathering:biomeswevegone/florus_bark',
	'immersive_weathering:biomeswevegone/fir_bark',
	'immersive_weathering:biomeswevegone/ebony_bark',
	'immersive_weathering:biomeswevegone/cypress_bark',
	'immersive_weathering:biomeswevegone/cika_bark',
	'immersive_weathering:biomeswevegone/blue_enchanted_bark',
	'immersive_weathering:biomeswevegone/baobab_bark',
	'immersive_weathering:biomeswevegone/aspen_bark',
	'immersive_weathering:twilightforest/sorting_bark',
	'immersive_weathering:twilightforest/mining_bark',
	'immersive_weathering:twilightforest/transformation_bark',
	'immersive_weathering:twilightforest/time_bark',
	'immersive_weathering:twilightforest/dark_bark',
	'immersive_weathering:twilightforest/mangrove_bark',
	'immersive_weathering:twilightforest/canopy_bark',
	'immersive_weathering:quark/azalea_bark',
	'immersive_weathering:mynethersdelight/powdery_scales',
	'immersive_weathering:twilightforest/twilight_oak_bark',
	'immersive_weathering:ancient_aether/sakura_bark',
	'immersive_weathering:ars_nouveau/archwood_bark',
	'immersive_weathering:bamboo_bark',
	'immersive_weathering:ancient_aether/highsproot_bark',
	'immersive_weathering:deep_aether/sunroot_bark',
	'immersive_weathering:mangrove_bark',
	'immersive_weathering:dark_oak_bark',
	'immersive_weathering:deep_aether/conberry_bark',
	'immersive_weathering:deep_aether/cruderoot_bark',
	'immersive_weathering:cherry_bark',
	'immersive_weathering:acacia_bark',
	'immersive_weathering:deep_aether/yagroot_bark',
	'immersive_weathering:deep_aether/roseroot_bark',
	'immersive_weathering:jungle_bark',
	'immersive_weathering:birch_bark',
	'immersive_weathering:aether/skyroot_bark',
	'immersive_weathering:naturesaura/ancient_scales',
	'immersive_weathering:spruce_bark',
	'immersive_weathering:minecraft/pale_oak_bark',
	'immersive_weathering:oak_bark',
	'immersive_weathering:crimson_scales',
	'immersive_weathering:warped_scales',
	'arsdelight:flourishing_bark',
	'arsdelight:vexing_bark',
	'arsdelight:cascading_bark',
	'arsdelight:blazing_bark'
	/*'create:factory_gauge',
	'create:redstone_requester',
	'create:stock_link',
	'create:stock_ticker',
	'create:repackager',
	'create:package_frogport',
	'create:item_hatch',
	'create:packager',
	'create:pulse_timer',
	'create:package_filter'*/]/*,,
	
	'thermal:constantan_dust',
	'thermal:bronze_dust',
	'thermal:enderium_dust',
	'thermal:rose_gold_dust',
	'immersiveengineering:dust_steel',
	'thermal:lumium_dust',
	'thermal:electrum_dust',
	'thermal:signalum_dust',
	'thermal:steel_dust',
	'thermal:invar_dust']*/

ServerEvents.recipes(event => {

	let RemoveById = [
		"farmersdelight:cooking/pineapple_pie",
		"vanillabackport:bundle",
		"minecraft:diamond_helmet",
		"minecraft:diamond_chestplate",
		"minecraft:diamond_leggings",
		"minecraft:diamond_boots",
		"minecraft:iron_helmet",
		"minecraft:iron_chestplate",
		"minecraft:iron_leggings",
		"minecraft:iron_boots",
		"aether:skyroot_barrel",
		"arsdelight:cutting/green_archwood_log",
		"arsdelight:cutting/green_archwood_wood",
		"arsdelight:cutting/blue_archwood_log",
		"arsdelight:cutting/blue_archwood_wood",
		"arsdelight:cutting/purple_archwood_log",
		"arsdelight:cutting/purple_archwood_wood",
		"arsdelight:cutting/red_archwood_log",
		"arsdelight:cutting/red_archwood_wood",
		"farmersdelight:shepherds_pie_block",
		"vintagedelight:cutting/pitcher_plant",
		"arsdelight:frostaya_pie",
		"deep_aether:pumpkin_pie",
		"aether:moa_egg_pumpkin_pie",
		"minecraft:pumpkin_pie",
		"vanillabackport:pumpkin_pie",
		"arsdelight:bastion_pie",
		"arsdelight:bombegrante_pie",
		"arsdelight:mendosteen_pie",
		"farmersdelight:chocolate_pie",
		"aether:skyroot_milk_bucket_cake",
		"vanillabackport:cake",
		"deep_aether:skyroot_milk_bucket_cake",
		"farmersdelight:cake_from_milk_bottle",
		"deep_aether:cake",
		"aether:moa_egg_cake",
		"aether:skyroot_milk_bucket_moa_egg_cake",
		"create:crafting/curiosities/cake",
		"mynethersdelight:crafting/magma_cake",
		"farmersdelight:integration/create/filling/chocolate_pie",
		"farmersdelight:cooking/durian_pie",
		"farmersdelight:cooking/pineapple_pie",
		"farmersdelight:cooking/mangosteen_cake",
		"twigs:stick_from_twig",
		"deep_aether:stratus_normal_recipe",
		"ancient_aether:valkyrum_leggings",
		"ancient_aether:valkyrum_helmet",
		"ancient_aether:valkyrum_chestplate",
		"ancient_aether:valkyrum_boots",
		"naturesaura:altar/blaze",
		"create:kjs/dbwvu0cpsw4h9wxmrrln63nje",
		"thermal:machines/pulverizer/pulverizer_basalz_rod",
		"thermal:machines/pulverizer/pulverizer_blizz_rod",
		"thermal:machines/pulverizer/pulverizer_blitz_rod",
		"immersiveengineering:crusher/blaze_powder",
		"mynethersdelight:cutting/bullet_pepper",
		"mynethersdelight:cutting/balze_rod",
		"create:crushing/blaze_rod",
		"thermal:machines/pulverizer/pulverizer_blaze_rod",
		"thermal:machines/smelter/smelter_sapphire_ore",
		"quark:tweaks/crafting/utility/misc/charcoal_to_black_dye",
		"naturesaura:depth_ingot_creation",
		"naturesaura:offering/sky_ingot",
		"naturesaura:offering/sky_ingot_from_gold",
		"naturesaura:calling_spirit",
		"thermal:compat/immersiveengineering/press_ie_steel_ingot_to_plate",
		"aether:holystone_stonecutter",
		"vintageimprovements:pressing/uranium_ingot",
		"immersiveengineering:metalpress/plate_uranium",
		"thermal:compat/immersiveengineering/press_ie_uranium_ingot_to_plate",
		"create:pressing/gold_ingot",
		"thermal:machines/press/press_gold_ingot_to_plate",
		"immersiveengineering:metalpress/plate_brass",
		"vintageimprovements:pressing/nickel_ingot",
		"vintageimprovements:pressing/rose_gold_ingot",
		"vintageimprovements:pressing/signalum_ingot",
		"vintageimprovements:pressing/vanadium_ingot",
		"create:pressing/copper_ingot",
		"create:pressing/brass_ingot",
		"create:pressing/iron_ingot",
		"vintageimprovements:pressing/bronze_ingot",
		"vintageimprovements:pressing/constantan_ingot",
		"vintageimprovements:pressing/enderium_ingot",
		"vintageimprovements:pressing/fiery_ingot",
		"vintageimprovements:pressing/invar_ingot",
		"vintageimprovements:pressing/ironwood_ingot",
		"vintageimprovements:pressing/knightmetal_ingot",
		"vintageimprovements:pressing/lead_ingot",
		"vintageimprovements:pressing/lumium_ingot",
		"vintageimprovements:pressing/silver_ingot",
		"vintageimprovements:pressing/tin_ingot",
		"immersiveengineering:metalpress/plate_zinc",
		"vintageimprovements:pressing/andesite_alloy",
		"thermal:compat/immersiveengineering/press_ie_aluminum_ingot_to_plate",
		"immersiveengineering:metalpress/plate_steel",
		"immersiveengineering:metalpress/plate_silver",
		"thermal:machines/press/press_netherite_ingot_to_plate",
		"immersiveengineering:metalpress/plate_electrum",
		"vintageimprovements:hammering/netherite_ingot",
		"thermal:storage/carrot_block",
		"thermal:storage/apple_block",
		"thermal:machines/press/packing3x3/press_potato_packing",
		"thermal:storage/beetroot_block",
		"thermal:storage/sugar_cane_block",
		"thermal:machines/press/packing3x3/press_beetroot_packing",
		"thermal:machines/press/packing3x3/press_beetroot_packing",
		"thermal:machines/press/packing3x3/press_carrot_packing",
		"thermal:machines/press/packing3x3/press_sugar_cane_packing",
		"thermal:machines/press/packing3x3/press_apple_packing",
		"quark:building/crafting/compressed/beetroot_crate",
		"quark:building/crafting/compressed/carrot_crate",
		"quark:building/crafting/compressed/apple_crate",
		"thermal:storage/gunpowder_block",
		"thermal:storage/gunpowder_from_block",
		"minecraft:bamboo_mosaic_slab",
		"ftbfiltersystem:smart_filter",
		"ancient_aether:skyroot_smithing_table_from_zanite",
		"ancient_aether:holystone_stonecutter_from_zanite",
		"ancient_aether:anvil_from_zanite",
		"wizards_reborn:integration/create/pressing/vilenium_ingot",
		"wizards_reborn:integration/create/pressing/sarcon_ingot",
		"wizards_reborn:integration/create/pressing/arcane_gold_ingot",
		"vintageimprovements:pressing/zinc_ingot",
		"vintageimprovements:pressing/aluminum_ingot",
		"farmersdelight:cutting/dandelion",
		"farmersdelight:cutting/poppy",
		"farmersdelight:cutting/blue_orchid",
		"farmersdelight:cutting/allium",
		"farmersdelight:cutting/azure_bluet",
		"farmersdelight:cutting/red_tulip",
		"farmersdelight:cutting/orange_tulip",
		"farmersdelight:cutting/white_tulip",
		"farmersdelight:cutting/oxeye_daisy",
		"farmersdelight:cutting/cornflower",
		"farmersdelight:cutting/lily_of_the_valley",
		"farmersdelight:cutting/wither_rose",
		"wizards_reborn:integration/farmers_delight/cutting/petals_of_innocence",
		"farmersdelight:cutting/torchflower",
		"thermal:machines/smelter/smelter_alloy_netherite",
		"minecraft:netherite_ingot",
		"aether:skyroot_tripwire_hook",
		"aether:skyroot_grindstone",
		"aether:skyroot_jukebox",
		"aether:skyroot_gravitite_jukebox",
		"aether:skyroot_smithing_table",
		"aether:skyroot_note_block",
		"aether:skyroot_fletching_table",
		"aether:skyroot_loom",
		"aether:skyroot_beehive",
		"aether:skyroot_grindstone_holystone_slab",
		"aether:skyroot_cartography_table",
		"aether:skyroot_chest",
		"thermal:gunpowder_4",
		"thermal:phytogro_4",
		"thermal:phytogro_2",
		"thermal:phytogro_8",
		"wizards_reborn:smelting/arcane_gold_ingot",
		"wizards_reborn:blasting/arcane_gold_ingot",
		"thermal:furnace_430925188",
		"create:crushing/compat/biomeswevegone/anthracite_ore",
		"create:crushing/compat/biomeswevegone/pervaded_netherrack",
		"create:crushing/compat/biomeswevegone/ametrine_ore",
		"create:crushing/compat/biomeswevegone/lignite_ore",
		"create:crushing/compat/biomeswevegone/emeraldite_ore",
		"thermal:fuels/numismatic/numismatic_tin_coin",
		"thermal:fuels/numismatic/numismatic_lumium_coin",
		"thermal:fuels/numismatic/numismatic_nickel_coin",
		"thermal:fuels/numismatic/numismatic_invar_coin",
		"thermal:fuels/numismatic/numismatic_lead_coin",
		"thermal:fuels/numismatic/numismatic_bronze_coin",
		"thermal:fuels/numismatic/numismatic_electrum_coin",
		"thermal:fuels/numismatic/numismatic_constantan_coin",
		"thermal:fuels/numismatic/numismatic_iron_coin",
		"thermal:fuels/numismatic/numismatic_steel_coin",
		"thermal:fuels/numismatic/numismatic_rose_gold_coin",
		"thermal:fuels/numismatic/numismatic_signalum_coin",
		"farmersdelight:pie_crust"
		]
	
	RemoveById.forEach(id => {
		event.remove({id:id})
	});

	event.shaped("kubejs:recall_potion","enigmaticlegacy:recall_potion")
	event.remove({type:"aether:enchanting"})
	event.remove({output:[global.nukelist]})
	event.remove({input:[global.nukelist]})
  
	event.remove({type:"minecraft:crafting_shapeless",mod:"thermal",output:"#forge:dusts"})
	event.remove({type:"minecraft:crafting_shapeless",mod:"thermal",output:"#forge:ingots",input:"minecraft:fire_charge"})

	event.remove({input:'immersiveengineering:hammer'})
	event.remove({mod:"immersiveengineering",output:"#forge:rods/all_metal"})
	
	event.remove({output:"#aether:accessories_gloves"})

	event.replaceInput({input:"minecraft:stick"},"minecraft:stick","#c:rods/wooden")
	event.replaceInput({input:"aether:skyroot_stick"},"aether:skyroot_stick","#c:rods/wooden")
	event.replaceInput({input:"#aether:skyroot_stick"},"#aether:skyroot_stick","#c:rods/wooden")
	event.replaceOutput({id:"vintageimprovements:craft/sulfur_nuggets_to_item"},"vintageimprovements:sulfur","thermal:sulfur")

	
	event.stonecutting("farmersdelight:potato_crate","thermal:potato_block")
	event.stonecutting("farmersdelight:potato_crate","quark:potato_crate")

	event.stonecutting("thermal:potato_block","farmersdelight:potato_crate")
	event.stonecutting("thermal:potato_block","quark:potato_crate")

	event.stonecutting("quark:potato_crate","farmersdelight:potato_crate")
	event.stonecutting("quark:potato_crate","thermal:potato_block")

	event.stonecutting("quark:beetroot_crate","thermal:beetroot_block")
	event.stonecutting("quark:beetroot_crate","farmersdelight:beetroot_crate")

	event.stonecutting("thermal:beetroot_block","quark:beetroot_crate")
	event.stonecutting("thermal:beetroot_block","farmersdelight:beetroot_crate")

	event.stonecutting("farmersdelight:beetroot_crate","quark:beetroot_crate")
	event.stonecutting("farmersdelight:beetroot_crate","thermal:beetroot_block")

	event.stonecutting("quark:apple_crate","fruitsdelight:apple_crate")
	event.stonecutting("quark:apple_crate","thermal:apple_block")

	event.stonecutting("thermal:apple_block","fruitsdelight:apple_crate")
	event.stonecutting("thermal:apple_block","quark:apple_crate")

	event.stonecutting("fruitsdelight:apple_crate","quark:apple_crate")
	event.stonecutting("fruitsdelight:apple_crate","thermal:apple_block")

	event.stonecutting("quark:carrot_crate","farmersdelight:carrot_crate")
	event.stonecutting("quark:carrot_crate","thermal:carrot_block")

	event.stonecutting("thermal:carrot_block","farmersdelight:carrot_crate")
	event.stonecutting("thermal:carrot_block","quark:carrot_crate")

	event.stonecutting("farmersdelight:carrot_crate","quark:carrot_crate")
	event.stonecutting("farmersdelight:carrot_crate","thermal:carrot_block")

	event.stonecutting("quark:sugar_cane_block","thermal:sugar_cane_block")
	event.stonecutting("thermal:sugar_cane_block","quark:sugar_cane_block")

	
	event.remove({id:"quark:building/crafting/compressed/potato_crate"})
	event.remove({id:"quark:tweaks/crafting/utility/misc/easy_sticks"})
	event.remove({id:"thermal:storage/potato_block"})

	event.stonecutting("create:rose_quartz_block","create:rose_quartz_tiles")
	event.stonecutting("create:rose_quartz_block","create:small_rose_quartz_tiles")
	event.stonecutting("create:rose_quartz_tiles","create:rose_quartz_block")
	event.stonecutting("create:small_rose_quartz_tiles","create:rose_quartz_block")

	event.shaped("9x biomeswevegone:tall_allium",
		[
			"B",
			"B"
		],
		{
			B: "biomeswevegone:allium_petal_block"
		}
	)

	event.shaped("9x biomeswevegone:tall_white_allium",
		[
			"B",
			"B"
		],
		{
			B: "biomeswevegone:white_allium_petal_block"
		}
	)

	event.shaped("9x biomeswevegone:tall_pink_allium",
		[
			"B",
			"B"
		],
		{
			B: "biomeswevegone:pink_allium_petal_block"
		}
	)

	event.custom({
		"type": "patchouli:shapeless_book_recipe",
		"ingredients": [
			{
			"item": "book"
			},
			{
			"item": "minecraft:rotten_flesh"
			}
		],
		"book": "patchouli:druidic_beastiary"
	})

	event.shaped("aether:nature_staff",
		[
			"G",
			"S"
		],
		{
			S: "#c:rods/wooden",
			G: "aether:zanite_gemstone"
		}
	).id("aether:nature_staff")

	event.shaped("4x aether:ambrosium_torch",
		[
			"G",
			"S"
		],
		{
			S: "#c:rods/wooden",
			G: "aether:ambrosium_shard"
		}
	).id("aether:ambrosium_torch")

	event.shaped("4x aether:golden_dart",
		[
			"G",
			"S",
			"F"
		],
		{
			S: "#c:rods/wooden",
			G: "aether:golden_amber",
			F: "feather"
		}
	).id("aether:golden_dart")

	///Needs Chipped to work
	/*event.shaped("3x everycomp:ch/naturesaura/overgrown_ancient_door",
		[
			"AA",
			"AA",
			"AA"
		],
		{
			A: "naturesaura:ancient_planks"
		}
	)

	event.shaped("2x everycomp:dd/naturesaura/tall_ancient_door",
		[
			"A",
			"A",
			"A"
		],
		{
			A: "everycomp:ch/naturesaura/overgrown_ancient_door"
		}
	).id("everycomp:dd/naturesaura/tall_ancient_door")

	event.stonecutting("everycomp:dd/naturesaura/short_ancient_door","everycomp:ch/naturesaura/overgrown_ancient_door").id("everycomp:dd/naturesaura/short_ancient_door")*/

	function Chunks(big,small)
	{
		event.shapeless(big,"8x "+small)
		event.shapeless("8x "+small,big)
		//Compacts 8 small items into 1 big item and back (coal chunks)
	};

	function StorageCompacting(big,small)
	{
		event.shapeless(big,"9x "+small)
		event.shapeless("9x "+small,big)
		//Compacts 9 small items into 1 big item and back (nuggets, ingots, storage blocks)
	};

	function SmallStorageCompacting(big,small)
	{
		event.shaped(big,["YY","YY"],{Y:small})
		event.shapeless("4x "+small,big)
		//Compacts 4 small items into 1 big item and back (used for some gems and gems blocks)
	};

	event.shapeless("immersiveengineering:storage_steel","9x immersiveengineering:ingot_steel").id("immersiveengineering:crafting/ingot_steel_to_storage_steel")
	
	event.shapeless("thermal:sulfur","9x #forge:nuggets/sulfur")
	Chunks("coal","kubejs:coal_chunk")
	Chunks("charcoal","kubejs:charcoal_chunk")
	Chunks("thermal:coal_coke","kubejs:coke_chunk")
	StorageCompacting("kubejs:gold_leaf_block","naturesaura:gold_leaf")
	StorageCompacting("kubejs:rotten_flesh_block","rotten_flesh")
	StorageCompacting("kubejs:ivy_block","immersive_weathering:ivy")
	StorageCompacting("kubejs:sturdy_deepslate","minecraft:deepslate")
	StorageCompacting("naturesaura:infused_iron","kubejs:infused_iron_nugget")
	StorageCompacting("kubejs:sapphire_block","kubejs:sapphire")
	StorageCompacting("thermal:gunpowder_block","quark:gunpowder_sack")
	StorageCompacting("kubejs:arcanum_alloy_block","kubejs:arcanum_alloy_ingot")
	StorageCompacting("kubejs:source_alloy_block","kubejs:source_alloy_ingot")
	StorageCompacting("kubejs:arcanum_alloy_ingot","kubejs:arcanum_alloy_nugget")
	StorageCompacting("kubejs:source_alloy_ingot","kubejs:source_alloy_nugget")
	StorageCompacting("twilightforest:ironwood_ingot","kubejs:ironwood_nugget")
	StorageCompacting("twilightforest:knightmetal_ingot","kubejs:knightmetal_nugget")
	StorageCompacting("naturesaura:tainted_gold","kubejs:tainted_gold_nugget")
	StorageCompacting("naturesaura:sky_ingot","kubejs:sky_nugget")
	StorageCompacting("naturesaura:depth_ingot","kubejs:depth_nugget")
	StorageCompacting('twilightforest:fiery_ingot','kubejs:fiery_nugget')
	StorageCompacting("create:andesite_alloy","kubejs:andesite_alloy_nugget")
	StorageCompacting("kubejs:storm_block","kubejs:storm_ingot")
	StorageCompacting("kubejs:storm_ingot","kubejs:storm_nugget")



	SmallStorageCompacting("thermal:ruby_block","thermal:ruby")
	SmallStorageCompacting("thermal:sapphire_block","thermal:sapphire")


	//============================= Dusts

    ThermalMetals.forEach(id => {
		event.custom(
			{
			"type": "create:milling",
			"ingredients": [
			  {
				"tag": "forge:raw_materials/"+id
			  }
			],
			"results": [
			  {
				"item": "thermal:"+id+"_dust",
				"count": 1
			  }
			],
			"processingTime": 100
		  })/// Adds Dusts crafting recipes to the create machines
		
	});
	 
	function metal(material)
	{
		event.remove({id:'thermal:machines/press/press_'+material+'_ingot_to_coin'})
		event.remove({id:'thermal:machines/press/press_'+material+'_nugget_to_coin'}) /// Removes Coins crafting recipes

		event.custom(
			{
			"type": "create:milling",
			"ingredients": [
			  {
				"tag": "forge:ingots/"+material
			  }
			],
			"results": [
			  {
				"item": "thermal:"+material+"_dust",
				"count": 1
			  }
			],
			"processingTime": 100
		  })/// Adds Dusts crafting recipes to the create machines
	}
	//-------------------Keys---------------------

	event.recipes.create.milling('kubejs:infused_diamond','kubejs:broken_key')
	event.recipes.create.milling(['kubejs:broken_key',"2x kubejs:infused_diamond"],'kubejs:overworld_key')
	event.recipes.create.milling(['kubejs:broken_key',"2x thermal:sapphire"],'kubejs:twilight_key')
	event.recipes.create.milling(['kubejs:broken_key',"2x thermal:ruby"],'kubejs:nether_key')
	//-------------------Gears----------------------

	function CustomGears(material,id)
	{
		event.recipes.thermal.press(id,["4x #forge:ingots/"+material,"thermal:press_gear_die"])//Thermal Press Recipe

		event.shaped(id,
			[
				"RPR",
				"PGP",
				"RPR"
			],
			{
				P: "#forge:plates/"+material,
				R: "#forge:rods/"+material,
				G: "kubejs:stone_gear"
			}
		)// Crafting Table recipe

		event.custom({
			"type": "immersiveengineering:metal_press",
			"energy": 2400,
			"input": {
				"base_ingredient": {
				"tag": "forge:ingots/"+material
				},
				"count": 4
			},
			"mold": "immersiveengineering:mold_gear",
			"result": {
				"item": id
			}
		})// IE Press Recipe
	}

	function ThermalGears(material)
	{
		event.remove({id:"thermal:parts/"+material+"_gear"})//removes original recipe
		event.shaped("thermal:"+material+"_gear",
			[
				"RPR",
				"PGP",
				"RPR"
			],
			{
				P: "#forge:plates/"+material,
				R: "#forge:rods/"+material,
				G: "kubejs:stone_gear"
			}
		)// Adds crafting recipes for gears from thermal
	}

	ThermalGears("iron")
	ThermalGears("gold")
	ThermalGears("copper")
	ThermalGears("netherite")
	ThermalGears("tin")
	ThermalGears("lead")
	ThermalGears("silver")
	ThermalGears("bronze")
	ThermalGears("nickel")
	ThermalGears("steel")
	ThermalGears("rose_gold")
	ThermalGears("electrum")
	ThermalGears("invar")
	ThermalGears("constantan")
	ThermalGears("signalum")
	ThermalGears("lumium")
	ThermalGears("enderium")
	ThermalGears("diamond")
	CustomGears("infused_iron","kubejs:infused_iron_gear")
	CustomGears("source_alloy","kubejs:source_alloy_gear")
	CustomGears("arcanum_alloy","kubejs:arcanum_alloy_gear")
	CustomGears("aluminum","kubejs:aluminum_gear")
	CustomGears("andesite","kubejs:andesite_gear")
	CustomGears("zinc","kubejs:zinc_gear")
	CustomGears("uranium","kubejs:uranium_gear")
	CustomGears("stainless_steel","kubejs:stainless_steel_gear")
	CustomGears("ironwood","kubejs:ironwood_gear")
	CustomGears("knightmetal","kubejs:knightmetal_gear")
	CustomGears("arcane_gold","kubejs:arcane_gold_gear")
	//CustomGears("drenched_iron","kubejs:drenched_iron_gear")
	//CustomGears("swift_alloy","kubejs:swift_alloy_gear")
	CustomGears("tainted_gold","kubejs:tainted_gold_gear")
	CustomGears("sky","kubejs:sky_gear")
	CustomGears("depth","kubejs:depth_gear")
	CustomGears("brass","kubejs:brass_gear")
	//CustomGears("fireite","kubejs:fireite_gear")
	CustomGears("fiery","kubejs:fiery_gear")
	CustomGears("storm","kubejs:storm_gear")


	//-------------------Rods-----------------------

	function rods(material,output)
	{
		// Function that uses tag as an input and item id as an output
		// Adds shaped recipe, IE Recipe and Thermal Recipe
		event.shaped(output,
			[
				"  X",
				" X ",
				"X  "
			],
			{
				X: "#forge:plates/"+material
			})

		event.custom({
			type: "immersiveengineering:metal_press",
			energy: 2400,
			input: {"base_ingredient":{"tag":"forge:plates/"+material},"count":2},
			mold: "immersiveengineering:mold_rod",
			result: { item: output },
		});

		event.recipes.thermal.press(output,["#forge:plates/"+material,"immersiveengineering:mold_rod"])
		event.remove({output:output})
		event.remove({output:"#forge:rods/"+material})
	}

	rods("infused_iron","kubejs:infused_iron_rod")
	rods("source_alloy","kubejs:source_alloy_rod")
	rods("arcanum_alloy","kubejs:arcanum_alloy_rod")
	rods("copper","kubejs:copper_rod")
	rods("electrum","kubejs:electrum_rod")
	rods("diamond","kubejs:diamond_rod")
	rods("gold","kubejs:gold_rod")
	//rods("drenched_iron","kubejs:drenched_iron_rod")
	//rods("swift_alloy","kubejs:swift_alloy_rod")
	rods("tainted_gold","kubejs:tainted_gold_rod")
	rods("sky","kubejs:sky_rod")
	rods("depth","kubejs:depth_rod")
	rods("brass","kubejs:brass_rod")
	rods("arcane_gold","kubejs:arcane_gold_rod")
	//rods("fireite","kubejs:fireite_rod")

	event.remove({id:"vintageimprovements:craft/fiery_rod"})
	
	rods("fiery","kubejs:fiery_rod")
	rods("storm","kubejs:storm_rod")
	


	rods("iron","immersiveengineering:stick_iron")
	rods("stainless_steel","immersiveengineering:stick_steel")

	rods("aluminum",'vintageimprovements:aluminum_rod')
	rods("andesite","vintageimprovements:andesite_rod")
	rods("bronze","vintageimprovements:bronze_rod")
	rods("constantan","vintageimprovements:constantan_rod")
	rods("enderium","vintageimprovements:enderium_rod")
	rods("invar","vintageimprovements:invar_rod")
	rods("ironwood","vintageimprovements:ironwood_rod")
	rods("knightmetal","vintageimprovements:knightmetal_rod")
	rods("lead","vintageimprovements:lead_rod")
	rods("lumium","vintageimprovements:lumium_rod")
	rods("netherite","vintageimprovements:netherite_rod")
	rods("nickel","vintageimprovements:nickel_rod")
	rods("rose_gold","vintageimprovements:rose_gold_rod")
	rods("signalum","vintageimprovements:signalum_rod")
	rods("silver","vintageimprovements:silver_rod")
	rods("steel","vintageimprovements:steel_rod")
	rods("tin","vintageimprovements:tin_rod")

	rods("uranium","vintageimprovements:uranium_rod")
	rods("vanadium","vintageimprovements:vanadium_rod")
	rods("zinc","vintageimprovements:zinc_rod")
	
	//-------------------Plates---------------------

	
	function PlatesOnetoOne(outputItem, inputBlock)
	{
		event.recipes.create.pressing(`2x ${outputItem}`,`2x ${inputBlock}`)// Adds Plates crafting recipes to the create machines
	
		event.recipes.thermal.press(`2x ${outputItem}`,`2x ${inputBlock}`)// Adds Plates crafting recipes to the thermal machines
	
		event.recipes.immersiveengineering.metal_press(`2x ${outputItem}`,`2x ${inputBlock}`)// Adds Plates crafting recipes to the IE machines
	
		event.custom({
			type: "lychee:block_interacting",
			item_in: { item: "immersiveengineering:hammer" },
			block_in: inputBlock,
			post: [
				{ type: "drop_item", item: outputItem ,count: 1 },
				{ type: "place", block: "air" },
				{ type: "damage_item",damage: 0 }
			]
		});// Adds In World Plates crafting recipes 

		event.custom(
			{
				type: "lychee:block_crushing",
				"comment": "25% chance for extra drop!",
				post: [
				  {
					type: "anvil_damage_chance",
					"chance": 0
				  },
				  {
					type: "place",
					block: "minecraft:air",
				  },
				  {
					type: "drop_item",
					item: outputItem,
					count: 1
				  },
				  {
					type: "drop_item",
					"contextual": [
					  {
						type: "chance",
						"chance": 0.25
					  }
					],
					item: outputItem
				  }
				],
				"landing_block": inputBlock
			  }  
		)

		event.custom(
			{
				type: "lychee:block_crushing",
				post: [
				  {
					type: "anvil_damage_chance",
					"chance": 0
				  },
				  {
					type: "place",
					block: "minecraft:air",
				  },
				  {
					type: "drop_item",
					item: outputItem,
					count: 2
				  }
				],
				"falling_block": "kubejs:pressing_catalyst",
				"landing_block": inputBlock
			  }  
		)

		event.recipes.naturesaura.altar(Item.of(outputItem,2),inputBlock,500,100,"kubejs:pressing_catalyst")
	}

	PlatesOnetoOne("kubejs:wooden_plate", "immersiveengineering:treated_wood_horizontal")
	PlatesOnetoOne("kubejs:stone_plate", "minecraft:smooth_stone")

	function plates(inputItem, outputItem, inputBlock) {// Adds Plates crafting recipes to the machines
		
		event.recipes.create.pressing(Item.of(outputItem,6),inputBlock)// Adds Plates crafting recipes to the create machines
	
		event.recipes.thermal.press(outputItem,"#"+inputItem)// Adds Plates crafting recipes to the thermal machines
	
		event.custom({
			type: "immersiveengineering:metal_press",
			energy: 2400,
			input: { tag: inputItem },
			mold: "immersiveengineering:mold_plate",
			result: { item: outputItem },
		});// Adds Plates crafting recipes to the IE machines
	
		event.custom({
			type: "lychee:block_interacting",
			item_in: { item: "immersiveengineering:hammer" },
			block_in: inputBlock,
			post: [
				{ type: "drop_item", item: outputItem,count: 3 },
				{ type: "place", block: "air" },
				{ type: "damage_item",damage: 0 }
			]
		});// Adds In World Plates crafting recipes
		
		event.custom(
			{
				type: "lychee:block_crushing",
				post: [
				  {
					type: "anvil_damage_chance",
					"chance": 0
				  },
				  {
					type: "place",
					block: "minecraft:air",
				  },
				  {
					type: "drop_item",
					item: outputItem,
					count: 4
				  }
				],
				"landing_block": inputBlock
			  }  
		)// Adds in World Plates crafting recipes from falling anvil

		event.custom(
			{
				type: "lychee:block_crushing",
				post: [
				  {
					type: "anvil_damage_chance",
					"chance": 0
				  },
				  {
					type: "place",
					block: "minecraft:air",
				  },
				  {
					type: "drop_item",
					item: outputItem,
					count: 5
				  }
				],
				"falling_block": "kubejs:pressing_catalyst",
				"landing_block": inputBlock
			  }  
		)// Adds in World Plates crafting recipes from falling pressing catalyst

		event.recipes.naturesaura.altar(Item.of(outputItem,5),inputBlock,500,100,"kubejs:pressing_catalyst")
	}

	plates("forge:ingots/source_alloy","kubejs:source_alloy_plate","kubejs:source_alloy_block")
	plates("forge:ingots/infused_iron","kubejs:infused_iron_plate","naturesaura:infused_iron_block")
	plates("forge:ingots/arcanum_alloy","kubejs:arcanum_alloy_plate","kubejs:arcanum_alloy_block")
	plates("forge:gems/diamond","kubejs:diamond_plate","minecraft:diamond_block")
	
	plates("forge:ingots/ironwood","vintageimprovements:ironwood_sheet","twilightforest:ironwood_block")
	plates("forge:ingots/knightmetal","vintageimprovements:knightmetal_sheet","twilightforest:knightmetal_block")
	plates("forge:ingots/fiery","vintageimprovements:fiery_sheet","twilightforest:fiery_block")
	

	plates("forge:ingots/tin","vintageimprovements:tin_sheet","thermal:tin_block")
	plates("forge:ingots/silver","vintageimprovements:silver_sheet","thermal:silver_block")
	plates("forge:ingots/lead","vintageimprovements:lead_sheet","thermal:lead_block")
	plates("forge:ingots/nickel","vintageimprovements:nickel_sheet","thermal:nickel_block")
	plates("forge:ingots/bronze","vintageimprovements:bronze_sheet","thermal:bronze_block")

	plates("forge:ingots/uranium",'vintageimprovements:uranium_sheet','immersiveengineering:storage_uranium')
	plates("forge:ingots/stainless_steel",'immersiveengineering:plate_steel',"immersiveengineering:storage_steel")
	plates("forge:ingots/steel","thermal:steel_plate","thermal:steel_block")
	plates("forge:ingots/electrum","immersiveengineering:plate_electrum","thermal:electrum_block")
	plates("forge:ingots/arcane_gold","wizards_reborn:arcane_gold_sheet","wizards_reborn:arcane_gold_block")

	plates("forge:ingots/constantan",'vintageimprovements:constantan_sheet',"thermal:constantan_block")
	plates("forge:ingots/enderium",'vintageimprovements:enderium_sheet','thermal:enderium_block')
	plates("forge:ingots/invar",'vintageimprovements:invar_sheet',"thermal:invar_block")
	plates("forge:ingots/lumium",'vintageimprovements:lumium_sheet',"thermal:lumium_block")
	plates("forge:ingots/rose_gold",'vintageimprovements:rose_gold_sheet',"thermal:rose_gold_block")
	plates("forge:ingots/signalum",'vintageimprovements:signalum_sheet',"thermal:signalum_block")
	plates("forge:ingots/zinc",'vintageimprovements:zinc_sheet',"create:zinc_block")
	plates("forge:ingots/vanadium",'vintageimprovements:vanadium_sheet',"vintageimprovements:vanadium_block")

	plates("forge:ingots/aluminum",'vintageimprovements:aluminum_sheet',"immersiveengineering:storage_aluminum")
	plates("forge:ingots/andesite_alloy",'vintageimprovements:andesite_sheet','create:andesite_alloy_block')
	plates("forge:ingots/copper","create:copper_sheet","minecraft:copper_block")
	plates("forge:ingots/iron","create:iron_sheet","minecraft:iron_block")
	plates("forge:ingots/gold","create:golden_sheet","minecraft:gold_block")
	plates("forge:ingots/netherite","vintageimprovements:netherite_sheet","minecraft:netherite_block")
	plates("forge:ingots/brass","create:brass_sheet","create:brass_block")

	
	plates("forge:ingots/tainted_gold","kubejs:tainted_gold_sheet","naturesaura:tainted_gold_block")
	plates("forge:ingots/sky","kubejs:sky_sheet","naturesaura:sky_ingot_block")
	plates("forge:ingots/depth","kubejs:depth_sheet","naturesaura:depth_ingot_block")

	plates("forge:ingots/sarcon","wizards_reborn:sarcon_sheet","wizards_reborn:sarcon_block")
	plates("forge:ingots/vilenium","wizards_reborn:vilenium_sheet","wizards_reborn:vilenium_block")
	plates("forge:ingots/storm","kubejs:storm_sheet","kubejs:storm_block")
	


	//-------------------Coins---------------------
	event.shapeless('thermal:silver_coin', ['9x thermal:copper_coin'])
	event.shapeless('thermal:gold_coin', ['9x thermal:silver_coin'])
	event.shapeless('thermal:netherite_coin', ['9x thermal:gold_coin'])
	event.shapeless('thermal:enderium_coin', ['9x thermal:netherite_coin'])

	event.shapeless('9x thermal:copper_coin',['thermal:silver_coin'])
	event.shapeless('9x thermal:silver_coin',['thermal:gold_coin'])
	event.shapeless('9x thermal:gold_coin',['thermal:netherite_coin'])
	event.shapeless('9x thermal:netherite_coin',['thermal:enderium_coin'])
	
	metal('enderium')
	metal('steel')
	metal('invar')
	metal('bronze')
	metal('electrum')
	metal('constantan')
	metal('signalum')
	metal('lumium')
	event.remove({output:'thermal:press_coin_die'})

	
	///=======================================Building blocks=======================================///

	event.shaped("12x tinted_glass",
		[
			"LAL",
			"AGA",
			"LAL"
		],
		{
			L: "#forge:wires/lead",
			A: "#forge:gems/amethyst",
			G: "#forge:glass/colorless"
		}
	).id("immersiveengineering:crafting/tinted_glass_lead_wire")
	event.shaped("immersiveengineering:sawdust",
		[
			"SS"
		],
		{
			S: "#forge:dusts/wood"
		}
	).id("immersiveengineering:crafting/sawdust")

	event.recipes.thermal.rock_gen("create:limestone","air","create:honey",30)

	event.recipes.thermal.rock_gen("create:scoria","air","create:chocolate",30)

	/*event.recipes.thermal.rock_gen("minecraft:crying_obsidian","air","deep_aether:poison_fluid",30)
	/// Why doesnt it work :(
	event.recipes.thermal.rock_gen("deep_aether:aersmog","water","deep_aether:poison_fluid",30)*/

	event.shaped("8x immersiveengineering:slag_brick",
		[
			"GGG",
			"GXG",
			"GGG"
		],
		{
			G: "#forge:slag",
			X: "kubejs:brick_glue"
		}
	).damageIngredient("kubejs:brick_glue",8).id("immersiveengineering:crafting/slag_brick")

	event.shaped("2x kubejs:polished_planks",
		[
			"PX",
			"XP"
		],
		{
			P: "#minecraft:planks",
			X: "#forge:rods/wooden"
		}
	)
	event.shaped("2x kubejs:stacked_planks",
		[
			"PP",
			"PP"
		],
		{
			P: "#minecraft:wooden_slabs",
		}
	)

	event.shaped("kubejs:packed_planks",
		[
			"SPS",
			"PPP",
			"SPS"
		],
		{
			P: "#minecraft:planks",
			S: "#forge:rods/wooden"
		})
	

	event.remove({id:'supplementaries:timber_frame'})
	event.shaped(
		Item.of('4x supplementaries:timber_frame'), 
		[
		  'CCC', 
		  'C C',
		  'CCC',
		],
		{
		  C: 'stick'
		}
	  )

	wood_TF.forEach(type => {
		
		event.shaped("twilightforest:"+type+"_chest",
			[
				"XXX",
				"X X",
				"XXX"
			],
			{X:"twilightforest:"+type+"_planks"}
		).id("twilightforest:wood/"+type+"_chest")
	});

	

	event.shaped("supplementaries:item_shelf",
		[
			"S S",
			"PPP"
		],
		{S:"#forge:rods/wooden",P:"minecraft:planks"}
	).id("supplementaries:item_shelf")

	//Regions Unexplored
	//event.shapeless("regions_unexplored:blackstone_cluster","blackstone").id("regions_unexplored:blackstone_cluster")
	
	

	//event.shaped("architects_palette:hadaline_tiles",["XX","XX"],{"X":"architects_palette:hadaline_bricks"}).id("architects_palette:hadaline_tiles")

	//Regions Unexplored
	//event.shapeless("regions_unexplored:blackstone_cluster","blackstone").id("regions_unexplored:blackstone_cluster")

	//event.shapeless("twigs:polished_basalt_bricks","architects_palette:basalt_tiles").id("twigs:polished_basalt_bricks")
	//event.shapeless("architects_palette:basalt_tiles","twigs:polished_basalt_bricks")
	event.shapeless("twigs:mossy_bricks","immersive_weathering:mossy_bricks")
	
	event.shaped("8x twigs:gravel_bricks",
		[
			"GGG",
			"GXG",
			"GGG"
		],
		{
			G: "#forge:gravel",
			X: "kubejs:brick_glue"
		}
	).damageIngredient("kubejs:brick_glue",8).id("twigs:gravel_bricks")
	
	event.shapeless("quark:mossy_cobblestone_bricks","twigs:mossy_cobblestone_bricks").id("quark:building/crafting/mossy_cobblestone_bricks")

	//event.shaped("architects_palette:hadaline_tiles",["XX","XX"],{"X":"architects_palette:hadaline_bricks"}).id("architects_palette:hadaline_tiles")

	//Regions Unexplored
	//event.shapeless("regions_unexplored:mossy_stone","immersive_weathering:mossy_stone").id("regions_unexplored:mossy_stone")
	//event.shapeless("immersive_weathering:mossy_stone","regions_unexplored:mossy_stone")

	//event.shapeless("quark:dripstone_bricks","architects_palette:dripstone_bricks").id("architects_palette:dripstone_bricks")
	//event.shapeless("architects_palette:dripstone_bricks","quark:dripstone_bricks")

	//event.shapeless("quark:calcite_bricks","architects_palette:calcite_bricks").id("architects_palette:calcite_bricks")
	//event.shapeless("architects_palette:calcite_bricks","quark:calcite_bricks")

	event.shapeless("twigs:cobblestone_bricks","quark:cobblestone_bricks").id("twigs:cobblestone_bricks")
	event.shapeless("quark:cobblestone_bricks","twigs:cobblestone_bricks")
	event.shapeless("twigs:gravel_bricks","supplementaries:gravel_bricks")
	event.shapeless("supplementaries:gravel_bricks","twigs:gravel_bricks").id("supplementaries:gravel_bricks")

	event.remove({id:"twigs:azalea_flowers_from_flowering_azalea"})

	event.remove({id:"immersiveengineering:crafting/toolbox"})

	/* Regions Unexplored
	event.shapeless("4x regions_unexplored:blue_magnolia_flowers","4x regions_unexplored:blue_magnolia_leaves").id("regions_unexplored:blue_magnolia_flowers")
	event.shapeless("4x regions_unexplored:pink_magnolia_flowers","4x regions_unexplored:pink_magnolia_leaves").id("regions_unexplored:pink_magnolia_flowers")
	event.shapeless("4x regions_unexplored:white_magnolia_flowers","4x regions_unexplored:white_magnolia_leaves").id("regions_unexplored:white_magnolia_flowers")*/

	
	event.replaceInput({id:"immersiveengineering:crafting/wirecutter"},"#forge:rods/wooden","immersiveengineering:stick_treated")

	//============================= Shapeshifting Root

	event.shaped("quark:ancient_sapling",
	[
		"XXX",
		"XRX",
		"XXX"
	],
	{
		X: "calcite",
		R: "kubejs:shapeshifting_root"
	})


	function WaystoneVariants(type,block)
	{
		event.shapeless("waystones:"+type+"waystone",["#waystones:waystones",block])
	}
	WaystoneVariants("deepslate_","deepslate")
	WaystoneVariants("sandy_","sandstone")
	WaystoneVariants("","stone")
	WaystoneVariants("mossy_","moss_block")
	WaystoneVariants("end_stone_","end_stone")
	WaystoneVariants("blackstone_","blackstone")

	event.forEachRecipe({output:"#wizards_reborn:luminal_glass"}, r=>{
		
		let ingredients = r.originalRecipeIngredients

		console.log("trapdoor ingredients:"+ingredients[0].itemIds[0])

		let output = r.originalRecipeResult
		
		event.shaped("8x "+output.id,
			[
				"GGG",
				"GXG",
				"GGG"
			],
			{
				G: ingredients[0].itemIds[0],
				X: ingredients[4].itemIds[0]
			}
		).id(r.getId())
	

	})
	

	
})

