#@ts-nocheck
#nowarn

import crafttweaker.api.recipe.Replacer;
import crafttweaker.api.data.IData;
import crafttweaker.api.data.MapData;
import crafttweaker.api.item.IItemStack;
import crafttweaker.api.item.IIngredient;
import crafttweaker.api.item.IIngredientTransformer;
import crafttweaker.api.data.INumberData;

//修改配方


//删除配方

//匠魂
//<recipetype:tconstruct:material>.removeByName("tconstruct:tools/materials/composite/seared_stone");
//<recipetype:tconstruct:material>.removeByName("tconstruct:tools/materials/composite/scorched_stone");
<recipetype:tconstruct:casting_basin>.removeByName("tconstruct:smeltery/casting/seared/glass");
<recipetype:tconstruct:casting_table>.removeByName("tconstruct:smeltery/casting/seared/glass_pane");
<recipetype:tconstruct:casting_table>.removeByName("tconstruct:smeltery/casting/casts/blank");
<recipetype:tconstruct:casting_table>.removeByRegex("tconstruct:smeltery/casts/gold_casts/.*");
<recipetype:tconstruct:casting_table>.removeByRegex("materialis:smeltery/casts/gold_casts/.*");
<recipetype:tconstruct:melting>.removeByName("tconstruct:smeltery/melting/metal/gold/cast");
<recipetype:tconstruct:melting>.removeByName("tconstruct:tools/materials/melting/scorched_stone");
<recipetype:tconstruct:melting>.removeByName("tconstruct:smeltery/melting/metal/netherite/lodestone");
<recipetype:tconstruct:melting>.removeByName("tconstruct:smeltery/melting/metal/netherite/axes");
<recipetype:tconstruct:melting>.removeByName("tconstruct:smeltery/melting/metal/netherite/boots");
<recipetype:tconstruct:melting>.removeByName("tconstruct:smeltery/melting/metal/netherite/chestplate");
<recipetype:tconstruct:melting>.removeByName("tconstruct:smeltery/melting/metal/netherite/helmet");
<recipetype:tconstruct:melting>.removeByName("tconstruct:smeltery/melting/metal/netherite/leggings");
<recipetype:tconstruct:melting>.removeByName("tconstruct:smeltery/melting/metal/netherite/shovel");
<recipetype:tconstruct:melting>.removeByName("tconstruct:smeltery/melting/metal/netherite/weapon");
//<recipetype:tconstruct:melting>.removeByRegex("tconstruct:smeltery/melting/ender/.*");
//<recipetype:tconstruct:casting_table>.removeByRegex("tconstruct:smeltery/casting/ender/.*");
<recipetype:tconstruct:casting_basin>.removeByName("tconstruct:smeltery/casting/seared/smeltery_controller");
<recipetype:tconstruct:casting_basin>.removeByName("tconstruct:smeltery/casting/glass/block");
<recipetype:tconstruct:casting_table>.removeByName("tconstruct:smeltery/casting/glass/pane");
<recipetype:tconstruct:casting_basin>.removeByName("tconstruct:smeltery/casting/scorched/glass");
<recipetype:tconstruct:casting_table>.removeByName("tconstruct:smeltery/casting/scorched/glass_pane");
<recipetype:tconstruct:casting_basin>.removeByName("tconstruct:compat/create/andesite_alloy_iron");
<recipetype:tconstruct:casting_basin>.removeByName("tconstruct:compat/create/andesite_alloy_zinc");
//<recipetype:tconstruct:casting_basin>.removeByName("tconstruct:smeltery/casting/metal/lead/block");
//<recipetype:tconstruct:casting_basin>.removeByName("tconstruct:smeltery/casting/metal/cobalt/block");
<recipetype:tconstruct:casting_table>.removeByName("tconstruct:smeltery/casting/ender/eye");
<recipetype:tconstruct:casting_basin>.removeByName("tconstruct:smeltery/casting/obsidian/chest");
<recipetype:tconstruct:casting_table>.removeByName("tconstruct:compat/refined_glowstone_ingot");
<recipetype:tconstruct:casting_table>.removeByName("tconstruct:compat/refined_obsidian_ingot");
<recipetype:tconstruct:casting_table>.removeByName("tconstruct:smeltery/casting/scorched/brick_composite");
<recipetype:tconstruct:casting_basin>.removeByName("tconstruct:smeltery/casting/scorched/stone_from_magma");
<recipetype:tconstruct:casting_basin>.removeByName("tconstruct:smeltery/casting/scorched/polished_from_magma");
<recipetype:tconstruct:casting_basin>.removeByName("tconstruct:smeltery/casting/scorched/foundry_controller");
recipes.removeByName("apotheosis:farmers_leash");
recipes.removeByName("tconstruct:tools/materials/composite/seared_stone");
recipes.removeByName("tconstruct:tools/materials/composite/scorched_stone");
blastFurnace.removeByRegex("minecraft:tools/modifiers/slime_crystal/.*");

