Initial branch movement
This commit is contained in:
parent
4086896ce0
commit
5d0ca5fdeb
64 changed files with 453 additions and 2218 deletions
|
|
@ -150,41 +150,17 @@ onEvent('server.datapack.first', _ => {
|
|||
*/
|
||||
global.genCombinedRecipe = (evt, left, right, output) => {
|
||||
evt.smithing(output, left, right);
|
||||
evt.custom({
|
||||
type: 'mekanism:combining',
|
||||
mainInput: JSON.parse(left.toJson()),
|
||||
extraInput: JSON.parse(right.toJson()),
|
||||
output: output.toResultJson(),
|
||||
});
|
||||
evt.recipes.custommachinery
|
||||
.custom_machine('harmeng:auto_smither', 85)
|
||||
.requireItem(left)
|
||||
.requireItem(right)
|
||||
.requireEnergyPerTick(300)
|
||||
.produceItem(output);
|
||||
};
|
||||
|
||||
/**
|
||||
*
|
||||
* @param {RecipeEventJS} evt
|
||||
* @param {IngredientJS} left
|
||||
* @param {IngredientJS} right
|
||||
* @param {ItemStackJS} output
|
||||
* @param {Number} spoolCt
|
||||
*/
|
||||
global.genCombinedRecipeSewing = (evt, left, right, output, spoolCt) => {
|
||||
const main = JSON.parse(left.toJson());
|
||||
const extra = JSON.parse(right.toJson());
|
||||
|
||||
evt.custom({
|
||||
type: 'improvedbackpacks:sewing',
|
||||
first: main.ingredient || main,
|
||||
first_count: left.getCount(),
|
||||
second: extra.ingredient || extra,
|
||||
second_count: right.getCount(),
|
||||
spools_count: parseInt(spoolCt),
|
||||
result: output.getId(),
|
||||
});
|
||||
|
||||
evt.custom({
|
||||
type: 'mekanism:combining',
|
||||
mainInput: main,
|
||||
extraInput: extra,
|
||||
output: output.toResultJson(),
|
||||
global.genLargeRecipe = (evt, pattern, key, result) => {
|
||||
['extendedcrafting:shaped_table', 'create:mechanical_crafting'].forEach(type => {
|
||||
evt.custom({type: type, pattern: pattern, key: key, result: result});
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -196,7 +172,7 @@ onEvent('server.datapack.first', _ => {
|
|||
* @param {string} output
|
||||
* @param {number} qty
|
||||
*/
|
||||
global.genAlloyingRecipe = (evt, first, second, output, qty) => {
|
||||
global.genUniversalAlloyingRecipe = (evt, first, second, output, qty) => {
|
||||
evt.custom({
|
||||
type: 'mekanism:combining',
|
||||
mainInput: {ingredient: first},
|
||||
|
|
@ -233,12 +209,6 @@ onEvent('server.datapack.first', _ => {
|
|||
});
|
||||
};
|
||||
|
||||
global.genLargeRecipe = (evt, pattern, key, result) => {
|
||||
['extendedcrafting:shaped_table', 'create:mechanical_crafting'].forEach(type => {
|
||||
evt.custom({type: type, pattern: pattern, key: key, result: result});
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* @param {IngredientJS} input
|
||||
* @param {ItemStackJS} output
|
||||
|
|
|
|||
|
|
@ -5,14 +5,14 @@ onEvent('recipes', event => {
|
|||
event.remove({output: 'betterendforge:aeternium_ingot'});
|
||||
|
||||
event.smelting('betterendforge:thallasium_ingot', 'betterendforge:thallasium_ore');
|
||||
global.genAlloyingRecipe(
|
||||
global.genUniversalAlloyingRecipe(
|
||||
event,
|
||||
{tag: 'forge:ingots/iron'},
|
||||
{tag: 'forge:dusts/ender_pearl'},
|
||||
`betterendforge:terminite_ingot`,
|
||||
1
|
||||
);
|
||||
global.genAlloyingRecipe(
|
||||
global.genUniversalAlloyingRecipe(
|
||||
event,
|
||||
{item: 'betterendforge:terminite_ingot'},
|
||||
{tag: 'forge:ingots/netherite'},
|
||||
|
|
|
|||
|
|
@ -1,31 +0,0 @@
|
|||
onEvent('recipes', event => {
|
||||
event.remove({output: 'chickenchunks:chunk_loader'});
|
||||
event.remove({output: 'chickenchunks:spot_loader'});
|
||||
|
||||
global.genCombinedRecipe(
|
||||
event,
|
||||
Ingredient.of('minecraft:enchanting_table'),
|
||||
Ingredient.of('moreminecarts:chunkrodite'),
|
||||
Item.of('chickenchunks:chunk_loader')
|
||||
);
|
||||
|
||||
event.shaped('1x chickenchunks:chunk_loader', ['xxx', 'xxx', 'xxx'], {
|
||||
x: 'chickenchunks:spot_loader',
|
||||
});
|
||||
|
||||
event.custom({
|
||||
type: 'natural-progression:damage_tools',
|
||||
ingredients: [
|
||||
{
|
||||
item: 'chickenchunks:chunk_loader',
|
||||
},
|
||||
{
|
||||
tag: 'harmeng:diamond_tier_saws',
|
||||
},
|
||||
],
|
||||
result: {
|
||||
item: 'chickenchunks:spot_loader',
|
||||
count: 9,
|
||||
},
|
||||
});
|
||||
});
|
||||
|
|
@ -2,12 +2,22 @@ onEvent('recipes', event => {
|
|||
const fluidInjector = Item.of('custommachinery:custom_machine_item', {
|
||||
machine: 'harmeng:fluid_injector',
|
||||
});
|
||||
const autoSmither = Item.of('custommachinery:custom_machine_item', {
|
||||
machine: 'harmeng:auto_smither',
|
||||
});
|
||||
|
||||
event.shaped(fluidInjector, ['NFN', 'SDS', 'NIN'], {
|
||||
D: 'draconicevolution:draconium_ingot',
|
||||
event.shaped(fluidInjector, ['AFA', 'LSL', 'AFA'], {
|
||||
F: 'mekanism:fluidic_plenisher',
|
||||
I: 'mekanism:ultimate_induction_cell',
|
||||
N: 'powah:crystal_nitro',
|
||||
S: 'mekanism:steel_casing',
|
||||
A: 'mekanism:alloy_atomic',
|
||||
L: 'mekanism:laser',
|
||||
});
|
||||
|
||||
event.shaped(autoSmither, [' H ', 'PFP', 'GRG'], {
|
||||
F: 'thermal:machine_frame',
|
||||
P: '#forge:plates/cast_iron',
|
||||
G: '#forge:gears/invar',
|
||||
R: 'thermal:rf_coil',
|
||||
H: 'tools_complement:iron_hammer',
|
||||
});
|
||||
});
|
||||
|
|
|
|||
|
|
@ -7,25 +7,34 @@ onEvent('recipes', event => {
|
|||
event.remove({output: `${modid}:draconium_dust`});
|
||||
event.remove({id: `${modid}:components/draconium_ingot`});
|
||||
|
||||
// Turn Ether Gas + Dragon Breath into Draconic Essence
|
||||
event.custom({
|
||||
type: 'mekanism:nucleosynthesizing',
|
||||
itemInput: {ingredient: {item: 'industrialforegoing:pink_slime_ingot'}},
|
||||
gasInput: {amount: 20, gas: 'mekanism:antimatter'},
|
||||
output: {item: `${modid}:draconium_ingot`},
|
||||
duration: 10000,
|
||||
type: 'create:mixing',
|
||||
ingredients: [
|
||||
{item: 'minecraft:dragon_breath'},
|
||||
{fluid: 'industrialforegoing:ether_gas', amount: 1000},
|
||||
],
|
||||
results: [{fluid: 'kubejs:draconic_essence', amount: 1000}],
|
||||
heatRequirement: 'superheated',
|
||||
});
|
||||
|
||||
// Easier recipe once you get your first piece
|
||||
event.recipes.thermal.brewer(Fluid.of('kubejs:draconic_essence', 1000), [
|
||||
Item.of('minecraft:dragon_breath'),
|
||||
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'))
|
||||
.requireFluid(Fluid.of('industrialforegoing:ether_gas', 500))
|
||||
.requireEnergy(1000000)
|
||||
.requireFluid(Fluid.of('kubejs:draconic_essence', 2000))
|
||||
.requireEnergyPerTick(5000)
|
||||
.produceItem(Item.of(`${modid}:draconium_ingot`));
|
||||
|
||||
// Other recripes
|
||||
event.remove({output: `${modid}:infused_obsidian`});
|
||||
global.genAlloyingRecipe(
|
||||
global.genUniversalAlloyingRecipe(
|
||||
event,
|
||||
{item: `${modid}:draconium_ingot`},
|
||||
{tag: 'forge:obsidian'},
|
||||
|
|
|
|||
|
|
@ -64,20 +64,25 @@ onEvent('recipes', event => {
|
|||
S: 'farmersdelight:straw',
|
||||
});
|
||||
|
||||
global.genCombinedRecipeSewing(
|
||||
event,
|
||||
Ingredient.of('4x farmersdelight:canvas'),
|
||||
Ingredient.of(`${modid}:stick_treated`),
|
||||
Item.of(`${modid}:hemp_fabric`),
|
||||
1
|
||||
);
|
||||
global.genCombinedRecipeSewing(
|
||||
event,
|
||||
Ingredient.of(`4x ${modid}:hemp_fabric`),
|
||||
Ingredient.of(`2x #forge:treated_wood_slab`),
|
||||
Item.of(`${modid}:windmill_sail`),
|
||||
1
|
||||
);
|
||||
event.custom({
|
||||
type: 'improvedbackpacks:sewing',
|
||||
first: {item: 'farmersdelight:canvas'},
|
||||
first_count: 4,
|
||||
second: {item: `${modid}:stick_treated`},
|
||||
second_count: 1,
|
||||
spools_count: 1,
|
||||
result: `${modid}:hemp_fabric`,
|
||||
});
|
||||
|
||||
event.custom({
|
||||
type: 'improvedbackpacks:sewing',
|
||||
first: {item: `${modid}:hemp_fabric`},
|
||||
first_count: 4,
|
||||
second: {tag: 'forge:treated_wood_slab'},
|
||||
second_count: 2,
|
||||
spools_count: 1,
|
||||
result: `${modid}:windmill_sail`,
|
||||
});
|
||||
|
||||
global.genLargeRecipe(
|
||||
event,
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
onEvent('recipes', event => {
|
||||
event.remove({output: 'moreminecarts:silica_steel_mix'});
|
||||
event.remove({output: 'moreminecarts:silica_steel'});
|
||||
global.genAlloyingRecipe(
|
||||
global.genUniversalAlloyingRecipe(
|
||||
event,
|
||||
{tag: 'forge:ingots/steel'},
|
||||
{tag: 'forge:silicon'},
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ onEvent('recipes', event => {
|
|||
// Easier recipes for once you get some machinery going :)
|
||||
event.shapeless('2x kubejs:andesite_zinc_blend', ['#forge:dusts/zinc', 'kubejs:andesite_dust']);
|
||||
event.shapeless('2x kubejs:andesite_iron_blend', ['#forge:dusts/iron', 'kubejs:andesite_dust']);
|
||||
global.genAlloyingRecipe(
|
||||
global.genUniversalAlloyingRecipe(
|
||||
event,
|
||||
{item: 'create:andesite_cobblestone'},
|
||||
{tag: 'forge:ingots/zinc'},
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
onEvent('recipes', event => {
|
||||
// Ender Singularity Crafting
|
||||
event.custom({
|
||||
type: 'thermal:chiller',
|
||||
ingredients: [{fluid: 'minecraft:water', amount: 1000}, {item: 'powah:ender_core'}],
|
||||
result: [{item: 'kubejs:ender_singularity', count: 1}],
|
||||
energy: 20000,
|
||||
});
|
||||
event.recipes.custommachinery
|
||||
.custom_machine('harmeng:fluid_injector', 250)
|
||||
.requireItem(Item.of('powah:ender_core'))
|
||||
.requireFluid(Fluid.of('minecraft:water', 1000))
|
||||
.requireEnergyPerTick(1000)
|
||||
.produceItem(Item.of(`kubejs:ender_singularity`));
|
||||
|
||||
// Fluxed Singularity Crafting
|
||||
event.custom({
|
||||
|
|
|
|||
|
|
@ -26,21 +26,21 @@ onEvent('recipes', event => {
|
|||
event.remove({output: `${core}:silicon`});
|
||||
event.remove({output: `${core}:woven_cloth`});
|
||||
|
||||
global.genAlloyingRecipe(
|
||||
global.genUniversalAlloyingRecipe(
|
||||
event,
|
||||
{item: 'minecraft:iron_ingot'},
|
||||
{item: 'minecraft:redstone'},
|
||||
`${core}:red_ingot`,
|
||||
1
|
||||
);
|
||||
global.genAlloyingRecipe(
|
||||
global.genUniversalAlloyingRecipe(
|
||||
event,
|
||||
{tag: 'forge:silicon'},
|
||||
{item: 'minecraft:redstone'},
|
||||
`${core}:infused_silicon`,
|
||||
1
|
||||
);
|
||||
global.genAlloyingRecipe(
|
||||
global.genUniversalAlloyingRecipe(
|
||||
event,
|
||||
{tag: 'forge:silicon'},
|
||||
{item: 'minecraft:glowstone_dust'},
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ onEvent('recipes', event => {
|
|||
E: {tag: 'forge:storage_blocks/enderium'},
|
||||
S: {item: 'kubejs:ender_singularity'},
|
||||
W: {item: 'wormhole:portal_frame'},
|
||||
C: {item: 'chickenchunks:spot_loader'},
|
||||
C: {item: 'chunkloaders:ultimate_chunk_loader'},
|
||||
K: {item: 'moreminecarts:chunkrodite'},
|
||||
I: {item: 'mekanism:digital_miner'},
|
||||
N: {item: 'minecraft:nether_star'},
|
||||
|
|
@ -51,7 +51,7 @@ onEvent('recipes', event => {
|
|||
global.genCombinedRecipe(
|
||||
event,
|
||||
Ingredient.of('thermal:fluid_tank_augment'),
|
||||
Ingredient.of('rangedpumps:pump'),
|
||||
Ingredient.of('mekanism:electric_pump'),
|
||||
Item.of('quantumquarryplus:pump_upgrade')
|
||||
);
|
||||
});
|
||||
|
|
|
|||
|
|
@ -1,38 +0,0 @@
|
|||
onEvent('recipes', event => {
|
||||
event.remove({output: 'rangedpumps:pump'});
|
||||
event.custom({
|
||||
type: 'natural-progression:damage_tools',
|
||||
ingredients: [
|
||||
{
|
||||
item: 'immersiveengineering:hammer',
|
||||
},
|
||||
{
|
||||
tag: 'forge:shears',
|
||||
},
|
||||
{
|
||||
item: 'chickenchunks:spot_loader',
|
||||
},
|
||||
{
|
||||
item: 'thermal:hazmat_fabric',
|
||||
},
|
||||
{
|
||||
item: 'thermal:hazmat_fabric',
|
||||
},
|
||||
{
|
||||
item: 'thermal:hazmat_fabric',
|
||||
},
|
||||
{
|
||||
item: 'create:mechanical_pump',
|
||||
},
|
||||
{
|
||||
item: 'create:fluid_pipe',
|
||||
},
|
||||
{
|
||||
item: 'create:fluid_pipe',
|
||||
},
|
||||
],
|
||||
result: {
|
||||
item: 'rangedpumps:pump',
|
||||
},
|
||||
});
|
||||
});
|
||||
Loading…
Reference in a new issue