Skip to content

Commit

Permalink
Merge pull request #2843 from NillerMedDild/develop
Browse files Browse the repository at this point in the history
0.5.8
  • Loading branch information
NielsPilgaard authored Jul 29, 2021
2 parents 35e5c9a + d8e4434 commit 22e3dcf
Show file tree
Hide file tree
Showing 5 changed files with 388 additions and 274 deletions.
4 changes: 2 additions & 2 deletions automation/settings.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ $MODPACK_NAME = "Enigmatica6"
$CLIENT_NAME = "Enigmatica6"

# Version Of The Modpack
$MODPACK_VERSION = "0.5.7"
$MODPACK_VERSION = "0.5.8"

# Last Version Of The Modpack
# Needed For Changelog Parsing
$LAST_MODPACK_VERSION = "0.5.6"
$LAST_MODPACK_VERSION = "0.5.7"

# =====================================================================//
# CHANGELOG SETTINGS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ onEvent('jei.information', (event) => {
return;
}
const recipes = [
{
items: ['tiab:timeinabottle'],
description: ['Any Potion can be used for crafting this.']
},
{
items: ['bloodmagic:soulpickaxe'],
description: ['Capable of mining Iesnium.']
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
onEvent('recipes', (event) => {
const recipes = [
/*{
input: 'input_item_here',
output: [
Item.of('6x create:large_cogwheel').withChance(32.0), //withChance sets a weight for the output, default is 1 without it
Item.of('secondary_outputs').withChance(2.0),
, 'more_secondaries_with_weight_1'
],
transitionalItem: 'transitional_item_here', //required, but can be same as input item apparently
loops: 1, //required
sequence: [
{
type: 'sequence_type_here', //options are deploying, cutting, filling, pressing
input: 'input_items_fluids_or_array_here',
output: 'output_item_here',
processingTime: 50 // for cutting recipes
}
],
id: 'recipe_id_here'
}*/

{
input: 'create:andesite_alloy',
outputs: [
Item.of('12x create:cogwheel'),
],
transitionalItem: 'create:incomplete_cogwheel',
loops: 4,
sequence: [
{
type: 'deploying',
input: [
'create:incomplete_cogwheel',
'#minecraft:wooden_buttons'
],
output: 'create:incomplete_cogwheel'
},
{
type: 'cutting',
input: 'create:incomplete_cogwheel',
output: 'create:incomplete_cogwheel',
processingTime: 50
}
],
id: 'create:sequenced_assembly/cogwheel'
},
{
input: 'create:andesite_alloy',
outputs: [
Item.of('6x create:large_cogwheel'),
],
transitionalItem: 'create:incomplete_large_cogwheel',
loops: 3,
sequence: [
{
type: 'deploying',
input: [
'create:incomplete_large_cogwheel',
'#minecraft:planks'
],
output: 'create:incomplete_large_cogwheel'
},
{
type: 'deploying',
input: [
'create:incomplete_large_cogwheel',
'#minecraft:wooden_buttons'
],
output: 'create:incomplete_large_cogwheel'
},
{
type: 'cutting',
input: 'create:incomplete_large_cogwheel',
output: 'create:incomplete_large_cogwheel',
processingTime: 50
}
],
id: 'create:sequenced_assembly/large_cogwheel'
},
{
input: '#forge:plates/gold',
outputs: [
'create:precision_mechanism',
],
transitionalItem: 'create:incomplete_precision_mechanism',
loops: 5,
sequence: [
{
type: 'deploying',
input: [
'create:incomplete_precision_mechanism',
'create:cogwheel'
],
output: 'create:incomplete_precision_mechanism'
},
{
type: 'deploying',
input: [
'create:incomplete_precision_mechanism',
'create:large_cogwheel'
],
output: 'create:incomplete_precision_mechanism'
},
{
type: 'deploying',
input: [
'create:incomplete_precision_mechanism',
'#forge:nuggets/iron'
],
output: 'create:incomplete_precision_mechanism'
}
],
id: 'create:precision_mechanism'
}

];

recipes.forEach((recipe) => {
let sequence = [];

recipe.sequence.forEach((step) => {
if (step.type == 'deploying'){
sequence.push(event.recipes.create.deploying(step.output,step.input))
}
else if (step.type == 'cutting'){
sequence.push(event.recipes.create.cutting(step.output,step.input).processingTime(step.processingTime))
}
else if (step.type == 'filling'){
sequence.push(event.recipes.create.filling(step.output,step.input))
}
else if (step.type == 'pressing'){
sequence.push(event.recipes.create.pressing(step.output,step.input))
}
});

const re = event.recipes.create.sequenced_assembly(
recipe.outputs,
recipe.input,
sequence
).loops(recipe.loops).transitionalItem(recipe.transitionalItem)

if (recipe.id) {
re.id(recipe.id);
}
});
});
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
onEvent('recipes', (event) => {
if (global.isExpertMode == false) {
return;
}

const recipes = [
/*
{
Expand Down
Loading

0 comments on commit 22e3dcf

Please sign in to comment.