Rod & Electrode Compat
This commit is contained in:
parent
69af6effbc
commit
d990a4a308
4 changed files with 152 additions and 133 deletions
|
|
@ -1,4 +1,145 @@
|
|||
const ieHammerRecipes = event => {
|
||||
onEvent('recipes', event => {
|
||||
const plates = () => {
|
||||
// Make plates universally craftable
|
||||
[
|
||||
'thermal:iron_plate',
|
||||
'thermal:gold_plate',
|
||||
'thermal:copper_plate',
|
||||
'thermal:netherite_plate',
|
||||
'thermal:tin_plate',
|
||||
'thermal:lead_plate',
|
||||
'thermal:silver_plate',
|
||||
'thermal:nickel_plate',
|
||||
'thermal:bronze_plate',
|
||||
'thermal:electrum_plate',
|
||||
'thermal:invar_plate',
|
||||
'thermal:constantan_plate',
|
||||
'thermal:signalum_plate',
|
||||
'thermal:lumium_plate',
|
||||
'thermal:enderium_plate',
|
||||
'create:brass_sheet',
|
||||
'immersiveengineering:plate_steel',
|
||||
'immersiveengineering:plate_aluminum',
|
||||
].forEach(x => {
|
||||
const ingot = x.split(':')[1].replace(/plate/g, '').replace(/sheet/g, '').replace(/_/g, '');
|
||||
event.remove({output: x});
|
||||
|
||||
event.recipes.thermal.press(x, `#forge:ingots/${ingot}`);
|
||||
event.recipes.createPressing(x, `#forge:ingots/${ingot}`);
|
||||
event.recipes.immersiveengineeringMetalPress(
|
||||
x,
|
||||
`#forge:ingots/${ingot}`,
|
||||
'immersiveengineering:mold_plate'
|
||||
);
|
||||
});
|
||||
};
|
||||
|
||||
const gears = () => {
|
||||
[
|
||||
'thermal:iron_gear',
|
||||
'thermal:gold_gear',
|
||||
'thermal:copper_gear',
|
||||
'thermal:netherite_gear',
|
||||
'thermal:tin_gear',
|
||||
'thermal:lead_gear',
|
||||
'thermal:silver_gear',
|
||||
'thermal:nickel_gear',
|
||||
'thermal:bronze_gear',
|
||||
'thermal:electrum_gear',
|
||||
'thermal:invar_gear',
|
||||
'thermal:constantan_gear',
|
||||
'thermal:signalum_gear',
|
||||
'thermal:lumium_gear',
|
||||
'thermal:enderium_gear',
|
||||
'pneumaticcraft:compressed_iron_gear',
|
||||
].forEach(x => {
|
||||
const ingot = x.split(':')[1].replace(/_gear/g, '');
|
||||
event.remove({output: x});
|
||||
|
||||
event.recipes.thermal.press(x, [`4x #forge:ingots/${ingot}`, 'thermal:press_gear_die']);
|
||||
event.recipes.immersiveengineeringMetalPress(
|
||||
x,
|
||||
`4x #forge:ingots/${ingot}`,
|
||||
'immersiveengineering:mold_gear'
|
||||
);
|
||||
});
|
||||
|
||||
[
|
||||
'thermal:diamond_gear',
|
||||
'thermal:lapis_gear',
|
||||
'thermal:emerald_gear',
|
||||
'thermal:quartz_gear',
|
||||
].forEach(x => event.remove({output: x}));
|
||||
|
||||
event.recipes.thermal.press('thermal:diamond_gear', [
|
||||
`4x minecraft:diamond`,
|
||||
'thermal:press_gear_die',
|
||||
]);
|
||||
|
||||
event.recipes.immersiveengineeringMetalPress(
|
||||
'thermal:diamond_gear',
|
||||
`4x minecraft:diamond`,
|
||||
'immersiveengineering:mold_gear'
|
||||
);
|
||||
};
|
||||
|
||||
const wires = () => {
|
||||
// Aluminum Wire in Thermal Multiservo Press
|
||||
event.recipes.thermal.press('2x immersiveengineering:wire_aluminum', [
|
||||
'#forge:ingots/aluminum',
|
||||
'immersiveengineering:mold_wire',
|
||||
]);
|
||||
|
||||
// Copper Wire in Thermal Multiservo Press
|
||||
event.recipes.thermal.press('2x immersiveengineering:wire_copper', [
|
||||
'#forge:ingots/copper',
|
||||
'immersiveengineering:mold_wire',
|
||||
]);
|
||||
|
||||
// Electrum Wire in Thermal Multiservo Press
|
||||
event.recipes.thermal.press('2x immersiveengineering:wire_electrum', [
|
||||
'#forge:ingots/electrum',
|
||||
'immersiveengineering:mold_wire',
|
||||
]);
|
||||
|
||||
// Lead Wire in Thermal Multiservo Press
|
||||
event.recipes.thermal.press('2x immersiveengineering:wire_lead', [
|
||||
'#forge:ingots/lead',
|
||||
'immersiveengineering:mold_wire',
|
||||
]);
|
||||
|
||||
// Steel Wire in Thermal Multiservo Press
|
||||
event.recipes.thermal.press('2x immersiveengineering:wire_steel', [
|
||||
'#forge:ingots/steel',
|
||||
'immersiveengineering:mold_wire',
|
||||
]);
|
||||
|
||||
// Bullet Casing in Thermal Multiservo Press
|
||||
event.recipes.thermal.press('2x immersiveengineering:empty_casing', [
|
||||
'#forge:ingots/copper',
|
||||
'immersiveengineering:mold_bullet_casing',
|
||||
]);
|
||||
};
|
||||
|
||||
const rods = () => {
|
||||
event.recipes.thermal.press(
|
||||
Item.of('immersiveengineering:graphite_electrode', '{graphDmg:0, Unbreakable:1}'),
|
||||
['4x #forge:ingots/hop_graphite', 'immersiveengineering:mold_rod']
|
||||
);
|
||||
|
||||
['iron', 'steel', 'aluminum'].forEach(metal => {
|
||||
event.recipes.thermal.press(Item.of(`2x immersiveengineering:stick_${metal}`), [
|
||||
`#forge:ingots/${metal}`,
|
||||
'immersiveengineering:mold_rod',
|
||||
]);
|
||||
});
|
||||
};
|
||||
|
||||
plates();
|
||||
gears();
|
||||
wires();
|
||||
rods();
|
||||
|
||||
[
|
||||
'hammercrushing_aluminum',
|
||||
'hammercrushing_ardite',
|
||||
|
|
@ -44,135 +185,6 @@ const ieHammerRecipes = event => {
|
|||
].forEach(recipe => {
|
||||
event.remove({id: `immersiveengineering:crafting/${recipe}`});
|
||||
});
|
||||
};
|
||||
|
||||
const plates = event => {
|
||||
// Make plates universally craftable
|
||||
[
|
||||
'thermal:iron_plate',
|
||||
'thermal:gold_plate',
|
||||
'thermal:copper_plate',
|
||||
'thermal:netherite_plate',
|
||||
'thermal:tin_plate',
|
||||
'thermal:lead_plate',
|
||||
'thermal:silver_plate',
|
||||
'thermal:nickel_plate',
|
||||
'thermal:bronze_plate',
|
||||
'thermal:electrum_plate',
|
||||
'thermal:invar_plate',
|
||||
'thermal:constantan_plate',
|
||||
'thermal:signalum_plate',
|
||||
'thermal:lumium_plate',
|
||||
'thermal:enderium_plate',
|
||||
'create:brass_sheet',
|
||||
'immersiveengineering:plate_steel',
|
||||
'immersiveengineering:plate_aluminum',
|
||||
].forEach(x => {
|
||||
const ingot = x.split(':')[1].replace(/plate/g, '').replace(/sheet/g, '').replace(/_/g, '');
|
||||
event.remove({output: x});
|
||||
|
||||
event.recipes.thermal.press(x, `#forge:ingots/${ingot}`);
|
||||
event.recipes.createPressing(x, `#forge:ingots/${ingot}`);
|
||||
event.recipes.immersiveengineeringMetalPress(
|
||||
x,
|
||||
`#forge:ingots/${ingot}`,
|
||||
'immersiveengineering:mold_plate'
|
||||
);
|
||||
});
|
||||
};
|
||||
|
||||
const gears = event => {
|
||||
[
|
||||
'thermal:iron_gear',
|
||||
'thermal:gold_gear',
|
||||
'thermal:copper_gear',
|
||||
'thermal:netherite_gear',
|
||||
'thermal:tin_gear',
|
||||
'thermal:lead_gear',
|
||||
'thermal:silver_gear',
|
||||
'thermal:nickel_gear',
|
||||
'thermal:bronze_gear',
|
||||
'thermal:electrum_gear',
|
||||
'thermal:invar_gear',
|
||||
'thermal:constantan_gear',
|
||||
'thermal:signalum_gear',
|
||||
'thermal:lumium_gear',
|
||||
'thermal:enderium_gear',
|
||||
'pneumaticcraft:compressed_iron_gear',
|
||||
].forEach(x => {
|
||||
const ingot = x.split(':')[1].replace(/_gear/g, '');
|
||||
event.remove({output: x});
|
||||
|
||||
event.recipes.thermal.press(x, [`4x #forge:ingots/${ingot}`, 'thermal:press_gear_die']);
|
||||
event.recipes.immersiveengineeringMetalPress(
|
||||
x,
|
||||
`4x #forge:ingots/${ingot}`,
|
||||
'immersiveengineering:mold_gear'
|
||||
);
|
||||
});
|
||||
|
||||
[
|
||||
'thermal:diamond_gear',
|
||||
'thermal:lapis_gear',
|
||||
'thermal:emerald_gear',
|
||||
'thermal:quartz_gear',
|
||||
].forEach(x => event.remove({output: x}));
|
||||
|
||||
event.recipes.thermal.press('thermal:diamond_gear', [
|
||||
`4x minecraft:diamond`,
|
||||
'thermal:press_gear_die',
|
||||
]);
|
||||
|
||||
event.recipes.immersiveengineeringMetalPress(
|
||||
'thermal:diamond_gear',
|
||||
`4x minecraft:diamond`,
|
||||
'immersiveengineering:mold_gear'
|
||||
);
|
||||
};
|
||||
|
||||
const wires = event => {
|
||||
// Aluminum Wire in Thermal Multiservo Press
|
||||
event.recipes.thermal.press('2x immersiveengineering:wire_aluminum', [
|
||||
'#forge:ingots/aluminum',
|
||||
'immersiveengineering:mold_wire',
|
||||
]);
|
||||
|
||||
// Copper Wire in Thermal Multiservo Press
|
||||
event.recipes.thermal.press('2x immersiveengineering:wire_copper', [
|
||||
'#forge:ingots/copper',
|
||||
'immersiveengineering:mold_wire',
|
||||
]);
|
||||
|
||||
// Electrum Wire in Thermal Multiservo Press
|
||||
event.recipes.thermal.press('2x immersiveengineering:wire_electrum', [
|
||||
'#forge:ingots/electrum',
|
||||
'immersiveengineering:mold_wire',
|
||||
]);
|
||||
|
||||
// Lead Wire in Thermal Multiservo Press
|
||||
event.recipes.thermal.press('2x immersiveengineering:wire_lead', [
|
||||
'#forge:ingots/lead',
|
||||
'immersiveengineering:mold_wire',
|
||||
]);
|
||||
|
||||
// Steel Wire in Thermal Multiservo Press
|
||||
event.recipes.thermal.press('2x immersiveengineering:wire_steel', [
|
||||
'#forge:ingots/steel',
|
||||
'immersiveengineering:mold_wire',
|
||||
]);
|
||||
|
||||
// Bullet Casing in Thermal Multiservo Press
|
||||
event.recipes.thermal.press('2x immersiveengineering:empty_casing', [
|
||||
'#forge:ingots/copper',
|
||||
'immersiveengineering:mold_bullet_casing',
|
||||
]);
|
||||
};
|
||||
|
||||
onEvent('recipes', event => {
|
||||
ieHammerRecipes(event);
|
||||
plates(event);
|
||||
gears(event);
|
||||
wires(event);
|
||||
|
||||
// Bottler compatibility to make Treated Planks easier
|
||||
event.custom({
|
||||
|
|
|
|||
|
|
@ -53,6 +53,7 @@ onEvent('item.tags', event => {
|
|||
|
||||
event.add('thermal:crafting/dies', 'immersiveengineering:mold_wire');
|
||||
event.add('thermal:crafting/dies', 'immersiveengineering:mold_bullet_casing');
|
||||
event.add('thermal:crafting/dies', 'immersiveengineering:mold_rod');
|
||||
event.add('forge:dusts/calorite', 'kubejs:calorite_dust');
|
||||
event.add('forge:dusts/desh', 'kubejs:desh_dust');
|
||||
event.add('forge:dusts/ostrum', 'kubejs:ostrum_dust');
|
||||
|
|
|
|||
|
|
@ -27,6 +27,12 @@ onEvent('recipes', event => {
|
|||
`4x #forge:ingots/hop_graphite`,
|
||||
'immersiveengineering:mold_rod'
|
||||
);
|
||||
event.custom({
|
||||
type: 'immersiveengineering:blueprint',
|
||||
inputs: [{count: 4, base_ingredient: {tag: 'forge:ingots/hop_graphite'}}],
|
||||
category: 'electrode',
|
||||
result: {item: 'immersiveengineering:graphite_electrode', nbt: '{graphDmg:0, Unbreakable:1}'},
|
||||
});
|
||||
|
||||
event.remove({output: 'immersiveengineering:hammer'});
|
||||
event.shaped('kubejs:crude_hammer', [' A ', 'ASA', 'SA '], {
|
||||
|
|
|
|||
|
|
@ -113,9 +113,9 @@ onEvent('recipes', event => {
|
|||
|
||||
// Induction Smelter
|
||||
fromTemplate(Item.of('thermal:machine_smelter'), [
|
||||
Item.of('immersiveengineering:graphite_electrode'),
|
||||
Item.of('immersiveengineering:graphite_electrode'),
|
||||
Item.of('immersiveengineering:graphite_electrode'),
|
||||
Item.of('immersiveengineering:graphite_electrode', '{graphDmg:0, Unbreakable:1}'),
|
||||
Item.of('immersiveengineering:graphite_electrode', '{graphDmg:0, Unbreakable:1}'),
|
||||
Item.of('immersiveengineering:graphite_electrode', '{graphDmg:0, Unbreakable:1}'),
|
||||
Item.of('immersiveengineering:alloybrick'),
|
||||
Item.of('immersiveengineering:heavy_engineering'),
|
||||
Item.of('immersiveengineering:alloybrick'),
|
||||
|
|
|
|||
Loading…
Reference in a new issue