Harmonious-Engineering/kubejs/server_scripts/HarmoniousEngineering/recipes/progression/cinnabar.js
2022-02-28 08:18:21 -06:00

88 lines
2.6 KiB
JavaScript

onEvent('recipes', event => {
const COUNTS = {
mill: 1,
crusher: 2,
machine: 3,
purify: 4,
};
/********************************
* IE Crusher *
*******************************/
event.custom({
type: 'immersiveengineering:crusher',
input: {tag: 'forge:ores/cinnabar'},
result: {count: COUNTS.machine, base_ingredient: {item: 'minecraft:redstone'}},
secondaries: [],
energy: 12000,
});
event.custom({
type: 'immersiveengineering:crusher',
input: {tag: 'forge:gems/cinnabar'},
result: {count: COUNTS.machine, base_ingredient: {item: 'minecraft:redstone'}},
secondaries: [],
energy: 9000,
});
/**********************************
* Create *
**********************************/
// Milling Gem (No Ore Permitted)
event.custom({
type: 'create:milling',
ingredients: [{tag: 'forge:gems/cinnabar'}],
results: [{item: 'minecraft:redstone', count: COUNTS.mill}],
processingTime: 750,
});
event.custom({
type: 'create:crushing',
ingredients: [{tag: 'forge:ores/cinnabar'}],
results: [
{item: 'minecraft:redstone', count: COUNTS.crusher},
{item: 'minecraft:cobblestone', chance: 0.3},
],
processingTime: 950,
});
event.custom({
type: 'create:crushing',
ingredients: [{tag: 'forge:gems/cinnabar'}],
results: [{item: 'minecraft:redstone', count: COUNTS.crusher}],
processingTime: 600,
});
/**********************************
* Mekanism *
**********************************/
event.custom({
type: 'mekanism:enriching',
input: {ingredient: {tag: 'forge:gems/cinnabar'}},
output: {item: 'minecraft:redstone', count: COUNTS.machine},
});
event.custom({
type: 'mekanism:purifying',
itemInput: {ingredient: {tag: 'forge:gems/cinnabar'}},
gasInput: {amount: 1, gas: 'mekanism:oxygen'},
output: {item: 'minecraft:redstone', count: COUNTS.purify},
});
/***********************************
* Thermal *
**********************************/
// Remove the cinnabar dust recipe.
event.remove({id: 'thermal:machine/pulverizer/pulverizer_cinnabar'});
event.custom({
type: 'thermal:pulverizer',
ingredient: {tag: 'forge:ores/cinnabar'},
result: [
{item: 'minecraft:redstone', count: COUNTS.machine},
{item: 'minecraft:gravel', chance: 0.2},
],
experience: 1.4,
});
event.custom({
type: 'thermal:pulverizer',
ingredient: {tag: 'forge:gems/cinnabar'},
result: [{item: 'minecraft:redstone', count: COUNTS.machine}],
experience: 0.0,
});
});