//幻梦
recipes.removeRecipe(<item:eidolon:lead_ingot>);
recipes.removeRecipe(<item:eidolon:lead_nugget>);
recipes.removeRecipe(<item:eidolon:lead_block>);

//ee
craftingTable.removeByRegex("emendatusenigmatica:plate_from_ingot/.*");
craftingTable.removeByRegex("emendatusenigmatica:dust_from_chunk/.*");
craftingTable.removeByRegex("emendatusenigmatica:rod_from_ingot/.*");
craftingTable.removeByRegex("emendatusenigmatica:gear_from_ingot/.*");
craftingTable.removeByRegex("emendatusenigmatica:dust_from_ore/.*");
craftingTable.removeByRegex("emendatusenigmatica:plate_from_gem/.*");
craftingTable.removeByRegex("emendatusenigmatica:rod_from_gem/.*");
craftingTable.removeByRegex("emendatusenigmatica:gear_from_gem/.*");

//机械动力
recipes.removeRecipe(<item:create:copper_ingot>);
recipes.removeRecipe(<item:create:zinc_ingot>);
recipes.removeRecipe(<item:create:brass_ingot>);
recipes.removeRecipe(<item:create:iron_sheet>);
recipes.removeRecipe(<item:create:copper_sheet>);
recipes.removeRecipe(<item:create:golden_sheet>);
recipes.removeRecipe(<item:create:brass_sheet>);

//mek
recipes.removeRecipe(<item:mekanism:ingot_lead>);
recipes.removeRecipe(<item:mekanism:block_lead>);
recipes.removeRecipe(<item:mekanism:nugget_lead>);

//血魔法
var gem_types = ["petty", "lesser", "common", "greater"] as string[];
for type in gem_types {
    <recipetype:bloodmagic:soulforge>.removeByName("bloodmagic:soulforge/"+type+"tartaricgem");
}
var tool_types = ["sword", "axe", "pickaxe", "shovel", "scythe"] as string[];
for type in tool_types {
    <recipetype:bloodmagic:soulforge>.removeByName("bloodmagic:soulforge/sentient"+type);
}
var reagent_types = ["binding", "water", "lava", "air", "growth", "holding", "void", "fastminer", "sight", "suppression", "teleposition", "blood_light", "magnetism"] as string[];
for type in reagent_types {
    <recipetype:bloodmagic:alchemytable>.removeByName("bloodmagic:alchemytable/reagent_"+type);
}
var will_types = ["raw", "corrosive", "destructive", "steadfast", "vengeful"] as string[];
for type in will_types {
    <recipetype:bloodmagic:soulforge>.removeByName("bloodmagic:soulforge/"+type+"_catalyst");
}

//集成动力
<recipetype:integrateddynamics:squeezer>.removeByRegex("integrateddynamics:squeezer/ore/dust.*");
<recipetype:integrateddynamics:mechanical_squeezer>.removeByRegex("integrateddynamics:mechanical_squeezer/ore/dust.*");

//occultis
<recipetype:occultism:spirit_fire>.removeByName("occultism:spirit_fire/otherstone");
<recipetype:occultism:spirit_fire>.removeByName("occultism:spirit_fire/chalk_white");
<recipetype:occultism:spirit_fire>.removeByName("occultism:spirit_fire/chalk_gold");
<recipetype:occultism:spirit_fire>.removeByName("occultism:spirit_fire/chalk_purple");
<recipetype:occultism:spirit_fire>.removeByName("occultism:spirit_fire/chalk_red");

//沉浸
recipes.removeByName("immersiveengineering:recycling/iron_rod");

