#@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;


var air = <item:minecraft:air>;
var menril_chunk = <item:integrateddynamics:crystalized_menril_chunk>;
var chorus_chunk = <item:integrateddynamics:crystalized_chorus_chunk>;

//物品在液体里转变
<recipetype:interactio:item_fluid_transform>.addJSONRecipe(
    "pewter_blend", {
        "inputs": [
            {
                "item": "emendatusenigmatica:lead_ingot",
                "count": 4
            }
        ],
        "fluid": {
            "fluid": "tconstruct:molten_iron"
        },
        "output": {
            "entries": [
                {
                    "result": {
                        "item": "eidolon:pewter_blend",
                        "count": 4
                    },
                    "weight": 8
                }
            ]
        },
        "consume_fluid": 0.6
    }
);
<recipetype:interactio:item_fluid_transform>.addJSONRecipe(
    "gold_fiber", {
        "inputs": [
            {
                "item": "eidolon:arcane_gold_nugget",
                "count": 4
            },
            {
                "item": 'minecraft:grass'
            },
            {
                "ingredient": {
                    "type": "forge:nbt",
                    "item": "naturesaura:aura_bottle",
                    "count": 1,
                    "nbt": "{stored_type:'naturesaura:overworld'}"
                }
            }
        ],
        "fluid": {
            "fluid": "kubejs:molten_glowstone"
        },
        "output": {
            "entries": [
                {
                    "result": {
                        "item": "naturesaura:gold_fiber",
                        "count": 2
                    },
                    "weight": 10
                }
            ]
        },
        "consume_fluid": 0
    }
);
<recipetype:interactio:item_fluid_transform>.addJSONRecipe(
    "soul_heart", {
        "inputs": [
            {
                "item": "eidolon:wraith_heart",
                "count": 1
            },
            {
                "item": "emendatusenigmatica:diamond_dust",
                "count": 2
            },
            {
                "item": "bloodmagic:reagentair",
                "count": 1
            }
        ],
        "fluid": {
            "fluid": "kubejs:soul_essence"
        },
        "output": {
            "entries": [
                {
                    "result": {
                        "item": "alexsmobs:soul_heart",
                        "count": 1
                    },
                    "weight": 10
                }
            ]
        },
        "consume_fluid": 0.25
    }
);
<recipetype:interactio:item_fluid_transform>.addJSONRecipe(
    "infused_wood", {
        "inputs": [
            {
                "item": "atum:palm_log",
                "count": 1
            },
            {
                "item": "naturesaura:ancient_planks",
                "count": 1
            },
            {
                "item": "bloodmagic:woodbrickpath",
                "count": 1
            },
            {
                "item": "occultism:otherworld_log",
                "count": 1
            }
        ],
        "fluid": {
            "fluid": "astralsorcery:liquid_starlight"
        },
        "output": {
            "entries": [
                {
                    "result": {
                        "item": "astralsorcery:infused_wood",
                        "count": 2
                    },
                    "weight": 10
                }
            ]
        },
        "consume_fluid": 0
    }
);
<recipetype:interactio:item_fluid_transform>.addJSONRecipe(
    "fluix_gem", {
        "inputs": [
            {
                "item": "emendatusenigmatica:charged_certus_quartz_gem",
                "count": 2
            },
            {
                "item": "materialis:pink_slime_crystal",
                "count": 1
            },
            {
                "item": "botania:quartz_red",
                "count": 1
            },
        ],
        "fluid": {
            "fluid": 'kubejs:witch_water'
        },
        "output": {
            "entries": [
                {
                    "result": {
                        "item": "emendatusenigmatica:fluix_gem",
                        "count": 2
                    },
                    "weight": 10
                }
            ]
        },
        "consume_fluid": 0.2
    }
);
<recipetype:interactio:item_fluid_transform>.addJSONRecipe(
    "fluix_iron_ingot", {
        "inputs": [
            {
                "item": "lazierae2:carbonic_fluix_dust",
                "count": 1
            },
            {
                "item": "kubejs:stainless_steel_ingot",
                "count": 1
            },
            {
                "item": "appliedenergistics2:sky_dust",
                "count": 2
            }
        ],
        "fluid": {
            "fluid": 'kubejs:witch_water'
        },
        "output": {
            "entries": [
                {
                    "result": {
                        "item": "lazierae2:fluix_iron_ingot",
                        "count": 1
                    },
                    "weight": 10
                }
            ]
        },
        "consume_fluid": 0.2
    }
);
<recipetype:interactio:item_fluid_transform>.addJSONRecipe(
    "resonating_gem", {
        "inputs": [
            {
                "item": "lazierae2:carbonic_fluix_dust",
                "count": 2
            },
            {
                "item": "kubejs:vibrant_gem",
                "count": 1
            },
            {
                "item": "botania:corporea_spark",
                "count": 1
            }
        ],
        "fluid": {
            "fluid": 'kubejs:witch_water'
        },
        "output": {
            "entries": [
                {
                    "result": {
                        "item": "lazierae2:resonating_gem",
                        "count": 1
                    },
                    "weight": 10
                }
            ]
        },
        "consume_fluid": 0.2
    }
);

