Overhaul some recipes, add others
This commit is contained in:
parent
d823eaa680
commit
0ee09de611
14 changed files with 446 additions and 113 deletions
|
|
@ -101,4 +101,55 @@ onEvent("server.datapack.first", (_) => {
|
|||
output: output.toResultJson(),
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
*
|
||||
* @param {RecipeEventJS} evt
|
||||
* @param {Object} first { tag/item: ResourceLocation }
|
||||
* @param {Object} second { tag/item: ResourceLocation }
|
||||
* @param {string} output
|
||||
* @param {number} qty
|
||||
*/
|
||||
global.genAlloyingRecipe = (evt, first, second, output, qty) => {
|
||||
evt.custom({
|
||||
type: "mekanism:combining",
|
||||
mainInput: { ingredient: first },
|
||||
extraInput: { ingredient: second },
|
||||
output: {
|
||||
item: output,
|
||||
count: qty,
|
||||
},
|
||||
});
|
||||
|
||||
evt.custom({
|
||||
type: "thermal:smelter",
|
||||
ingredients: [
|
||||
{ value: [first], count: 1 },
|
||||
{ value: [second], count: 1 },
|
||||
],
|
||||
result: [{ item: output, count: qty }],
|
||||
energy: 4800,
|
||||
});
|
||||
|
||||
evt.custom({
|
||||
type: "immersiveengineering:alloy",
|
||||
time: 400,
|
||||
input0: { base_ingredient: first },
|
||||
input1: second,
|
||||
result: { count: qty, base_ingredient: { item: output } },
|
||||
});
|
||||
|
||||
evt.custom({
|
||||
type: "create:mixing",
|
||||
ingredients: [first, second],
|
||||
results: [{ item: output, count: qty }],
|
||||
heatRequirement: "heated",
|
||||
});
|
||||
};
|
||||
|
||||
global.genLargeRecipe = (evt, pattern, key, result) => {
|
||||
["extendedcrafting:shaped_table", "create:mechanical_crafting"].forEach((type) => {
|
||||
evt.custom({ type: type, pattern: pattern, key: key, result: result });
|
||||
});
|
||||
};
|
||||
});
|
||||
|
|
|
|||
|
|
@ -26,76 +26,11 @@ const campfire = (event) => {
|
|||
|
||||
const crafting = (event) => {
|
||||
event.remove({ output: "create:andesite_alloy" });
|
||||
|
||||
// Combining
|
||||
event.custom({
|
||||
type: "mekanism:combining",
|
||||
mainInput: { ingredient: { tag: "chipped:andesite" } },
|
||||
extraInput: { ingredient: { tag: "forge:ingots/zinc" } },
|
||||
output: {
|
||||
item: "create:andesite_alloy",
|
||||
count: 2,
|
||||
},
|
||||
});
|
||||
|
||||
// Induction Smelter
|
||||
event.custom({
|
||||
type: "thermal:smelter",
|
||||
ingredients: [
|
||||
{
|
||||
value: [{ tag: "chipped:andesite" }],
|
||||
count: 1,
|
||||
},
|
||||
{
|
||||
value: [{ tag: "forge:ingots/zinc" }],
|
||||
count: 1,
|
||||
},
|
||||
],
|
||||
result: [
|
||||
{
|
||||
item: "create:andesite_alloy",
|
||||
count: 2,
|
||||
},
|
||||
],
|
||||
energy: 9600,
|
||||
});
|
||||
|
||||
// Alloy Kiln
|
||||
event.custom({
|
||||
type: "immersiveengineering:alloy",
|
||||
time: 400,
|
||||
input0: { base_ingredient: { tag: "chipped:andesite" } },
|
||||
input1: { tag: "forge:ingots/zinc" },
|
||||
result: { count: 2, base_ingredient: { item: "create:andesite_alloy" } },
|
||||
});
|
||||
|
||||
// Create Mixing
|
||||
event.custom({
|
||||
type: "create:mixing",
|
||||
ingredients: [{ tag: "chipped:andesite" }, { tag: "forge:ingots/zinc" }],
|
||||
results: [{ item: "create:andesite_alloy", count: 2 }],
|
||||
heatRequirement: "heated",
|
||||
});
|
||||
global.genAlloyingRecipe(event, { tag: "chipped:andesite" }, { tag: "forge:ingots/zinc" }, "create:andesite_alloy", 2);
|
||||
|
||||
event.custom({
|
||||
type: "natural-progression:damage_tools",
|
||||
ingredients: [
|
||||
{
|
||||
item: "minecraft:clay",
|
||||
},
|
||||
{
|
||||
tag: "forge:pebbles",
|
||||
},
|
||||
{
|
||||
tag: "forge:pebbles",
|
||||
},
|
||||
{
|
||||
item: "emendatusenigmatica:zinc_chunk",
|
||||
},
|
||||
{
|
||||
tag: "natural-progression:saw",
|
||||
},
|
||||
],
|
||||
ingredients: [{ item: "minecraft:clay" }, { tag: "forge:pebbles" }, { tag: "forge:pebbles" }, { item: "emendatusenigmatica:zinc_chunk" }, { tag: "natural-progression:saw" }],
|
||||
result: {
|
||||
item: "kubejs:crude_andesite_alloy",
|
||||
count: 1,
|
||||
|
|
|
|||
|
|
@ -0,0 +1,9 @@
|
|||
onEvent("recipes", (event) => {
|
||||
event.remove({ output: "betterendforge:end_stone_smelter" });
|
||||
event.remove({ output: "betterendforge:thallasium_ingot" });
|
||||
event.remove({ output: "betterendforge:terminite_ingot" });
|
||||
event.remove({ output: "betterendforge:aeternium_ingot" });
|
||||
|
||||
global.genAlloyingRecipe(event, { tag: "forge:ingots/iron" }, { tag: "forge:dusts/ender_pearl" }, `betterendforge:terminite_ingot`, 1);
|
||||
global.genAlloyingRecipe(event, { item: "betterendforge:terminite_ingot" }, { tag: "forge:ingots/netherite" }, `betterendforge:aeternium_ingot`, 1);
|
||||
});
|
||||
|
|
@ -35,10 +35,10 @@ onEvent("recipes", (event) => {
|
|||
processingTime: 200,
|
||||
});
|
||||
|
||||
event.custom({
|
||||
type: "create:mechanical_crafting",
|
||||
pattern: [" B ", "BCB", " B "],
|
||||
key: {
|
||||
global.genLargeRecipe(
|
||||
event,
|
||||
[" B ", "BCB", " B "],
|
||||
{
|
||||
B: {
|
||||
item: "immersiveengineering:waterwheel_segment",
|
||||
},
|
||||
|
|
@ -46,8 +46,18 @@ onEvent("recipes", (event) => {
|
|||
item: "create:large_cogwheel",
|
||||
},
|
||||
},
|
||||
result: {
|
||||
{
|
||||
item: "create:water_wheel",
|
||||
},
|
||||
});
|
||||
}
|
||||
);
|
||||
|
||||
event.replaceInput({ output: "steampowered:cast_iron_burner" }, "#forge:plates/iron", "#forge:plates/cast_iron");
|
||||
event.replaceInput({ output: "steampowered:cast_iron_boiler" }, "#forge:plates/iron", "#forge:plates/cast_iron");
|
||||
event.replaceInput({ output: "steampowered:cast_iron_steam_engine" }, "#forge:plates/iron", "#forge:plates/cast_iron");
|
||||
event.replaceInput({ output: "steampowered:cast_iron_steam_engine" }, "minecraft:iron_ingot", "#forge:ingots/cast_iron");
|
||||
event.replaceInput({ output: "steampowered:cast_iron_flywheel" }, "minecraft:iron_ingot", "#forge:ingots/cast_iron");
|
||||
|
||||
event.replaceInput({ output: "steampowered:cast_iron_cogwheel" }, "minecraft:iron_ingot", "#forge:ingots/cast_iron");
|
||||
event.replaceInput({ output: "steampowered:cast_iron_large_cogwheel" }, "minecraft:iron_ingot", "#forge:ingots/cast_iron");
|
||||
event.replaceInput({ output: "steampowered:cast_iron_large_cogwheel" }, "#forge:plates/iron", "#forge:plates/cast_iron");
|
||||
});
|
||||
|
|
|
|||
|
|
@ -0,0 +1,91 @@
|
|||
onEvent("recipes", (event) => {
|
||||
const modid = "draconicevolution";
|
||||
|
||||
event.replaceInput({ mod: modid }, "minecraft:ender_eye", "kubejs:ender_singularity");
|
||||
|
||||
// Draconium dust/ingot removal because there is no GOD
|
||||
event.remove({ output: `${modid}:draconium_dust` });
|
||||
event.remove({ id: `${modid}:components/draconium_ingot` });
|
||||
event.custom({
|
||||
type: "mekanism:nucleosynthesizing",
|
||||
itemInput: { ingredient: { item: "industrialforegoing:pink_slime_ingot" } },
|
||||
gasInput: { amount: 20, gas: "mekanism:antimatter" },
|
||||
output: { item: `${modid}:draconium_ingot` },
|
||||
duration: 10000,
|
||||
});
|
||||
|
||||
// Other recripes
|
||||
event.remove({ output: `${modid}:infused_obsidian` });
|
||||
global.genAlloyingRecipe(event, { item: `${modid}:draconium_ingot` }, { tag: "forge:obsidian" }, `${modid}:infused_obsidian`, 1);
|
||||
|
||||
event.remove({ output: `${modid}:potentiometer` });
|
||||
event.shaped(`1x ${modid}:potentiometer`, ["CPC", "RSR", "CRC"], {
|
||||
C: "projectred-core:plate",
|
||||
P: "projectred-core:pointer",
|
||||
S: "projectred-core:silicon_chip",
|
||||
R: "minecraft:redstone",
|
||||
});
|
||||
|
||||
event.remove({ output: `${modid}:dislocator` });
|
||||
event.shaped(`1x ${modid}:dislocator`, ["DPD", "PSP", "DPD"], {
|
||||
D: `${modid}:draconium_ingot`,
|
||||
P: "industrialforegoing:pink_slime_ingot",
|
||||
S: "kubejs:ender_singularity",
|
||||
});
|
||||
|
||||
event.remove({ output: `${modid}:module_core` });
|
||||
global.genCombinedRecipe(event, Ingredient.of("modularrouters:augment_core"), Ingredient.of(`${modid}:draconium_ingot`), Item.of(`${modid}:module_core`));
|
||||
|
||||
event.remove({ output: `${modid}:draconium_core` });
|
||||
global.genLargeRecipe(
|
||||
event,
|
||||
[
|
||||
"G D G",
|
||||
" G B B G ",
|
||||
" B B ",
|
||||
" B C C B ",
|
||||
"D R D",
|
||||
" B C C B ",
|
||||
" B B ",
|
||||
" G B B G ",
|
||||
"G D G"
|
||||
],
|
||||
{
|
||||
R: { item: `${modid}:draconium_ingot` },
|
||||
D: { item: "minecraft:diamond" },
|
||||
C: { tag: "forge:ingots/cobalt" },
|
||||
G: { tag: "forge:ingots/gold" },
|
||||
B: { item: "minecraft:dragon_breath" },
|
||||
},
|
||||
{
|
||||
item: `${modid}:draconium_core`,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
event.remove({ output: `${modid}:wyvern_core` });
|
||||
global.genLargeRecipe(
|
||||
event,
|
||||
[
|
||||
"G A G",
|
||||
" G D D G ",
|
||||
" D D ",
|
||||
" D C C D ",
|
||||
"A S A",
|
||||
" D C C D ",
|
||||
" D D ",
|
||||
" G D D G ",
|
||||
"G A G"
|
||||
],
|
||||
{
|
||||
S: { item: "minecraft:nether_star" },
|
||||
D: { item: "minecraft:diamond" },
|
||||
C: { item: `${modid}:draconium_core` },
|
||||
G: { item: `${modid}:draconium_ingot` },
|
||||
A: { item: "betterendforge:aeternium_ingot" },
|
||||
},
|
||||
{
|
||||
item: `${modid}:wyvern_core`,
|
||||
}
|
||||
);
|
||||
});
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
onEvent("recipes", (event) => {
|
||||
const modid = "extendedcrafting";
|
||||
event.remove({ mod: modid });
|
||||
|
||||
event.custom({
|
||||
type: "create:mechanical_crafting",
|
||||
pattern: ["CEEEC", "CCCCC", " NPN ", " NPN ", " NNN "],
|
||||
key: {
|
||||
C: { item: "create:mechanical_crafter" },
|
||||
E: { tag: "forge:storage_blocks/emerald" },
|
||||
N: { tag: "forge:ingots/netherite" },
|
||||
P: { item: "powah:capacitor_spirited" },
|
||||
},
|
||||
result: {
|
||||
item: `${modid}:ultimate_auto_table`,
|
||||
},
|
||||
});
|
||||
|
||||
event.shapeless(`1x ${modid}:handheld_table`, ["#forge:workbenches"]);
|
||||
});
|
||||
|
|
@ -64,10 +64,10 @@ onEvent("recipes", (event) => {
|
|||
global.genCombinedRecipeSewing(event, Ingredient.of(`6x ${modid}:hemp_fabric`), Ingredient.of(`${modid}:stick_treated`), Item.of(`${modid}:windmill_sail`), 1);
|
||||
global.genCombinedRecipeSewing(event, Ingredient.of(`${modid}:windmill_blade`), Ingredient.of(`${modid}:windmill_sail`), Item.of("kubejs:cloth_covered_windmill_blade"), 1);
|
||||
|
||||
event.custom({
|
||||
type: "create:mechanical_crafting",
|
||||
pattern: ["BBB", "BSB", "BBB"],
|
||||
key: {
|
||||
global.genLargeRecipe(
|
||||
event,
|
||||
["BBB", "BSB", "BBB"],
|
||||
{
|
||||
B: {
|
||||
item: "kubejs:cloth_covered_windmill_blade",
|
||||
},
|
||||
|
|
@ -75,15 +75,15 @@ onEvent("recipes", (event) => {
|
|||
tag: "forge:ingots/steel",
|
||||
},
|
||||
},
|
||||
result: {
|
||||
{
|
||||
item: `${modid}:windmill`,
|
||||
},
|
||||
});
|
||||
}
|
||||
);
|
||||
|
||||
event.custom({
|
||||
type: "create:mechanical_crafting",
|
||||
pattern: [" B ", "BSB", " B "],
|
||||
key: {
|
||||
global.genLargeRecipe(
|
||||
event,
|
||||
[" B ", "BSB", " B "],
|
||||
{
|
||||
B: {
|
||||
item: `${modid}:waterwheel_segment`,
|
||||
},
|
||||
|
|
@ -91,10 +91,10 @@ onEvent("recipes", (event) => {
|
|||
tag: "forge:ingots/steel",
|
||||
},
|
||||
},
|
||||
result: {
|
||||
{
|
||||
item: `${modid}:watermill`,
|
||||
},
|
||||
});
|
||||
}
|
||||
);
|
||||
|
||||
event.custom({
|
||||
type: "corail_woodcutter:woodcutting",
|
||||
|
|
|
|||
|
|
@ -5,6 +5,8 @@ onEvent("recipes", (event) => {
|
|||
event.remove({ output: `${modid}:latex_processing_unit` });
|
||||
event.remove({ output: `${modid}:machine_frame_pity` });
|
||||
event.remove({ output: `${modid}:plastic` });
|
||||
event.remove({ output: `${modid}:pink_slime_ingot` });
|
||||
event.remove({ output: `${modid}:pink_slime` });
|
||||
|
||||
event.shaped(`1x ${modid}:machine_frame_pity`, ["WPW", "PLP", "WPW"], {
|
||||
W: "#forge:dusts/wood",
|
||||
|
|
@ -27,4 +29,44 @@ onEvent("recipes", (event) => {
|
|||
item: `${modid}:plastic`,
|
||||
},
|
||||
});
|
||||
|
||||
event.custom({
|
||||
type: "thermal:chiller",
|
||||
ingredients: [
|
||||
{
|
||||
fluid: `${modid}:pink_slime`,
|
||||
amount: 1000,
|
||||
},
|
||||
{
|
||||
item: "thermal:chiller_ingot_cast",
|
||||
},
|
||||
],
|
||||
result: [
|
||||
{
|
||||
item: `${modid}:pink_slime_ingot`,
|
||||
count: 1,
|
||||
},
|
||||
],
|
||||
energy: 10000,
|
||||
});
|
||||
|
||||
event.custom({
|
||||
type: "thermal:chiller",
|
||||
ingredients: [
|
||||
{
|
||||
fluid: `${modid}:pink_slime`,
|
||||
amount: 300,
|
||||
},
|
||||
{
|
||||
item: "thermal:chiller_ball_cast",
|
||||
},
|
||||
],
|
||||
result: [
|
||||
{
|
||||
item: `${modid}:pink_slime`,
|
||||
count: 1,
|
||||
},
|
||||
],
|
||||
energy: 3333,
|
||||
});
|
||||
});
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ onEvent("recipes", (event) => {
|
|||
event.remove({ output: "mekanism:module_vision_enhancement_unit" });
|
||||
event.remove({ output: "mekanism:steel_casing" });
|
||||
event.remove({ output: "mekanism:teleportation_core" });
|
||||
event.remove({ output: "mekanism:cardboard_box" });
|
||||
|
||||
event.shaped("1x mekanism:teleportation_core", ["LAL", "GSG", "LAL"], {
|
||||
L: "#forge:gems/lapis",
|
||||
|
|
|
|||
|
|
@ -0,0 +1,5 @@
|
|||
onEvent("recipes", (event) => {
|
||||
event.remove({ output: "moreminecarts:silica_steel_mix" });
|
||||
event.remove({ output: "moreminecarts:silica_steel" });
|
||||
global.genAlloyingRecipe(event, { tag: "forge:ingots/steel" }, { tag: "forge:silicon" }, "moreminecarts:silica_steel", 2);
|
||||
});
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
onEvent("recipes", (event) => {
|
||||
const core = "projectred-core";
|
||||
|
||||
event.remove({ output: `${core}:boule` });
|
||||
event.remove({ output: `${core}:copper_coil` });
|
||||
event.remove({ output: `${core}:draw_plate` });
|
||||
event.remove({ output: `${core}:electrotine_ingot` });
|
||||
event.remove({ output: `${core}:electrotine_iron_comp` });
|
||||
event.remove({ output: `${core}:electrotine_silicon_comp` });
|
||||
event.remove({ output: `${core}:electrotine_silicon` });
|
||||
event.remove({ output: `${core}:energized_silicon` });
|
||||
event.remove({ output: `${core}:glow_silicon_comp` });
|
||||
event.remove({ output: `${core}:gold_coil` });
|
||||
event.remove({ output: `${core}:infused_silicon` });
|
||||
event.remove({ output: `${core}:iron_coil` });
|
||||
event.remove({ output: `${core}:motor` });
|
||||
event.remove({ output: `${core}:null_routing_chip` });
|
||||
event.remove({ output: `${core}:peridot` });
|
||||
event.remove({ output: `${core}:red_ingot` });
|
||||
event.remove({ output: `${core}:red_iron_comp` });
|
||||
event.remove({ output: `${core}:red_silicon_comp` });
|
||||
event.remove({ output: `${core}:ruby` });
|
||||
event.remove({ output: `${core}:sail` });
|
||||
event.remove({ output: `${core}:sand_coal_comp` });
|
||||
event.remove({ output: `${core}:sapphire` });
|
||||
event.remove({ output: `${core}:silicon` });
|
||||
event.remove({ output: `${core}:woven_cloth` });
|
||||
|
||||
global.genAlloyingRecipe(event, { item: "minecraft:iron_ingot" }, { item: "minecraft:redstone" }, `${core}:red_ingot`, 1);
|
||||
global.genAlloyingRecipe(event, { tag: "forge:silicon" }, { item: "minecraft:redstone" }, `${core}:infused_silicon`, 1);
|
||||
global.genAlloyingRecipe(event, { tag: "forge:silicon" }, { item: "minecraft:glowstone_dust" }, `${core}:energized_silicon`, 1);
|
||||
});
|
||||
37
kubejs/server_scripts/HarmoniousEngineering/recipes/qqp.js
Normal file
37
kubejs/server_scripts/HarmoniousEngineering/recipes/qqp.js
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
onEvent("recipes", (event) => {
|
||||
event.remove({ mod: "quantumquarryplus" });
|
||||
|
||||
global.genLargeRecipe(
|
||||
event,
|
||||
["GGGGGGG", "DDDDDDD", "DDDDDDD", "SSSESSS", "SSSSSSS", "SSSSSSS", "SSSSSSS"],
|
||||
{
|
||||
G: { item: "minecraft:grass_block" },
|
||||
D: { item: "minecraft:dirt" },
|
||||
S: { item: "minecraft:stone" },
|
||||
E: { item: "kubejs:ender_singularity" },
|
||||
},
|
||||
{
|
||||
item: "quantumquarryplus:earth_orb",
|
||||
}
|
||||
);
|
||||
|
||||
global.genLargeRecipe(
|
||||
event,
|
||||
["EEWWWWWEE", "EKK KKE", "WK NCN KW", "W NSSSN W", "W CSISC W", "W NSSSN W", "WK NCN KW", "EKK KKE", "EEWWWWWEE"],
|
||||
{
|
||||
E: { tag: "forge:storage_blocks/enderium" },
|
||||
S: { item: "kubejs:ender_singularity" },
|
||||
W: { item: "wormhole:portal_frame" },
|
||||
C: { item: "chickenchunks:spot_loader" },
|
||||
K: { item: "moreminecarts:chunkrodite" },
|
||||
I: { item: "industrialforegoing:infinity_drill" },
|
||||
N: { item: "minecraft:nether_star" },
|
||||
},
|
||||
{
|
||||
item: "quantumquarryplus:quantum_quarry_plus",
|
||||
}
|
||||
);
|
||||
|
||||
global.genCombinedRecipe(event, Ingredient.of("thermal:item_filter_augment"), Ingredient.of("kubejs:ender_singularity"), Item.of("quantumquarryplus:filter_upgrade"));
|
||||
global.genCombinedRecipe(event, Ingredient.of("thermal:fluid_tank_augment"), Ingredient.of("rangedpumps:pump"), Item.of("quantumquarryplus:pump_upgrade"));
|
||||
});
|
||||
|
|
@ -28,21 +28,8 @@ onEvent("recipes", (event) => {
|
|||
});
|
||||
|
||||
global.genCombinedRecipe(event, Ingredient.of("storagenetwork:master"), Ingredient.of("refinedstorage:advanced_processor"), Item.of("refinedstorage:controller"));
|
||||
event.custom({
|
||||
type: "mekanism:combining",
|
||||
mainInput: {
|
||||
ingredient: {
|
||||
item: "minecraft:iron_ingot",
|
||||
},
|
||||
},
|
||||
extraInput: {
|
||||
ingredient: {
|
||||
tag: "forge:dusts/quartz",
|
||||
},
|
||||
},
|
||||
output: {
|
||||
item: "refinedstorage:quartz_enriched_iron",
|
||||
count: 2,
|
||||
},
|
||||
});
|
||||
global.genAlloyingRecipe(event, { item: "minecraft:iron_ingot" }, { tag: "forge:dusts/quartz" }, "refinedstorage:quartz_enriched_iron", 2);
|
||||
|
||||
/* Cable Tiers */
|
||||
event.replaceInput({ mod: "cabletiers" }, "minecraft:dragon_head", "industrialforegoing:pink_slime_ingot");
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue