Initial commit with changes

This commit is contained in:
oitsjustjose 2022-06-22 11:53:31 -05:00
commit 98a6f01558
371 changed files with 16687 additions and 58 deletions

View file

@ -0,0 +1,14 @@
// Gate Early-game Create Behind PnC
onEvent('recipes', event => {
const CustomRecipeHandler = global.recipes(event);
event.remove({output: 'create:andesite_alloy'});
CustomRecipeHandler.pressurizing(
[
{type: 'pneumaticcraft:stacked_item', item: 'pneumaticcraft:ingot_iron_compressed', count: 1},
{type: 'pneumaticcraft:stacked_item', item: 'minecraft:andesite', count: 2},
],
[{item: 'create:andesite_alloy', count: 3}],
6.0
);
});

View file

@ -0,0 +1,37 @@
// Gate IE behind Create Contraptions
onEvent('recipes', event => {
event.remove({output: global.ie('hammer')});
event.shaped('kubejs:crude_hammer', [' A ', 'ASA', 'SA '], {
A: 'create:andesite_alloy',
S: 'minecraft:stick',
});
event.custom({
type: 'create:sequenced_assembly',
ingredient: {item: 'kubejs:crude_hammer'},
transitionalItem: {item: 'kubejs:incomplete_hammer'},
sequence: [
{
type: 'create:pressing',
ingredients: [{item: 'kubejs:incomplete_hammer'}],
results: [{item: 'kubejs:incomplete_hammer'}],
processingTime: 50,
},
{
type: 'create:pressing',
ingredients: [{item: 'kubejs:incomplete_hammer'}],
results: [{item: 'kubejs:incomplete_hammer'}],
processingTime: 50,
},
{
type: 'create:cutting',
ingredients: [{item: 'kubejs:incomplete_hammer'}],
results: [{item: 'kubejs:incomplete_hammer'}],
processingTime: 50,
},
],
results: [{item: global.ie('hammer')}],
loops: 2,
});
});

View file

@ -0,0 +1,12 @@
// Gate the Brass Age behind the IE Arc Furnace
onEvent('recipes', event => {
const CustomRecipeHandler = global.recipes(event);
event.remove({id: 'immersiveengineering:alloysmelter/brass'});
event.remove({id: 'create:mixing/brass_ingot'});
CustomRecipeHandler.warping(
Item.of('#forge:ingots/brass'),
Item.of('4x architects_palette:nether_brass_ingot')
);
});

View file