//炸物品
<recipetype:interactio:item_explode>.addJSONRecipe(
    "cast_iron_ingot", {
        "inputs": [
            {
                "item": "minecraft:iron_ingot",
                "count": 1
            },
            {
                "item": "minecraft:flint",
                "count": 2
            },
            {
                "item": "minecraft:coal_block",
                "count": 1
            }
        ],
        "output": {
            "entries": [
                {
                    "result": {
                        "item": "emendatusenigmatica:cast_iron_ingot",
                        "count": 1
                    },
                    "weight": 8
                }
            ],
            "empty_weight": 2
        }
    }
);

//炸方块
<recipetype:interactio:block_explode>.addJSONRecipe(
    "smooth_stone", {
        "input": { "block": "stone" },
        "output": {
            "type": "block",
            "entries": [
                {
                    "result": { "block": "smooth_stone" },
                    "weight": 1
                }
            ],
            "empty_weight": 4
        }
    }
);

//雷击物品
<recipetype:interactio:item_lightning>.addJSONRecipe(
    "holy_symble", {
        "inputs": [
            {
                "item": "eidolon:unholy_symbol",
                "count": 1
            }
        ],
        "output": {
            "entries": [
                {
                    "result": {
                        "item": "kubejs:holy_symbol",
                        "count": 1
                    },
                    "weight": 10
                }
            ]
        }
    }
);
<recipetype:interactio:item_lightning>.addJSONRecipe(
    "earth_slime_crystal", {
        "inputs": [
            {
                "item": "minecraft:slime_ball",
                "count": 1
            }
        ],
        "output": {
            "entries": [
                {
                    "result": {
                        "item": "tconstruct:earth_slime_crystal",
                        "count": 1
                    },
                    "weight": 10
                }
            ]
        }
    }
);
<recipetype:interactio:item_lightning>.addJSONRecipe(
    "sky_slime_crystal", {
        "inputs": [
            {
                "item": "tconstruct:sky_slime_ball",
                "count": 1
            }
        ],
        "output": {
            "entries": [
                {
                    "result": {
                        "item": "tconstruct:sky_slime_crystal",
                        "count": 1
                    },
                    "weight": 10
                }
            ]
        }
    }
);
<recipetype:interactio:item_lightning>.addJSONRecipe(
    "ichor_slime_crystal", {
        "inputs": [
            {
                "item": "tconstruct:ichor_slime_ball",
                "count": 1
            }
        ],
        "output": {
            "entries": [
                {
                    "result": {
                        "item": "tconstruct:ichor_slime_crystal",
                        "count": 1
                    },
                    "weight": 10
                }
            ]
        }
    }
);
<recipetype:interactio:item_lightning>.addJSONRecipe(
    "ender_slime_crystal", {
        "inputs": [
            {
                "item": "tconstruct:ender_slime_ball",
                "count": 1
            }
        ],
        "output": {
            "entries": [
                {
                    "result": {
                        "item": "tconstruct:ender_slime_crystal",
                        "count": 1
                    },
                    "weight": 10
                }
            ]
        }
    }
);
<recipetype:interactio:item_lightning>.addJSONRecipe(
    "pink_slime_crystal", {
        "inputs": [
            {
                "item": "industrialforegoing:pink_slime",
                "count": 1
            }
        ],
        "output": {
            "entries": [
                {
                    "result": {
                        "item": "materialis:pink_slime_crystal",
                        "count": 1
                    },
                    "weight": 10
                }
            ]
        }
    }
);
<recipetype:interactio:item_lightning>.addJSONRecipe(
    "lava_crystal", {
        "inputs": [
            {
                "item": "bloodmagic:reagentlava",
                "count": 3
            },
            {
                "item": "bloodmagic:furnacecell_primitive",
                "count": 1
            },
            {
                "item": "tconstruct:clear_glass",
                "count": 2
            }
        ],
        "output": {
            "entries": [
                {
                    "result": {
                        "item": "bloodmagic:lavacrystal",
                        "count": 1
                    },
                    "weight": 10
                }
            ]
        }
    }
);
<recipetype:interactio:item_lightning>.addJSONRecipe(
    "overcharged_alloy", {
        "inputs": [
            {
                "item": "create:chromatic_compound",
                "count": 1
            },
            {
                "item": "createaddition:capacitor",
                "count": 3
            },
            {
                "item": "integrateddynamics:crystalized_menril_chunk",
                "count": 2
            }
        ],
        "output": {
            "entries": [
                {
                    "result": {
                        "item": "jaept:overcharged_alloy",
                        "count": 1
                    },
                    "weight": 10
                }
            ]
        }
    }
);
<recipetype:interactio:item_lightning>.addJSONRecipe(
    "spirit_attuned_crystal", {
        "inputs": [
            {
                "item": "occultism:spirit_attuned_gem",
                "count": 3
            },
            {
                "item": "bloodmagic:steadfastdemoncrystal",
                "count": 1
            },
            {
                "item": "integrateddynamics:crystalized_chorus_chunk",
                "count": 6
            }
        ],
        "output": {
            "entries": [
                {
                    "result": {
                        "item": "occultism:spirit_attuned_crystal",
                        "count": 1
                    },
                    "weight": 10
                }
            ]
        }
    }
);