Powersuits, Draconium Improvements and Packaged Auto!

This commit is contained in:
oitsjustjose 2022-05-07 21:32:36 -05:00
commit e5a07d0d82
39 changed files with 434 additions and 206 deletions

View file

@ -148,7 +148,7 @@ onEvent('server.datapack.first', _ => {
* @param {IngredientJS} right
* @param {ItemStackJS} output
*/
global.genCombinedRecipe = (evt, left, right, output) => {
global.genSmithingRecipe = (evt, left, right, output) => {
evt.smithing(output, left, right);
evt.recipes.custommachinery
.custom_machine('harmeng:auto_smither', 85)

View file

@ -40,21 +40,21 @@ onEvent('recipes', event => {
S: 'kubejs:fluxed_singularity',
});
global.genCombinedRecipe(
global.genSmithingRecipe(
event,
Ingredient.of('storagenetwork:master'),
Ingredient.of('#forge:gems/fluix'),
Item.of('appliedenergistics2:energy_acceptor')
);
global.genCombinedRecipe(
global.genSmithingRecipe(
event,
Ingredient.of('appliedenergistics2:energy_acceptor'),
Ingredient.of('appliedenergistics2:engineering_processor'),
Item.of('appliedenergistics2:controller')
);
global.genCombinedRecipe(
global.genSmithingRecipe(
event,
Ingredient.of('create:mechanical_press'),
Ingredient.of('appliedenergistics2:purified_fluix_crystal'),

View file

@ -14,14 +14,14 @@ onEvent('recipes', event => {
onetwentyeight: 'appliedenergistics2:128_cubed_spatial_cell_component',
};
global.genCombinedRecipe(
global.genSmithingRecipe(
event,
Ingredient.of('immersiveengineering:sheetmetal_lead'),
Ingredient.of('minecraft:ender_pearl'),
Item.of('8x compactmachines:wall')
);
global.genCombinedRecipe(
global.genSmithingRecipe(
event,
Ingredient.of(spatialCells.two),
Ingredient.of('rftoolsbase:information_screen'),

View file

@ -81,13 +81,13 @@ onEvent('recipes', event => {
event.shapeless('1x create:white_sail', ['create:sail_frame', '#chipped:white_carpet']);
global.genCombinedRecipe(
global.genSmithingRecipe(
event,
Ingredient.of('create:andesite_casing'),
Ingredient.of('immersiveengineering:rockcutter'),
Item.of('create:mechanical_saw')
);
global.genCombinedRecipe(
global.genSmithingRecipe(
event,
Ingredient.of('create:andesite_casing'),
Ingredient.of('thermal:drill_head'),

View file

@ -3,28 +3,28 @@ onEvent('recipes', event => {
event.remove({mod: 'dankstorage'});
// event.remove({output: "dankstorage:dock"})
global.genCombinedRecipe(
global.genSmithingRecipe(
event,
Ingredient.of('thermal:machine_frame'),
Ingredient.of('create:portable_storage_interface'),
Item.of('dankstorage:dock')
);
global.genCombinedRecipe(
global.genSmithingRecipe(
event,
Ingredient.of('create:andesite_casing'),
Ingredient.of('#harmeng:drawer_like'),
Item.of('dankstorage:dank_3')
);
global.genCombinedRecipe(
global.genSmithingRecipe(
event,
Ingredient.of('industrialforegoing:pity_black_hole_unit'),
Ingredient.of('kubejs:ender_singularity'),
Item.of('dankstorage:dank_4')
);
global.genCombinedRecipe(
global.genSmithingRecipe(
event,
Ingredient.of('industrialforegoing:supreme_black_hole_unit'),
Ingredient.of('minecraft:nether_star'),

View file

@ -1,14 +1,14 @@
onEvent('recipes', event => {
event.remove({mod: 'demagnetize'});
global.genCombinedRecipe(
global.genSmithingRecipe(
event,
Ingredient.of('thermal:machine_frame'),
Ingredient.of('thermal:flux_magnet'),
Item.of('demagnetize:demagnetizer')
);
global.genCombinedRecipe(
global.genSmithingRecipe(
event,
Ingredient.of('demagnetize:demagnetizer'),
Ingredient.of('modularrouters:range_up_augment'),

View file

@ -23,8 +23,6 @@ onEvent('recipes', event => {
Fluid.of('industrialforegoing:ether_gas', 1000),
]);
console.log(JSON.stringify(event.recipes.thermal.brewer));
event.recipes.custommachinery
.custom_machine('harmeng:fluid_injector', 100)
.requireItem(Item.of('industrialforegoing:pink_slime_ingot'))
@ -32,6 +30,27 @@ onEvent('recipes', event => {
.requireEnergyPerTick(5000)
.produceItem(Item.of(`${modid}:draconium_ingot`));
// Once you have some Draconic, make it *slightly* easier
event.custom({
type: `${modid}:fusion_crafting`,
result: {item: `${modid}:draconium_ingot`, count: 12},
catalyst: {
items: [{item: 'industrialforegoing:pink_slime_ingot'}],
count: 12,
type: 'draconicevolution:ingredient_stack',
},
total_energy: 5000000,
tier: 'DRACONIUM',
ingredients: [
{item: 'industrialforegoing:ether_gas_bucket'},
{item: 'minecraft:dragon_breath'},
{item: 'quark:dragon_scale'},
{item: 'minecraft:dragon_breath'},
{item: 'industrialforegoing:ether_gas_bucket'},
{item: 'minecraft:dragon_breath'},
],
});
// Other recripes
event.remove({output: `${modid}:infused_obsidian`});
global.genUniversalAlloyingRecipe(
@ -58,7 +77,7 @@ onEvent('recipes', event => {
});
event.remove({output: `${modid}:module_core`});
global.genCombinedRecipe(
global.genSmithingRecipe(
event,
Ingredient.of('modularrouters:augment_core'),
Ingredient.of(`${modid}:draconium_ingot`),

View file

@ -1,6 +1,6 @@
onEvent('recipes', event => {
event.remove({output: 'entangled:block'});
global.genCombinedRecipe(
global.genSmithingRecipe(
event,
Ingredient.of('thermal:machine_frame'),
Ingredient.of('kubejs:ender_singularity'),

View file

@ -2,19 +2,17 @@ onEvent('recipes', event => {
const modid = 'extendedcrafting';
event.remove({mod: modid});
event.custom({
type: 'create:mechanical_crafting',
pattern: ['CEEEC', 'CCCCC', ' NPN ', ' NPN ', ' NNN '],
key: {
global.genLargeRecipe(
event,
['SCCCS', 'SSSSS', ' SHS ', ' SHS ', ' EEE '],
{
C: {item: 'create:mechanical_crafter'},
E: {tag: 'forge:storage_blocks/emerald'},
N: {tag: 'forge:ingots/netherite'},
P: {item: 'powah:capacitor_spirited'},
S: {tag: 'forge:ingots/steel'},
H: {item: 'mekanism:hdpe_sheet'},
E: {item: 'minecraft:emerald_block'},
},
result: {
item: `${modid}:ultimate_auto_table`,
},
});
{item: `${modid}:ultimate_auto_table`}
);
event.shapeless(`1x ${modid}:handheld_table`, ['#forge:workbenches']);
});

View file

@ -31,7 +31,7 @@ onEvent('recipes', event => {
event.remove({output: `${modid}:hemp_fabric`});
event.remove({output: `${modid}:windmill_sail`});
global.genCombinedRecipe(
global.genSmithingRecipe(
event,
Ingredient.of('createdeco:dean_bricks'),
Ingredient.of('minecraft:sandstone'),

View file

@ -9,7 +9,7 @@ onEvent('recipes', event => {
event.stonecutting(`2x ${modid}:augment_core`, 'mekanism:module_base');
event.stonecutting(`4x ${modid}:blank_upgrade`, 'mekanism:module_base');
global.genCombinedRecipe(
global.genSmithingRecipe(
event,
Ingredient.of('industrialforegoing:machine_frame_simple'),
Ingredient.of(`${modid}:blank_module`),

View file

@ -0,0 +1,178 @@
const base = event => {
event.remove({output: 'powersuits:powerarmor_head'});
event.remove({output: 'powersuits:powerarmor_torso'});
event.remove({output: 'powersuits:powerarmor_legs'});
event.remove({output: 'powersuits:powerarmor_feet'});
event.remove({output: 'powersuits:powerfist'});
event.remove({output: 'powersuits:tinkertable'});
event.shaped('powersuits:powerarmor_head', ['PPP', 'CHC'], {
C: 'powah:capacitor_niotic',
H: 'redstone_arsenal:flux_helmet',
P: 'mekanism:hdpe_sheet',
});
event.shaped('powersuits:powerarmor_torso', ['P P', 'CHC', 'PPP'], {
C: 'powah:capacitor_niotic',
H: 'redstone_arsenal:flux_chestplate',
P: 'mekanism:hdpe_sheet',
});
event.shaped('powersuits:powerarmor_legs', ['PHP', 'C C', 'P P'], {
C: 'powah:capacitor_niotic',
H: 'redstone_arsenal:flux_leggings',
P: 'mekanism:hdpe_sheet',
});
event.shaped('powersuits:powerarmor_feet', ['CHC', 'P P'], {
C: 'powah:capacitor_niotic',
H: 'redstone_arsenal:flux_boots',
P: 'mekanism:hdpe_sheet',
});
event.shaped('powersuits:powerfist', ['DHS'], {
D: 'thermal:flux_drill',
H: 'create:brass_hand',
S: 'thermal:flux_saw',
});
event.shaped('powersuits:tinkertable', ['LLL', 'HTH', 'H H'], {
L: 'numina:component_laser_emitter',
T: 'thermal:tinker_bench',
H: 'mekanism:hdpe_rod',
});
};
const shields = event => {
event.remove({output: 'powersuits:plating_iron'});
global.genSmithingRecipe(
event,
Ingredient.of('#forge:plates/iron'),
Ingredient.of('thermal:upgrade_augment_1'),
Item.of('powersuits:plating_iron')
);
event.remove({output: 'powersuits:plating_diamond'});
global.genSmithingRecipe(
event,
Ingredient.of('#forge:plates/diamond'),
Ingredient.of('thermal:upgrade_augment_2'),
Item.of('powersuits:plating_diamond')
);
event.remove({output: 'powersuits:energy_shield'});
event.shaped('powersuits:energy_shield', ['PTP', 'HDH', 'PTP'], {
D: 'powersuits:plating_diamond',
P: '#forge:plates/enderium',
T: 'mekanism:teleportation_core',
H: 'mekanism:hdpe_sheet',
});
};
const numina = event => {
// Replace wiring recipe with signalum
event.remove({output: 'numina:component_wiring'});
event.custom({
type: 'thermal:press',
ingredients: [{tag: 'forge:ingots/signalum'}, {item: 'immersiveengineering:mold_wire'}],
result: [{item: 'numina:component_wiring', count: 8}],
});
event.custom({
type: 'immersiveengineering:metal_press',
mold: {item: 'immersiveengineering:mold_wire'},
input: {base_ingredient: {tag: 'forge:ingots/signalum'}},
result: {item: 'numina:component_wiring', count: 6},
energy: 4800,
});
event.remove({output: 'numina:component_solenoid'});
event.custom({
type: 'thermal:press',
ingredients: [{item: 'numina:component_wiring', count: 2}, {tag: 'forge:rods/iron'}],
result: [{item: 'numina:component_solenoid'}],
});
event.remove({output: 'numina:component_control_circuit'});
global.genSmithingRecipe(
event,
Ingredient.of('#forge:circuits/basic'),
Ingredient.of('thermal:upgrade_augment_1'),
item.of('numina:component_control_circuit')
);
event.remove({output: 'numina:component_field_emitter'});
event.shaped('numina:component_field_emitter', ['HEH', 'SMS', 'HEH'], {
E: 'kubejs:ender_singularity',
H: 'mekanism:hdpe_sheet',
M: 'thermal:flux_magnet',
S: 'numina:component_solenoid',
});
event.remove({output: 'numina:component_glider_wing'});
event.shaped('numina:component_glider_wing', [' PP', 'PPH', 'P '], {
H: 'mekanism:hdpe_sheet',
P: '#forge:plates/steel',
});
event.remove({output: 'numina:component_carbon_myofiber'});
event.custom({
type: 'mekanism:metallurgic_infusing',
itemInput: {ingredient: {item: 'minecraft:string'}},
infusionInput: {amount: 10, tag: 'mekanism:carbon'},
output: {item: 'numina:component_carbon_myofiber'},
});
event.remove({output: 'numina:component_magnet'});
event.shaped('numina:component_magnet', [' M ', ' S ', 'PPP'], {
M: 'thermal:flux_magnet',
P: '#forge:plates/steel',
S: 'numina:component_solenoid',
});
event.replaceInput(
{output: 'numina:component_computer_chip'},
'minecraft:daylight_detector',
'appliedenergistics2:logic_processor'
);
event.replaceInput(
{output: 'numina:component_computer_chip'},
'minecraft:daylight_detector',
'appliedenergistics2:logic_processor'
);
event.remove({output: 'numina:component_parachute'});
event.remove({output: 'numina:component_myofiber_gel'});
};
onEvent('recipes', event => {
base(event);
shields(event);
numina(event);
event.replaceInput(
{output: 'powersuits:parachute'},
'numina:component_parachute',
'immersiveengineering:windmill_sail'
);
event.replaceInput(
{mod: 'powersuits'},
'numina:component_rubber_hose',
'numina:component_carbon_myofiber'
);
event.replaceInput(
{mod: 'numina'},
'numina:component_rubber_hose',
'numina:component_carbon_myofiber'
);
event.remove({output: 'powersuits:fluid_tank'});
global.genSmithingRecipe(
event,
Ingredient.of('#harmeng:basic_tank'),
Ingredient.of('numina:component_control_circuit'),
Item.of('powersuits:fluid_tank')
);
// Disable Solar Generation / Power -- maybe? If not use Mek Solar Panel Item
event.remove({output: 'numina:component_artificial_muscle'});
event.remove({output: 'numina:component_solar_panel'});
event.remove({output: 'powersuits:generator_solar'});
event.remove({output: 'powersuits:generator_solar_adv'});
});

View file

@ -0,0 +1,71 @@
const ae2 = 'appliedenergistics2';
const main = event => {
const modid = 'packagedauto';
event.remove({mod: modid});
event.shaped(`${modid}:encoder`, ['FPF', 'TUT', 'ICI'], {
P: `${ae2}:pattern_terminal`,
U: `${ae2}:crafting_unit`,
T: '#forge:workbenches',
F: 'minecraft:furnace',
I: '#forge:ingots/iron',
C: '#forge:chests/wooden',
});
event.shaped(`${modid}:crafter`, ['III', 'EME', 'III'], {
I: `#${ae2}:interface`,
M: `${ae2}:molecular_assembler`,
E: `${ae2}:engineering_processor`,
});
global.genSmithingRecipe(
event,
Ingredient.of(`${ae2}:blank_pattern`),
Ingredient.of('mekanism:cardboard_box'),
Item.of('2x packagedauto:recipe_holder')
);
// packager: export bus
event.shaped(`${modid}:packager`, ['QTQ', 'CUC', 'QIQ'], {
C: `${ae2}:calculation_processor`,
I: `${ae2}:export_bus`,
Q: `${ae2}:quartz_fiber`,
U: `${ae2}:formation_core`,
T: '#forge:workbenches',
});
// unpackager: import bus
event.shaped(`${modid}:unpackager`, ['QTQ', 'CUC', 'QIQ'], {
C: `${ae2}:logic_processor`,
I: `${ae2}:import_bus`,
Q: `${ae2}:quartz_fiber`,
U: `${ae2}:annihilation_core`,
T: 'minecraft:hopper',
});
};
const ex = event => {
const modid = 'packagedexcrafting';
[
'basic_crafter',
'advanced_crafter',
'elite_crafter',
'ender_crafter',
'combination_crafter',
'marked_pedestal',
'ultimate_crafter',
].forEach(x => event.remove({output: `${modid}:${x}`}));
global.genSmithingRecipe(
event,
Ingredient.of('packagedauto:crafter'),
Ingredient.of('extendedcrafting:ultimate_auto_table'),
Item.of(`${modid}:ultimate_crafter`)
);
};
onEvent('recipes', event => {
ex(event);
main(event);
});

View file

@ -89,7 +89,7 @@ onEvent('recipes', event => {
result: [{item: 'powah:dielectric_rod', count: 24}],
});
global.genCombinedRecipe(
global.genSmithingRecipe(
event,
Ingredient.of('thermal:machine_frame'),
Ingredient.of('powah:dielectric_paste'),
@ -110,7 +110,7 @@ onEvent('recipes', event => {
const currReactor = `powah:reactor_${tier}`;
const nextReactor = `powah:reactor_${nextTier}`;
global.genCombinedRecipe(
global.genSmithingRecipe(
event,
Ingredient.of(currReactor),
Ingredient.of(nextCapacitor),
@ -119,7 +119,7 @@ onEvent('recipes', event => {
const currRod = `powah:energizing_rod_${tier}`;
const nextRod = `powah:energizing_rod_${nextTier}`;
global.genCombinedRecipe(
global.genSmithingRecipe(
event,
Ingredient.of(currRod),
Ingredient.of(nextCapacitor),
@ -128,7 +128,7 @@ onEvent('recipes', event => {
}
});
global.genCombinedRecipe(
global.genSmithingRecipe(
event,
Ingredient.of('powah:energizing_rod_starter'),
Ingredient.of('powah:capacitor_basic_large'),

View file

@ -42,13 +42,13 @@ onEvent('recipes', event => {
}
);
global.genCombinedRecipe(
global.genSmithingRecipe(
event,
Ingredient.of('thermal:item_filter_augment'),
Ingredient.of('kubejs:ender_singularity'),
Item.of('quantumquarryplus:filter_upgrade')
);
global.genCombinedRecipe(
global.genSmithingRecipe(
event,
Ingredient.of('thermal:fluid_tank_augment'),
Ingredient.of('mekanism:electric_pump'),

View file

@ -28,8 +28,8 @@ onEvent('recipes', event => {
const l2 = store === 'chest' && wood !== 'oak' && Ingredient.of(`quark:${wood}_chest`);
const r = Ingredient.of('minecraft:iron_ingot');
const o = Item.of(`storage_overhaul:${wood}_${store}_tier_1`);
l1 && global.genCombinedRecipe(event, l1, r, o);
l2 && global.genCombinedRecipe(event, l2, r, o);
l1 && global.genSmithingRecipe(event, l1, r, o);
l2 && global.genSmithingRecipe(event, l2, r, o);
});
tiers.forEach((tier, idx) => {
@ -38,7 +38,7 @@ onEvent('recipes', event => {
const l = Ingredient.of(`storage_overhaul:${wood}_${store}${tier}`);
const r = Ingredient.of(tierItems[idx + 1]);
const o = Item.of(`storage_overhaul:${wood}_${store}${tiers[idx + 1]}`);
global.genCombinedRecipe(event, l, r, o);
global.genSmithingRecipe(event, l, r, o);
});
}
});
@ -46,7 +46,7 @@ onEvent('recipes', event => {
// Support for making advanced shulkers with dye
global.minecraftColors.forEach(color => {
global.genCombinedRecipe(
global.genSmithingRecipe(
event,
Ingredient.of(`minecraft:${color}_shulker_box`),
Ingredient.of('#forge:ingots/iron'),
@ -55,14 +55,14 @@ onEvent('recipes', event => {
});
// Catch-all for upgrading non-supported chests/barrels to Tier 1.
global.genCombinedRecipe(
global.genSmithingRecipe(
event,
Ingredient.of('minecraft:chest'),
Ingredient.of('#forge:ingots/iron'),
Item.of('storage_overhaul:oak_chest_tier_1')
);
global.genCombinedRecipe(
global.genSmithingRecipe(
event,
Ingredient.of('minecraft:barrel'),
Ingredient.of('#forge:ingots/iron'),

View file

@ -91,7 +91,7 @@ const createFramedDrawers = (event, plank) => {
onEvent('recipes', event => {
event.remove({output: 'storagedrawers:controller'});
global.genCombinedRecipe(
global.genSmithingRecipe(
event,
Ingredient.of('storagedrawers:controller_slave'),
Ingredient.of('mekanism:ultimate_control_circuit'),

View file

@ -1,5 +1,5 @@
onEvent('recipes', event => {
global.genCombinedRecipe(
global.genSmithingRecipe(
event,
Ingredient.of('thermal:machine_frame'),
Ingredient.of('#forge:ingots/enderium'),

View file

@ -7,39 +7,39 @@ onEvent('recipes', event => {
event.remove({output: 'wormhole:advanced_target_cell'});
event.remove({output: 'wormhole:coal_generator'});
global.genCombinedRecipe(
global.genSmithingRecipe(
event,
Ingredient.of('#forge:obsidian'),
Ingredient.of('#forge:ingots/steel'),
Item.of('2x wormhole:portal_frame')
);
global.genCombinedRecipe(
global.genSmithingRecipe(
event,
Ingredient.of('wormhole:portal_frame'),
Ingredient.of('kubejs:ender_singularity'),
Item.of('wormhole:portal_stabilizer')
);
global.genCombinedRecipe(
global.genSmithingRecipe(
event,
Ingredient.of('wormhole:portal_frame'),
Ingredient.of('thermal:energy_cell'),
Item.of('wormhole:basic_energy_cell')
);
global.genCombinedRecipe(
global.genSmithingRecipe(
event,
Ingredient.of('wormhole:basic_energy_cell'),
Ingredient.of('thermal:energy_cell'),
Item.of('wormhole:advanced_energy_cell')
);
global.genCombinedRecipe(
global.genSmithingRecipe(
event,
Ingredient.of('wormhole:portal_frame'),
Ingredient.of('minecraft:compass'),
Item.of('wormhole:basic_target_cell')
);
global.genCombinedRecipe(
global.genSmithingRecipe(
event,
Ingredient.of('wormhole:basic_target_cell'),
Ingredient.of('appliedenergistics2:2_cubed_spatial_cell_component'),

View file

@ -3,7 +3,7 @@ onEvent('recipes', event => {
// Cables
cableVariants.forEach(x => event.remove({id: `xnet:netcable_${x}`}));
cableVariants.forEach(x =>
global.genCombinedRecipe(
global.genSmithingRecipe(
event,
Ingredient.of('pipez:universal_pipe'),
Ingredient.of(`#forge:dyes/${x === 'routing' ? 'black' : x}`),
@ -13,7 +13,7 @@ onEvent('recipes', event => {
// Connectors
cableVariants.forEach(x => event.remove({id: `xnet:connector_${x}`}));
cableVariants.forEach(x =>
global.genCombinedRecipe(
global.genSmithingRecipe(
event,
Ingredient.of(`xnet:netcable_${x}`),
Ingredient.of('#forge:ingots/gold'),
@ -23,7 +23,7 @@ onEvent('recipes', event => {
// Advanced Connectors
cableVariants.forEach(x => event.remove({id: `xnet:advanced_connector_${x}`}));
cableVariants.forEach(x =>
global.genCombinedRecipe(
global.genSmithingRecipe(
event,
Ingredient.of(`xnet:connector_${x}`),
Ingredient.of('#forge:ingots/cobalt'),