@ -0,0 +1,251 @@
// Gate Thermal behind IE and Brass Age
const Items = {
furnace: {item: 'minecraft:furnace'},
furnaceHeater: {item: 'immersiveengineering:furnace_heater'},
hopper: {item: 'minecraft:hopper'},
lightEngineering: {item: 'immersiveengineering:light_engineering'},
heavyEngineering: {item: 'immersiveengineering:heavy_engineering'},
machineFrame: {item: 'thermal:machine_frame'},
rsEngineering: {item: 'immersiveengineering:rs_engineering'},
steelFence: {item: 'immersiveengineering:steel_fence'},
steelScaffold: {tag: 'immersiveengineering:scaffoldings/steel'},
kilnBrick: {item: 'immersiveengineering:alloybrick'},
blastFurnace: {item: 'minecraft:blast_furnace'},
ironSheetmetal: {item: 'immersiveengineering:sheetmetal_iron'},
conveyor: {item: 'immersiveengineering:conveyor_basic'},
piston: {item: 'minecraft:piston'},
};
onEvent('recipes', event => {
const CustomRecipeHandler = global.recipes(event);
// Remove cheeky recipes for alloys
event.remove({input: 'minecraft:fire_charge', mod: 'thermal'});
// Pulverizer
event.remove({output: 'thermal:machine_pulverizer'});
CustomRecipeHandler.giant(
Item.of('thermal:machine_pulverizer'),
['SHHHS', 'RFCFL', 'SFFFL', 'SSLSL'],
{
C: Items.machineFrame,
F: Items.steelFence,
H: Items.hopper,
L: Items.lightEngineering,
R: Items.rsEngineering,
S: Items.steelScaffold,
}
);
// Redstone Furnace
event.remove({output: 'thermal:machine_furnace'});
CustomRecipeHandler.giant(
Item.of('thermal:machine_furnace'),
['ISBFI', 'IHCHI', 'IRHLI', 'IMMMI'],
{
B: Items.blastFurnace,
C: Items.machineFrame,
F: Items.furnace,
H: Items.furnaceHeater,
I: Items.steelScaffold,
L: Items.lightEngineering,
M: Items.ironSheetmetal,
R: Items.rsEngineering,
S: {item: 'minecraft:smoker'},
}
);
// Induction Smelter
event.remove({output: 'thermal:machine_smelter'});
CustomRecipeHandler.giant(
Item.of('thermal:machine_smelter'),
['SLRLS', 'SKFKS', 'SKKKS', 'SBBBS'],
{
B: Items.blastFurnace,
F: Items.machineFrame,
K: Items.kilnBrick,
L: Items.lightEngineering,
R: Items.rsEngineering,
S: Items.steelScaffold,
}
);
// Sawmill
event.remove({output: 'thermal:machine_sawmill'});
CustomRecipeHandler.giant(
Item.of('thermal:machine_sawmill'),
['SBBBS', 'SRFLS', 'SCCCS', 'SMMMS'],
{
B: {item: 'create:mechanical_saw'},
C: Items.conveyor,
F: Items.machineFrame,
L: Items.lightEngineering,
M: Items.ironSheetmetal,
R: Items.rsEngineering,
S: Items.steelScaffold,
}
);
// Phytogenic Insolator
event.remove({output: 'thermal:machine_insolator'});
CustomRecipeHandler.giant(
Item.of('thermal:machine_insolator'),
['SUUUS', 'SRFLS', 'SMCMS', 'SIIIS'],
{
C: {item: 'immersiveengineering:cloche'},
F: Items.machineFrame,
I: {item: 'farmersdelight:rich_soil'},
L: Items.lightEngineering,
M: Items.ironSheetmetal,
R: Items.rsEngineering,
S: Items.steelScaffold,
U: {tag: 'forge:ingots/lumium'},
}
);
// Multiservo Press
event.remove({output: 'thermal:machine_press'});
CustomRecipeHandler.giant(
Item.of('thermal:machine_press'),
['SPOPS', 'SRFLS', 'SDDDS', 'SMMMS'],
{
D: {item: 'create:depot'},
F: Items.machineFrame,
L: Items.lightEngineering,
M: Items.ironSheetmetal,
O: {item: 'create:mechanical_press'},
P: Items.piston,
R: Items.rsEngineering,
S: Items.steelScaffold,
}
);
// Fluid Encapsulator
event.remove({output: 'thermal:machine_bottler'});
CustomRecipeHandler.giant(
Item.of('thermal:machine_bottler'),
['SPPPS', 'SRFLS', 'SDDDS', 'SMMMS'],
{
D: {item: 'create:item_drain'},
F: Items.machineFrame,
L: Items.lightEngineering,
M: Items.ironSheetmetal,
P: {item: 'create:spout'},
R: Items.rsEngineering,
S: Items.steelScaffold,
}
);
// Centrifuge
event.remove({output: 'thermal:machine_centrifuge'});
CustomRecipeHandler.giant(
Item.of('thermal:machine_centrifuge'),
['STOTS', 'SRFLS', 'SGGGS', 'SMMMS'],
{
F: Items.machineFrame,
G: {item: 'pneumaticcraft:pressure_gauge'},
L: Items.lightEngineering,
M: Items.ironSheetmetal,
O: {item: 'create:rotation_speed_controller'},
R: Items.rsEngineering,
S: Items.steelScaffold,
T: {item: 'pneumaticcraft:vacuum_pump'},
}
);
// Blast Chiller
event.remove({output: 'thermal:machine_chiller'});
CustomRecipeHandler.giant(
Item.of('thermal:machine_chiller'),
['SIIIS', 'SRFLS', 'SEEES', 'SMMMS'],
{
E: {item: 'create:encased_fan'},
F: Items.machineFrame,
I: {item: 'minecraft:packed_ice'},
L: Items.lightEngineering,
M: {item: 'architects_palette:moonstone'},
R: Items.rsEngineering,
S: Items.steelScaffold,
}
);
// Magma Crucible
event.remove({output: 'thermal:machine_crucible'});
CustomRecipeHandler.giant(
Item.of('thermal:machine_crucible'),
['SIIIS', 'SRFLS', 'SEEES', 'SMMMS'],
{
E: {item: 'create:encased_fan'},
F: Items.machineFrame,
I: {item: 'minecraft:lava_bucket'},
L: Items.lightEngineering,
M: {item: 'architects_palette:sunstone'},
R: Items.rsEngineering,
S: Items.steelScaffold,
}
);
// Fractionating Still
event.remove({output: 'thermal:machine_refinery'});
CustomRecipeHandler.giant(
Item.of('thermal:machine_refinery'),
['SBABS', 'SRFLS', 'SHHHS', 'SMMMS'],
{
A: {item: 'pneumaticcraft:refinery'},
B: {item: 'pneumaticcraft:refinery_output'},
F: Items.machineFrame,
H: Items.heavyEngineering,
L: Items.lightEngineering,
M: Items.ironSheetmetal,
R: Items.rsEngineering,
S: Items.steelScaffold,
}
);
// Pyrolizer
event.remove({output: 'thermal:machine_pyrolyzer'});
CustomRecipeHandler.giant(
Item.of('thermal:machine_pyrolyzer'),
['SCCCS', 'SRFLS', 'SCCCS', 'SMMMS'],
{
C: {item: global.ie('cokebrick')},
F: Items.machineFrame,
L: Items.lightEngineering,
M: Items.ironSheetmetal,
R: Items.rsEngineering,
S: Items.steelScaffold,
}
);
// Imbuer
event.remove({output: 'thermal:machine_brewer'});
CustomRecipeHandler.giant(
Item.of('thermal:machine_brewer'),
['SXXXS', 'SRFLS', 'SBWBS', 'SMMMS'],
{
B: {item: 'create:basin'},
F: Items.machineFrame,
L: Items.lightEngineering,
M: Items.ironSheetmetal,
R: Items.rsEngineering,
S: Items.steelScaffold,
W: {item: 'minecraft:brewing_stand'},
X: {item: 'create:mechanical_mixer'},
}
);
// Crafter
event.remove({output: 'thermal:machine_crafter'});
CustomRecipeHandler.giant(
Item.of('thermal:machine_crafter'),
['SMMMS', 'SRFLS', 'SMMMS', 'SHHHS'],
{
F: Items.machineFrame,
H: Items.heavyEngineering,
L: Items.lightEngineering,
M: {item: 'create:mechanical_crafter'},
R: Items.rsEngineering,
S: Items.steelScaffold,
}
);
});

