Make AE2 processors pressable.
This commit is contained in:
parent
7ad6f2490b
commit
bb9c8e1f66
6 changed files with 57 additions and 1 deletions
|
|
@ -3,5 +3,8 @@
|
|||
"item.kubejs.fluxed_singularity": "Fluxed Singularity",
|
||||
"item.kubejs.crude_andesite_alloy": "Crude Andesite Alloy",
|
||||
"item.kubejs.incomplete_redstone_servo": "Incomplete Redstone Servo",
|
||||
"item.kubejs.incomplete_rf_coil": "Incomplete RF Coil"
|
||||
"item.kubejs.incomplete_rf_coil": "Incomplete RF Coil",
|
||||
"item.kubejs.incomplete_logic_processor": "Incomplete Logic Processor",
|
||||
"item.kubejs.incomplete_engineering_processor": "Incomplete Engineering Processor",
|
||||
"item.kubejs.incomplete_calculation_processor": "Incomplete Calculation Processor"
|
||||
}
|
||||
|
|
|
|||
Binary file not shown.
|
After Width: | Height: | Size: 4.9 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 4.9 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 4.9 KiB |
|
|
@ -1,3 +1,39 @@
|
|||
const sequencedAssembly = (material, output) => {
|
||||
const press = `${output}_press`;
|
||||
const incomplete = `kubejs:incomplete_${output.replace('appliedenergistics2:', '')}`;
|
||||
return {
|
||||
type: 'create:sequenced_assembly',
|
||||
ingredient: {tag: 'forge:silicon'},
|
||||
transitionalItem: {item: incomplete},
|
||||
sequence: [
|
||||
{
|
||||
type: 'create:deploying',
|
||||
ingredients: [{item: incomplete}, {item: 'appliedenergistics2:silicon_press'}],
|
||||
results: [{item: incomplete}],
|
||||
keepHeldItem: true,
|
||||
},
|
||||
{
|
||||
type: 'create:deploying',
|
||||
ingredients: [{item: incomplete}, {item: 'minecraft:redstone'}],
|
||||
results: [{item: incomplete}],
|
||||
},
|
||||
{
|
||||
type: 'create:deploying',
|
||||
ingredients: [{item: incomplete}, {item: material}],
|
||||
results: [{item: incomplete}],
|
||||
},
|
||||
{
|
||||
type: 'create:deploying',
|
||||
ingredients: [{item: incomplete}, {item: press}],
|
||||
results: [{item: incomplete}],
|
||||
keepHeldItem: true,
|
||||
},
|
||||
],
|
||||
results: [{item: output, chance: 1.0}],
|
||||
loops: 1,
|
||||
};
|
||||
};
|
||||
|
||||
onEvent('recipes', event => {
|
||||
event.remove({output: 'appliedenergistics2:grindstone'});
|
||||
event.remove({output: 'appliedenergistics2:controller'});
|
||||
|
|
@ -96,6 +132,16 @@ onEvent('recipes', event => {
|
|||
'appliedenergistics2:facade',
|
||||
'appliedenergistics2:facade',
|
||||
]);
|
||||
|
||||
// Convenience recipe for AE2 circuits
|
||||
event.custom(sequencedAssembly('minecraft:gold_ingot', 'appliedenergistics2:logic_processor'));
|
||||
event.custom(sequencedAssembly('minecraft:diamond', 'appliedenergistics2:engineering_processor'));
|
||||
event.custom(
|
||||
sequencedAssembly(
|
||||
'appliedenergistics2:purified_certus_quartz_crystal',
|
||||
'appliedenergistics2:calculation_processor'
|
||||
)
|
||||
);
|
||||
});
|
||||
|
||||
/* Replaces all thrown certus with AE2 Certus */
|
||||
|
|
|
|||
|
|
@ -12,6 +12,13 @@ onEvent('item.registry', event => {
|
|||
.create('incomplete_rf_coil')
|
||||
.texture('kubejs:item/incomplete_rf_coil')
|
||||
.type('create:sequenced_assembly');
|
||||
|
||||
['logic', 'engineering', 'calculation'].forEach(x =>
|
||||
event
|
||||
.create(`incomplete_${x}_processor`)
|
||||
.texture(`kubejs:item/incomplete_${x}_processor`)
|
||||
.type('create:sequenced_assembly')
|
||||
);
|
||||
});
|
||||
|
||||
onEvent('item.modification', event => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue