Refactor
This commit is contained in:
parent
2805a252be
commit
b3574c015c
10 changed files with 342 additions and 460 deletions
|
|
@ -1,455 +0,0 @@
|
|||
const bottler = event => {
|
||||
// Treated planks in the bottler
|
||||
event.custom({
|
||||
type: 'thermal:bottler',
|
||||
ingredient: [
|
||||
{
|
||||
tag: 'minecraft:planks',
|
||||
},
|
||||
{
|
||||
fluid: 'immersiveengineering:creosote',
|
||||
amount: 125,
|
||||
},
|
||||
],
|
||||
result: [
|
||||
{
|
||||
item: 'immersiveengineering:treated_wood_horizontal',
|
||||
},
|
||||
],
|
||||
});
|
||||
};
|
||||
|
||||
const campfire = event => {
|
||||
// Cast-Iron from campfire
|
||||
event.campfireCooking('1x emendatusenigmatica:cast_iron_ingot', '#forge:ingots/iron');
|
||||
};
|
||||
|
||||
const crafting = event => {
|
||||
// Rainbow Rune crafting :)
|
||||
event.shaped('1x quark:rainbow_rune', ['CCC', 'CBC', 'CCC'], {
|
||||
C: 'betterendforge:crystal_shards',
|
||||
B: 'quark:blank_rune',
|
||||
});
|
||||
|
||||
global.genAlloyingRecipe(
|
||||
event,
|
||||
{tag: 'chipped:andesite'},
|
||||
{tag: 'forge:ingots/zinc'},
|
||||
'create:andesite_alloy',
|
||||
2
|
||||
);
|
||||
|
||||
event.custom({
|
||||
type: 'natural-progression:damage_tools',
|
||||
ingredients: [
|
||||
{item: 'minecraft:clay_ball'},
|
||||
{tag: 'forge:pebbles'},
|
||||
{tag: 'forge:pebbles'},
|
||||
{tag: 'harmeng:zinc_or_iron_chunk'},
|
||||
{tag: 'natural-progression:saw'},
|
||||
],
|
||||
result: {
|
||||
item: 'kubejs:crude_andesite_alloy',
|
||||
count: 1,
|
||||
},
|
||||
});
|
||||
|
||||
event.smelting('create:andesite_alloy', 'kubejs:crude_andesite_alloy');
|
||||
|
||||
event.custom({
|
||||
type: 'natural-progression:damage_tools',
|
||||
ingredients: [
|
||||
{
|
||||
item: 'minecraft:shears',
|
||||
},
|
||||
{
|
||||
tag: 'minecraft:wool',
|
||||
},
|
||||
],
|
||||
result: {
|
||||
item: 'minecraft:string',
|
||||
count: 3,
|
||||
},
|
||||
});
|
||||
|
||||
event.shapeless('4x minecraft:clay_ball', ['minecraft:clay']);
|
||||
event.shaped('16x supplementaries:cog_block', ['ccc', 'cgc', 'ccc'], {
|
||||
g: '#forge:gears/copper',
|
||||
c: '#forge:ingots/copper',
|
||||
});
|
||||
event.shaped('32x supplementaries:cog_block', ['ccc', 'cgc', 'ccc'], {
|
||||
g: '#forge:gears/signalum',
|
||||
c: '#forge:ingots/signalum',
|
||||
});
|
||||
|
||||
event.remove({id: 'quark:building/crafting/chests/chest_revert'});
|
||||
event.shapeless('1x minecraft:chest', ['#forge:chests/wooden']);
|
||||
event.shapeless('1x minecraft:trapped_chest', ['#forge:chests/trapped']);
|
||||
|
||||
event.shapeless('4x appliedenergistics2:sky_stone_block', ['3x #forge:stone', '#forge:silicon']);
|
||||
|
||||
// chipped planks for quark chest crafting
|
||||
['acacia', 'birch', 'crimson', 'dark_oak', 'jungle', 'oak', 'spruce', 'warped'].forEach(plank => {
|
||||
event.shaped(`1x quark:${plank}_chest`, ['ppp', 'p p', 'ppp'], {
|
||||
p: `#chipped:${plank}_planks`,
|
||||
});
|
||||
});
|
||||
|
||||
// Craft chests out of chestless planks
|
||||
event.shaped('4x minecraft:chest', ['lll', 'l l', 'lll'], {
|
||||
l: '#harmeng:chestless_logs',
|
||||
});
|
||||
event.shaped('minecraft:chest', ['ppp', 'p p', 'ppp'], {
|
||||
p: '#harmeng:chestless_planks',
|
||||
});
|
||||
event.shaped('storage_overhaul:oak_barrel', ['psp', 'p p', 'psp'], {
|
||||
p: '#harmeng:chestless_planks',
|
||||
s: '#minecraft:wooden_slabs',
|
||||
});
|
||||
|
||||
event.remove({output: 'chipped:carpenters_table'});
|
||||
event.shaped('1x chipped:carpenters_table', [' I', 'LWL', 'SPL'], {
|
||||
I: '#forge:ingots/iron',
|
||||
L: '#minecraft:logs',
|
||||
P: '#minecraft:planks',
|
||||
S: '#natural-progression:saw',
|
||||
W: 'corail_woodcutter:oak_woodcutter',
|
||||
});
|
||||
};
|
||||
|
||||
const metallurgicInfuser = event => {
|
||||
event.custom({
|
||||
type: 'mekanism:metallurgic_infusing',
|
||||
itemInput: {
|
||||
ingredient: {
|
||||
tag: 'forge:storage_blocks/uranium',
|
||||
},
|
||||
},
|
||||
infusionInput: {
|
||||
amount: 90,
|
||||
tag: 'mekanism:redstone',
|
||||
},
|
||||
output: {
|
||||
item: 'powah:uraninite_block',
|
||||
},
|
||||
});
|
||||
|
||||
event.custom({
|
||||
type: 'mekanism:metallurgic_infusing',
|
||||
itemInput: {
|
||||
ingredient: {
|
||||
tag: 'forge:ingots/uranium',
|
||||
},
|
||||
},
|
||||
infusionInput: {
|
||||
amount: 10,
|
||||
tag: 'mekanism:redstone',
|
||||
},
|
||||
output: {
|
||||
item: 'powah:uraninite',
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
const multiservoPress = event => {
|
||||
// Recipes for IE wires from multiservo press
|
||||
event.custom({
|
||||
type: 'thermal:press',
|
||||
ingredients: [
|
||||
{
|
||||
tag: 'forge:ingots/aluminum',
|
||||
},
|
||||
{
|
||||
item: 'immersiveengineering:mold_wire',
|
||||
},
|
||||
],
|
||||
result: [
|
||||
{
|
||||
item: 'immersiveengineering:wire_aluminum',
|
||||
count: 2,
|
||||
},
|
||||
],
|
||||
});
|
||||
|
||||
event.custom({
|
||||
type: 'thermal:press',
|
||||
ingredients: [
|
||||
{
|
||||
tag: 'forge:ingots/copper',
|
||||
},
|
||||
{
|
||||
item: 'immersiveengineering:mold_wire',
|
||||
},
|
||||
],
|
||||
result: [
|
||||
{
|
||||
item: 'immersiveengineering:wire_copper',
|
||||
count: 2,
|
||||
},
|
||||
],
|
||||
});
|
||||
event.custom({
|
||||
type: 'thermal:press',
|
||||
ingredients: [
|
||||
{
|
||||
tag: 'forge:ingots/electrum',
|
||||
},
|
||||
{
|
||||
item: 'immersiveengineering:mold_wire',
|
||||
},
|
||||
],
|
||||
result: [
|
||||
{
|
||||
item: 'immersiveengineering:wire_electrum',
|
||||
count: 2,
|
||||
},
|
||||
],
|
||||
});
|
||||
event.custom({
|
||||
type: 'thermal:press',
|
||||
ingredients: [
|
||||
{
|
||||
tag: 'forge:ingots/lead',
|
||||
},
|
||||
{
|
||||
item: 'immersiveengineering:mold_wire',
|
||||
},
|
||||
],
|
||||
result: [
|
||||
{
|
||||
item: 'immersiveengineering:wire_lead',
|
||||
count: 2,
|
||||
},
|
||||
],
|
||||
});
|
||||
event.custom({
|
||||
type: 'thermal:press',
|
||||
ingredients: [
|
||||
{
|
||||
tag: 'forge:ingots/steel',
|
||||
},
|
||||
{
|
||||
item: 'immersiveengineering:mold_wire',
|
||||
},
|
||||
],
|
||||
result: [
|
||||
{
|
||||
item: 'immersiveengineering:wire_steel',
|
||||
count: 2,
|
||||
},
|
||||
],
|
||||
});
|
||||
event.custom({
|
||||
type: 'thermal:press',
|
||||
ingredients: [
|
||||
{
|
||||
tag: 'forge:ingots/copper',
|
||||
},
|
||||
{
|
||||
item: 'immersiveengineering:mold_bullet_casing',
|
||||
},
|
||||
],
|
||||
result: [
|
||||
{
|
||||
item: 'immersiveengineering:empty_casing',
|
||||
count: 2,
|
||||
},
|
||||
],
|
||||
});
|
||||
};
|
||||
|
||||
const stonecutter = event => {
|
||||
event.stonecutting('appliedenergistics2:calculation_processor_press', '#forge:plates/steel');
|
||||
event.stonecutting('appliedenergistics2:engineering_processor_press', '#forge:plates/steel');
|
||||
event.stonecutting('appliedenergistics2:logic_processor_press', '#forge:plates/steel');
|
||||
event.stonecutting('appliedenergistics2:silicon_press', '#forge:plates/steel');
|
||||
event.stonecutting('appliedenergistics2:name_press', '#forge:plates/steel');
|
||||
|
||||
// Uncraft quartz block via stonecutting
|
||||
event.stonecutting('4x minecraft:quartz', 'minecraft:quartz_block');
|
||||
};
|
||||
|
||||
const woodcutter = event => {
|
||||
// Lots of wonky dynamic logic for reducing hundreds of JSON files to a few hundred lines ;)
|
||||
[
|
||||
'atmospheric:aspen',
|
||||
'atmospheric:grimwood',
|
||||
'atmospheric:kousa',
|
||||
'atmospheric:morado',
|
||||
'atmospheric:rosewood',
|
||||
'atmospheric:yucca',
|
||||
'autumnity:maple',
|
||||
'betterendforge:dragon_tree',
|
||||
'betterendforge:end_lotus',
|
||||
'betterendforge:helix_tree',
|
||||
'betterendforge:jellyshroom',
|
||||
'betterendforge:lacugrove',
|
||||
'betterendforge:lucernia',
|
||||
'betterendforge:mossy_glowshroom',
|
||||
'betterendforge:pythadendron',
|
||||
'betterendforge:tenanea',
|
||||
'betterendforge:umbrella_tree',
|
||||
'enhanced_mushrooms:brown_mushroom',
|
||||
'enhanced_mushrooms:glowshroom',
|
||||
'enhanced_mushrooms:red_mushroom',
|
||||
'tconstruct:bloodshroom',
|
||||
'tconstruct:greenheart',
|
||||
'tconstruct:skyroot',
|
||||
'upgrade_aquatic:driftwood',
|
||||
'upgrade_aquatic:river',
|
||||
].forEach(wood => {
|
||||
[
|
||||
{type: 'button', qty: 4},
|
||||
{type: 'door', qty: 1},
|
||||
{type: 'fence_gate', qty: 1},
|
||||
{type: 'fence', qty: 1},
|
||||
{type: 'gate', qty: 1},
|
||||
{type: 'pressure_plate', qty: 3},
|
||||
{type: 'sign', qty: 1},
|
||||
{type: 'slab', qty: 2},
|
||||
{type: 'stairs', qty: 1},
|
||||
{type: 'trapdoor', qty: 2},
|
||||
].forEach(x => {
|
||||
const {type, qty} = x;
|
||||
|
||||
// Checks that the generated item exists
|
||||
if (`${Item.of(`${wood}_${type}`)}` !== 'Item.empty') {
|
||||
event.custom({
|
||||
type: 'corail_woodcutter:woodcutting',
|
||||
ingredient: {
|
||||
item: `${wood}_planks`,
|
||||
},
|
||||
result: `${wood}_${type}`,
|
||||
count: qty,
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
[
|
||||
'atmospheric:aspen_logs',
|
||||
'atmospheric:grimwood_logs',
|
||||
'atmospheric:morado_logs',
|
||||
'atmospheric:rosewood_logs',
|
||||
'atmospheric:yucca_logs',
|
||||
'autumnity:maple_logs',
|
||||
'enhanced_mushrooms:brown_mushroom_stems',
|
||||
'enhanced_mushrooms:glowshroom_stems',
|
||||
'enhanced_mushrooms:red_mushroom_stems',
|
||||
'upgrade_aquatic:driftwood_logs',
|
||||
'upgrade_aquatic:river_logs',
|
||||
].forEach(wood => {
|
||||
const [_, path] = wood.split(':');
|
||||
[
|
||||
{type: 'beam', qty: 1},
|
||||
{type: 'palisade', qty: 4},
|
||||
].forEach(x => {
|
||||
const {type, qty} = x;
|
||||
|
||||
const output = `decorative_blocks_abnormals:${path}_${type}`
|
||||
.replace('_logs', '')
|
||||
.replace('_stems', '');
|
||||
|
||||
if (`${Item.of(output)}` !== 'Item.empty') {
|
||||
event.custom({
|
||||
type: 'corail_woodcutter:woodcutting',
|
||||
ingredient: {tag: wood},
|
||||
result: output,
|
||||
count: qty,
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
[
|
||||
'atmospheric:aspen_planks',
|
||||
'atmospheric:grimwood_planks',
|
||||
'atmospheric:morado_planks',
|
||||
'atmospheric:rosewood_planks',
|
||||
'atmospheric:yucca_planks',
|
||||
'autumnity:maple_planks',
|
||||
'enhanced_mushrooms:brown_mushroom_planks',
|
||||
'enhanced_mushrooms:glowshroom_planks',
|
||||
'enhanced_mushrooms:red_mushroom_planks',
|
||||
'upgrade_aquatic:driftwood_planks',
|
||||
'upgrade_aquatic:river_planks',
|
||||
].forEach(wood => {
|
||||
const [_, path] = wood.split(':');
|
||||
[
|
||||
{type: 'seat', qty: 1},
|
||||
{type: 'support', qty: 1},
|
||||
].forEach(x => {
|
||||
const {type, qty} = x;
|
||||
const output = `decorative_blocks_abnormals:${path}_${type}`.replace('_planks', '');
|
||||
|
||||
if (`${Item.of(output)}` !== 'Item.empty') {
|
||||
event.custom({
|
||||
type: 'corail_woodcutter:woodcutting',
|
||||
ingredient: {item: wood},
|
||||
result: output,
|
||||
count: qty,
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
/* IE Compat */
|
||||
[
|
||||
{result: 'immersiveengineering:treated_wood_horizontal', count: 1},
|
||||
{result: 'immersiveengineering:slab_treated_wood_horizontal', count: 2},
|
||||
{result: 'immersiveengineering:stairs_treated_wood_horizontal', count: 1},
|
||||
{result: 'immersiveengineering:treated_wood_vertical', count: 1},
|
||||
{result: 'immersiveengineering:slab_treated_wood_vertical', count: 2},
|
||||
{result: 'immersiveengineering:stairs_treated_wood_vertical', count: 1},
|
||||
{result: 'immersiveengineering:treated_wood_packaged', count: 1},
|
||||
{result: 'immersiveengineering:slab_treated_wood_packaged', count: 2},
|
||||
{result: 'immersiveengineering:stairs_treated_wood_packaged', count: 1},
|
||||
{result: 'immersiveengineering:treated_fence', count: 1},
|
||||
{result: 'immersiveengineering:treated_scaffold', count: 1},
|
||||
{result: 'immersiveengineering:waterwheel_segment', count: 1},
|
||||
{result: 'immersiveengineering:windmill_blade', count: 1},
|
||||
].forEach(recipe => {
|
||||
const {result, count} = recipe;
|
||||
event.custom({
|
||||
type: 'corail_woodcutter:woodcutting',
|
||||
ingredient: {tag: 'forge:treated_wood'},
|
||||
result: result,
|
||||
count: count,
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
// Completely custom, non-replacing recipes
|
||||
onEvent('recipes', event => {
|
||||
bottler(event);
|
||||
campfire(event);
|
||||
crafting(event);
|
||||
metallurgicInfuser(event);
|
||||
multiservoPress(event);
|
||||
stonecutter(event);
|
||||
woodcutter(event);
|
||||
global.genUniversalCrushingRecipe(
|
||||
event,
|
||||
Ingredient.of('betternether:glowstone_stalactite'),
|
||||
Item.of('3x minecraft:glowstone_dust'),
|
||||
null
|
||||
);
|
||||
|
||||
// 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.custom({
|
||||
type: 'appliedenergistics2:inscriber',
|
||||
mode: 'press',
|
||||
result: {item: 'kubejs:fluxed_singularity'},
|
||||
ingredients: {
|
||||
top: {item: 'kubejs:ender_singularity'},
|
||||
middle: {item: 'appliedenergistics2:purified_fluix_crystal'},
|
||||
},
|
||||
});
|
||||
});
|
||||
|
|
@ -0,0 +1,55 @@
|
|||
const convenienceCrafting = event => {
|
||||
// Clay Block Uncrafting
|
||||
event.shapeless('4x minecraft:clay_ball', ['minecraft:clay']);
|
||||
// Rainbow Rune
|
||||
event.shaped('1x quark:rainbow_rune', ['CCC', 'CBC', 'CCC'], {
|
||||
C: 'betterendforge:crystal_shards',
|
||||
B: 'quark:blank_rune',
|
||||
});
|
||||
// Wool to 3x String
|
||||
event.custom({
|
||||
type: 'natural-progression:damage_tools',
|
||||
ingredients: [{item: 'minecraft:shears'}, {tag: 'minecraft:wool'}],
|
||||
result: {item: 'minecraft:string', count: 3},
|
||||
});
|
||||
// Supplementaries' Cog Blocks
|
||||
event.shaped('32x supplementaries:cog_block', ['ccc', 'cgc', 'ccc'], {
|
||||
g: '#forge:gears/copper',
|
||||
c: '#forge:ingots/copper',
|
||||
});
|
||||
// Skystone Crafting, since meteors are disabled
|
||||
event.shapeless('4x appliedenergistics2:sky_stone_block', ['3x #forge:stone', '#forge:silicon']);
|
||||
};
|
||||
|
||||
const chestRecipes = event => {
|
||||
event.remove({id: 'quark:building/crafting/chests/chest_revert'});
|
||||
event.shapeless('1x minecraft:chest', ['#forge:chests/wooden']);
|
||||
event.shapeless('1x minecraft:trapped_chest', ['#forge:chests/trapped']);
|
||||
// chipped planks for quark chest crafting
|
||||
['acacia', 'birch', 'crimson', 'dark_oak', 'jungle', 'oak', 'spruce', 'warped'].forEach(plank => {
|
||||
event.shaped(`1x quark:${plank}_chest`, ['ppp', 'p p', 'ppp'], {
|
||||
p: `#chipped:${plank}_planks`,
|
||||
});
|
||||
});
|
||||
// Craft chests out of chestless planks
|
||||
event.shaped('4x minecraft:chest', ['lll', 'l l', 'lll'], {l: '#harmeng:chestless_logs'});
|
||||
event.shaped('minecraft:chest', ['ppp', 'p p', 'ppp'], {p: '#harmeng:chestless_planks'});
|
||||
event.shaped('storage_overhaul:oak_barrel', ['psp', 'p p', 'psp'], {
|
||||
p: '#harmeng:chestless_planks',
|
||||
s: '#minecraft:wooden_slabs',
|
||||
});
|
||||
// Chipped Carpentry Table
|
||||
event.remove({output: 'chipped:carpenters_table'});
|
||||
event.shaped('1x chipped:carpenters_table', [' I', 'LWL', 'SPL'], {
|
||||
I: '#forge:ingots/iron',
|
||||
L: '#minecraft:logs',
|
||||
P: '#minecraft:planks',
|
||||
S: '#natural-progression:saw',
|
||||
W: 'corail_woodcutter:oak_woodcutter',
|
||||
});
|
||||
};
|
||||
|
||||
onEvent('recipes', event => {
|
||||
convenienceCrafting(event);
|
||||
chestRecipes(event);
|
||||
});
|
||||
|
|
@ -0,0 +1,74 @@
|
|||
onEvent('recipes', event => {
|
||||
// IE Treated Planks from Fluid
|
||||
event.custom({
|
||||
type: 'thermal:bottler',
|
||||
ingredient: [{tag: 'minecraft:planks'}, {fluid: 'immersiveengineering:creosote', amount: 125}],
|
||||
result: [{item: 'immersiveengineering:treated_wood_horizontal'}],
|
||||
});
|
||||
|
||||
// Aluminum Wire in Thermal Multiservo Press
|
||||
event.custom({
|
||||
type: 'thermal:press',
|
||||
ingredients: [{tag: 'forge:ingots/aluminum'}, {item: 'immersiveengineering:mold_wire'}],
|
||||
result: [{item: 'immersiveengineering:wire_aluminum', count: 2}],
|
||||
});
|
||||
|
||||
// AlCopperuminum Wire in Thermal Multiservo Press
|
||||
event.custom({
|
||||
type: 'thermal:press',
|
||||
ingredients: [{tag: 'forge:ingots/copper'}, {item: 'immersiveengineering:mold_wire'}],
|
||||
result: [{item: 'immersiveengineering:wire_copper', count: 2}],
|
||||
});
|
||||
|
||||
// Electrum Wire in Thermal Multiservo Press
|
||||
event.custom({
|
||||
type: 'thermal:press',
|
||||
ingredients: [{tag: 'forge:ingots/electrum'}, {item: 'immersiveengineering:mold_wire'}],
|
||||
result: [{item: 'immersiveengineering:wire_electrum', count: 2}],
|
||||
});
|
||||
|
||||
// Lead Wire in Thermal Multiservo Press
|
||||
event.custom({
|
||||
type: 'thermal:press',
|
||||
ingredients: [{tag: 'forge:ingots/lead'}, {item: 'immersiveengineering:mold_wire'}],
|
||||
result: [{item: 'immersiveengineering:wire_lead', count: 2}],
|
||||
});
|
||||
|
||||
// Steel Wire in Thermal Multiservo Press
|
||||
event.custom({
|
||||
type: 'thermal:press',
|
||||
ingredients: [{tag: 'forge:ingots/steel'}, {item: 'immersiveengineering:mold_wire'}],
|
||||
result: [{item: 'immersiveengineering:wire_steel', count: 2}],
|
||||
});
|
||||
|
||||
// Bullet Casing in Thermal Multiservo Press
|
||||
event.custom({
|
||||
type: 'thermal:press',
|
||||
ingredients: [{tag: 'forge:ingots/copper'}, {item: 'immersiveengineering:mold_bullet_casing'}],
|
||||
result: [{item: 'immersiveengineering:empty_casing', count: 2}],
|
||||
});
|
||||
|
||||
// Urananite Block from Uranium Block
|
||||
event.custom({
|
||||
type: 'mekanism:metallurgic_infusing',
|
||||
itemInput: {ingredient: {tag: 'forge:storage_blocks/uranium'}},
|
||||
infusionInput: {amount: 90, tag: 'mekanism:redstone'},
|
||||
output: {item: 'powah:uraninite_block'},
|
||||
});
|
||||
|
||||
// Urananite from Uranium Ingot
|
||||
event.custom({
|
||||
type: 'mekanism:metallurgic_infusing',
|
||||
itemInput: {ingredient: {tag: 'forge:ingots/uranium'}},
|
||||
infusionInput: {amount: 10, tag: 'mekanism:redstone'},
|
||||
output: {item: 'powah:uraninite'},
|
||||
});
|
||||
|
||||
// A Use for Glowstone Stalactites
|
||||
global.genUniversalCrushingRecipe(
|
||||
event,
|
||||
Ingredient.of('betternether:glowstone_stalactite'),
|
||||
Item.of('3x minecraft:glowstone_dust'),
|
||||
null
|
||||
);
|
||||
});
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
onEvent('recipes', event => {
|
||||
event.stonecutting('appliedenergistics2:calculation_processor_press', '#forge:plates/steel');
|
||||
event.stonecutting('appliedenergistics2:engineering_processor_press', '#forge:plates/steel');
|
||||
event.stonecutting('appliedenergistics2:logic_processor_press', '#forge:plates/steel');
|
||||
event.stonecutting('appliedenergistics2:silicon_press', '#forge:plates/steel');
|
||||
event.stonecutting('appliedenergistics2:name_press', '#forge:plates/steel');
|
||||
|
||||
// Uncraft quartz block via stonecutting
|
||||
event.stonecutting('4x minecraft:quartz', 'minecraft:quartz_block');
|
||||
});
|
||||
|
|
@ -0,0 +1,149 @@
|
|||
onEvent('recipes', event => {
|
||||
// Lots of wonky dynamic logic for reducing hundreds of JSON files to a few hundred lines ;)
|
||||
[
|
||||
'atmospheric:aspen',
|
||||
'atmospheric:grimwood',
|
||||
'atmospheric:kousa',
|
||||
'atmospheric:morado',
|
||||
'atmospheric:rosewood',
|
||||
'atmospheric:yucca',
|
||||
'autumnity:maple',
|
||||
'betterendforge:dragon_tree',
|
||||
'betterendforge:end_lotus',
|
||||
'betterendforge:helix_tree',
|
||||
'betterendforge:jellyshroom',
|
||||
'betterendforge:lacugrove',
|
||||
'betterendforge:lucernia',
|
||||
'betterendforge:mossy_glowshroom',
|
||||
'betterendforge:pythadendron',
|
||||
'betterendforge:tenanea',
|
||||
'betterendforge:umbrella_tree',
|
||||
'enhanced_mushrooms:brown_mushroom',
|
||||
'enhanced_mushrooms:glowshroom',
|
||||
'enhanced_mushrooms:red_mushroom',
|
||||
'tconstruct:bloodshroom',
|
||||
'tconstruct:greenheart',
|
||||
'tconstruct:skyroot',
|
||||
'upgrade_aquatic:driftwood',
|
||||
'upgrade_aquatic:river',
|
||||
].forEach(wood => {
|
||||
[
|
||||
{type: 'button', qty: 4},
|
||||
{type: 'door', qty: 1},
|
||||
{type: 'fence_gate', qty: 1},
|
||||
{type: 'fence', qty: 1},
|
||||
{type: 'gate', qty: 1},
|
||||
{type: 'pressure_plate', qty: 3},
|
||||
{type: 'sign', qty: 1},
|
||||
{type: 'slab', qty: 2},
|
||||
{type: 'stairs', qty: 1},
|
||||
{type: 'trapdoor', qty: 2},
|
||||
].forEach(x => {
|
||||
const {type, qty} = x;
|
||||
|
||||
// Checks that the generated item exists
|
||||
if (`${Item.of(`${wood}_${type}`)}` !== 'Item.empty') {
|
||||
event.custom({
|
||||
type: 'corail_woodcutter:woodcutting',
|
||||
ingredient: {
|
||||
item: `${wood}_planks`,
|
||||
},
|
||||
result: `${wood}_${type}`,
|
||||
count: qty,
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
[
|
||||
'atmospheric:aspen_logs',
|
||||
'atmospheric:grimwood_logs',
|
||||
'atmospheric:morado_logs',
|
||||
'atmospheric:rosewood_logs',
|
||||
'atmospheric:yucca_logs',
|
||||
'autumnity:maple_logs',
|
||||
'enhanced_mushrooms:brown_mushroom_stems',
|
||||
'enhanced_mushrooms:glowshroom_stems',
|
||||
'enhanced_mushrooms:red_mushroom_stems',
|
||||
'upgrade_aquatic:driftwood_logs',
|
||||
'upgrade_aquatic:river_logs',
|
||||
].forEach(wood => {
|
||||
const [_, path] = wood.split(':');
|
||||
[
|
||||
{type: 'beam', qty: 1},
|
||||
{type: 'palisade', qty: 4},
|
||||
].forEach(x => {
|
||||
const {type, qty} = x;
|
||||
|
||||
const output = `decorative_blocks_abnormals:${path}_${type}`
|
||||
.replace('_logs', '')
|
||||
.replace('_stems', '');
|
||||
|
||||
if (`${Item.of(output)}` !== 'Item.empty') {
|
||||
event.custom({
|
||||
type: 'corail_woodcutter:woodcutting',
|
||||
ingredient: {tag: wood},
|
||||
result: output,
|
||||
count: qty,
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
[
|
||||
'atmospheric:aspen_planks',
|
||||
'atmospheric:grimwood_planks',
|
||||
'atmospheric:morado_planks',
|
||||
'atmospheric:rosewood_planks',
|
||||
'atmospheric:yucca_planks',
|
||||
'autumnity:maple_planks',
|
||||
'enhanced_mushrooms:brown_mushroom_planks',
|
||||
'enhanced_mushrooms:glowshroom_planks',
|
||||
'enhanced_mushrooms:red_mushroom_planks',
|
||||
'upgrade_aquatic:driftwood_planks',
|
||||
'upgrade_aquatic:river_planks',
|
||||
].forEach(wood => {
|
||||
const [_, path] = wood.split(':');
|
||||
[
|
||||
{type: 'seat', qty: 1},
|
||||
{type: 'support', qty: 1},
|
||||
].forEach(x => {
|
||||
const {type, qty} = x;
|
||||
const output = `decorative_blocks_abnormals:${path}_${type}`.replace('_planks', '');
|
||||
|
||||
if (`${Item.of(output)}` !== 'Item.empty') {
|
||||
event.custom({
|
||||
type: 'corail_woodcutter:woodcutting',
|
||||
ingredient: {item: wood},
|
||||
result: output,
|
||||
count: qty,
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
/* IE Compat */
|
||||
[
|
||||
{result: 'immersiveengineering:treated_wood_horizontal', count: 1},
|
||||
{result: 'immersiveengineering:slab_treated_wood_horizontal', count: 2},
|
||||
{result: 'immersiveengineering:stairs_treated_wood_horizontal', count: 1},
|
||||
{result: 'immersiveengineering:treated_wood_vertical', count: 1},
|
||||
{result: 'immersiveengineering:slab_treated_wood_vertical', count: 2},
|
||||
{result: 'immersiveengineering:stairs_treated_wood_vertical', count: 1},
|
||||
{result: 'immersiveengineering:treated_wood_packaged', count: 1},
|
||||
{result: 'immersiveengineering:slab_treated_wood_packaged', count: 2},
|
||||
{result: 'immersiveengineering:stairs_treated_wood_packaged', count: 1},
|
||||
{result: 'immersiveengineering:treated_fence', count: 1},
|
||||
{result: 'immersiveengineering:treated_scaffold', count: 1},
|
||||
{result: 'immersiveengineering:waterwheel_segment', count: 1},
|
||||
{result: 'immersiveengineering:windmill_blade', count: 1},
|
||||
].forEach(recipe => {
|
||||
const {result, count} = recipe;
|
||||
event.custom({
|
||||
type: 'corail_woodcutter:woodcutting',
|
||||
ingredient: {tag: 'forge:treated_wood'},
|
||||
result: result,
|
||||
count: count,
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
onEvent('recipes', event => {
|
||||
event.campfireCooking('1x emendatusenigmatica:cast_iron_ingot', '#forge:ingots/iron');
|
||||
});
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
onEvent('recipes', event => {
|
||||
/*************************
|
||||
* Andesite Alloys *
|
||||
************************/
|
||||
event.custom({
|
||||
type: 'natural-progression:damage_tools',
|
||||
ingredients: [
|
||||
{item: 'minecraft:clay_ball'},
|
||||
{tag: 'forge:pebbles'},
|
||||
{tag: 'forge:pebbles'},
|
||||
{tag: 'harmeng:zinc_or_iron_chunk'},
|
||||
{tag: 'natural-progression:saw'},
|
||||
],
|
||||
result: {
|
||||
item: 'kubejs:crude_andesite_alloy',
|
||||
count: 1,
|
||||
},
|
||||
});
|
||||
event.smelting('create:andesite_alloy', 'kubejs:crude_andesite_alloy');
|
||||
|
||||
global.genAlloyingRecipe(
|
||||
event,
|
||||
{tag: 'chipped:andesite'},
|
||||
{tag: 'forge:ingots/zinc'},
|
||||
'create:andesite_alloy',
|
||||
2
|
||||
);
|
||||
});
|
||||
|
|
@ -2,6 +2,9 @@ onEvent('recipes', event => {
|
|||
event.remove({
|
||||
output: 'emendatusenigmatica:enigmatic_fortunizer',
|
||||
});
|
||||
event.remove({
|
||||
input: 'emendatusenigmatica:enigmatic_fortunizer',
|
||||
});
|
||||
|
||||
// Removes all enigmatic hammer recipes even though the hammer itself can't be crafted
|
||||
event.remove({
|
||||
|
|
@ -9,11 +12,6 @@ onEvent('recipes', event => {
|
|||
type: 'minecraft:crafting_shapeless',
|
||||
});
|
||||
|
||||
// event.remove({
|
||||
// output: "#forge:dusts",
|
||||
// type: "minecraft:crafting_shapeless",
|
||||
// });
|
||||
|
||||
// Removes all smelting recipes with input <ore> and output <ingot>
|
||||
event.remove({
|
||||
input: '#forge:ores',
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
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,
|
||||
});
|
||||
|
||||
// Fluxed Singularity Crafting
|
||||
event.custom({
|
||||
type: 'appliedenergistics2:inscriber',
|
||||
mode: 'press',
|
||||
result: {item: 'kubejs:fluxed_singularity'},
|
||||
ingredients: {
|
||||
top: {item: 'kubejs:ender_singularity'},
|
||||
middle: {item: 'appliedenergistics2:purified_fluix_crystal'},
|
||||
},
|
||||
});
|
||||
});
|
||||
Loading…
Reference in a new issue