View file

@ -0,0 +1,227 @@
const pipez = event => {
event.remove({output: 'pipez:item_pipe'});
event.remove({output: 'pipez:fluid_pipe'});
event.remove({output: 'pipez:energy_pipe'});
event.shaped('24x pipez:item_pipe', ['PPP', 'GUG', 'PPP'], {
U: 'prettypipes:low_extraction_module',
P: 'prettypipes:pipe',
G: '#forge:glass/yellow',
});
event.shaped('24x pipez:fluid_pipe', ['PPP', 'GUG', 'PPP'], {
U: 'create:mechanical_pump',
P: 'create:fluid_pipe',
G: '#forge:glass/light_blue',
});
event.shaped('24x pipez:energy_pipe', ['PPP', 'GUG', 'PPP'], {
U: global.ie('connector_lv'),
P: global.ie('wirecoil_copper'),
G: '#forge:glass/red',
});
};
const fluxNetworks = event => {
event.replaceInput(
{output: 'fluxnetworks:flux_core'},
'minecraft:obsidian',
'architects_palette:unobtanium'
);
};
const xnet = event => {
event.replaceInput({mod: 'xnet'}, 'minecraft:gold_nugget', 'pipez:universal_pipe');
event.replaceInput({output: '#xnet:connectors'}, 'minecraft:gold_ingot', 'pipez:universal_pipe');
};
const tempad = event => {
event.remove({output: 'tempad:tempad'});
event.shaped('tempad:tempad', ['BBB', 'RSE', 'BBB'], {
B: 'architects_palette:nether_brass_ingot',
S: 'rftoolsbase:information_screen',
R: 'minecraft:redstone_lamp',
E: '#forge:dusts/ender_pearl',
});
};
const refinedStorage = event => {
event.remove({id: 'refinedstorage:quartz_enriched_iron'});
event.recipes.thermal.smelter(Item.of('4x refinedstorage:quartz_enriched_iron'), [
Item.of('3x #forge:ingots/iron'),
Item.of('#forge:dusts/quartz'),
]);
};
const routers = event => {
event.replaceInput({output: 'modularrouters:blank_module'}, 'minecraft:paper', '#forge:plastic');
event.replaceInput({output: 'modularrouters:blank_upgrade'}, 'minecraft:paper', '#forge:plastic');
event.replaceInput(
{output: 'modularrouters:modular_router'},
'minecraft:iron_ingot',
'architects_palette:unobtanium'
);
};
const enderChests = event => {
event.remove({mod: 'enderchests'});
event.shaped('enderchests:ender_chest', ['BWB', 'OCO', 'BEB'], {
B: 'minecraft:blaze_rod',
O: 'minecraft:obsidian',
E: '#forge:dusts/ender_pearl',
W: '#minecraft:wool',
C: 'expandedstorage:diamond_chest',
});
event.shaped('enderchests:ender_bag', ['BWB', 'OLO', 'BEB'], {
B: 'minecraft:blaze_powder',
O: 'create:powdered_obsidian',
E: '#forge:dusts/ender_pearl',
W: '#minecraft:wool',
L: '#forge:hides',
});
event.remove({mod: 'endertanks'});
event.shaped('endertanks:ender_tank', ['BWB', 'OTO', 'BEB'], {
B: 'minecraft:blaze_rod',
O: 'minecraft:obsidian',
E: '#forge:dusts/ender_pearl',
W: '#minecraft:wool',
T: 'moreminecarts:transport_tank',
});
event.shaped('endertanks:ender_bucket', ['BWB', 'OUO', 'BEB'], {
B: 'minecraft:blaze_powder',
O: 'create:powdered_obsidian',
E: '#forge:dusts/ender_pearl',
W: '#minecraft:wool',
U: 'minecraft:bucket',
});
};
const compactMachines = event => {
const CustomRecipeHandler = global.recipes(event);
event.remove({mod: 'compactmachines'});
CustomRecipeHandler.giant(Item.of('compactmachines:machine_tiny'), ['WWW', 'WPW', 'WWW'], {
W: {item: 'compactmachines:wall'},
P: {item: 'pneumaticcraft:vacuum_pump'},
});
CustomRecipeHandler.giant(
Item.of('compactmachines:machine_small'),
['WWWW', 'WPIW', 'WIPW', 'WWWW'],
{
W: {item: 'compactmachines:wall'},
I: {tag: 'forge:storage_blocks/iron'},
P: {item: 'pneumaticcraft:vacuum_pump'},
}
);
CustomRecipeHandler.giant(
Item.of('compactmachines:machine_normal'),
['WWWWW', 'WIPIW', 'WIPIW', 'WIPIW', 'WWWWW'],
{
W: {item: 'compactmachines:wall'},
I: {tag: 'forge:storage_blocks/gold'},
P: {item: 'pneumaticcraft:vacuum_pump'},
}
);
CustomRecipeHandler.giant(
Item.of('compactmachines:machine_large'),
['WWWWWW', 'WOOOOW', 'WOPPOW', 'WOPPOW', 'WOOOOW', 'WWWWWW'],
{
W: {item: 'compactmachines:wall'},
O: {item: 'minecraft:crying_obsidian'},
P: {item: 'pneumaticcraft:vacuum_pump'},
}
);
CustomRecipeHandler.giant(
Item.of('compactmachines:machine_giant'),
['WWWWWWW', 'WDDDDDW', 'WDPPPDW', 'WDFFFDW', 'WDPPPDW', 'WDDDDDW', 'WWWWWWW'],
{
W: {item: 'compactmachines:wall'},
D: {item: 'minecraft:diamond'},
F: {item: 'fluxnetworks:flux_dust'},
P: {item: 'pneumaticcraft:vacuum_pump'},
}
);
CustomRecipeHandler.giant(
Item.of('compactmachines:machine_maximum'),
[
'WWWWWWWW',
'WUUUUUUW',
'WUPPPPUW',
'WUPNNPUW',
'WUPNNPUW',
'WUPPPPUW',
'WUUUUUUW',
'WWWWWWWW',
],
{
W: {item: 'compactmachines:wall'},
U: {item: 'architects_palette:unobtanium'},
N: {tag: 'forge:ingots/netherite'},
P: {item: 'pneumaticcraft:vacuum_pump'},
}
);
event.smithing('compactmachines:wall', global.ie('sheetmetal_lead'), 'minecraft:ender_pearl');
event.smithing(
Item.of('compactmachines:tunnel', '{definition:{id:"compactmachines:item"}}'),
'entangled:block',
'pipez:item_pipe'
);
event.smithing(
Item.of('compactmachines:tunnel', '{definition:{id:"compactmachines:fluid"}}'),
'entangled:block',
'pipez:fluid_pipe'
);
event.smithing(
Item.of('compactmachines:tunnel', '{definition:{id:"compactmachines:energy"}}'),
'entangled:block',
'pipez:energy_pipe'
);
event.smithing(
'compactmachines:personal_shrinking_device',
'tempad:tempad',
'compactmachines:wall'
);
};
const supermartijn = event => {
event.remove({output: 'entangled:block'});
event.remove({output: 'tesseract:tesseract'});
event.shaped('entangled:block', ['LDL', 'ESE', 'LDL'], {
D: 'rftoolsbase:dimensionalshard',
E: 'minecraft:ender_pearl',
L: '#forge:ingots/lead',
S: '#immersiveengineering:scaffoldings/steel',
});
event.shaped('tesseract:tesseract', ['RUR', 'UEU', 'RUR'], {
E: 'entangled:block',
R: '#forge:ingots/enderium',
U: 'pipez:universal_pipe',
});
};
onEvent('recipes', event => {
compactMachines(event);
enderChests(event);
fluxNetworks(event);
pipez(event);
refinedStorage(event);
routers(event);
supermartijn(event);
tempad(event);
xnet(event);
});

View file

@ -0,0 +1,64 @@
const remove = event => {
// Remove Raw Ore -> Dusts and all Create Crushing Recipes
event.remove({input: '#forge:raw_materials', output: '#forge:dusts'});
event.remove({output: '#create:crushed_ores'});
global.metals.forEach(metal => {
event.remove({
type: 'minecraft:smelting',
output: `#forge:ingots/${metal}`,
});
event.remove({
type: 'minecraft:blasting',
output: `#forge:ingots/${metal}`,
});
event.remove({input: `#forge:ores/${metal}`, output: `#forge:dusts`});
event.remove({input: `#forge:storage_blocks/raw_${metal}`, output: `#forge:dusts`});
event.remove({id: `thermal:machines/smelter/smelter_raw_${metal}`});
event.remove({id: `immersiveengineering:crusher/raw_block_${metal}`});
event.remove({id: `immersiveengineering:crusher/raw_ore_${metal}`});
event.remove({id: `immersiveengineering:arcfurnace/raw_block_${metal}`});
});
};
const toNuggets = event => {
global.metals.forEach(metal => {
// Raw Ore to Nuggets
event.smelting(`3x #forge:nuggets/${metal}`, `#forge:raw_materials/${metal}`);
event.blasting(`4x #forge:nuggets/${metal}`, `#forge:raw_materials/${metal}`);
// Ore to Nuggets
event.smelting(`1x #forge:ingots/${metal}`, `#forge:ores/${metal}`);
event.blasting(`11x #forge:nuggets/${metal}`, `#forge:ores/${metal}`);
});
};
const toDust = event => {
global.metals.forEach(metal => {
const raw = `#forge:raw_materials/${metal}`;
const dust = `#forge:dusts/${metal}`;
const ore = `#forge:ores/${metal}`;
event.recipes.createCrushing([`2x ${dust}`], [ore]);
event.recipes.createCrushing([dust], [raw]);
event.recipes.immersiveengineeringCrusher(`2x ${dust}`, ore);
event.recipes.immersiveengineeringCrusher(dust, raw);
event.recipes.thermal.pulverizer(`2x ${dust}`, ore);
event.recipes.thermal.pulverizer(dust, raw);
});
};
const toIngots = event => {
global.metals.forEach(metal => {
event.smelting(`#forge:ingots/${metal}`, `#forge:dusts/${metal}`);
event.blasting(`#forge:ingots/${metal}`, `#forge:dusts/${metal}`);
});
};
onEvent('recipes', event => {
remove(event);
toNuggets(event);
toDust(event);
toIngots(event);
});

View file

@ -0,0 +1,3 @@
Recipes are **meant** to require you to leave your existing machinery up and running - there will be
no ease of use compatibility recipes added, so if you needed a machine to surpass a Gate, you'll
need it from then on.