port everything to KubeJS
This commit is contained in:
parent
3acef7947c
commit
50ad720258
1125 changed files with 39415 additions and 15189 deletions
|
|
@ -0,0 +1,194 @@
|
|||
const removeThermalGearRecipes = (event) => {
|
||||
const gears = [
|
||||
"aluminum",
|
||||
"brass",
|
||||
"bronze",
|
||||
"cast_iron",
|
||||
"cobalt",
|
||||
"constantan",
|
||||
"copper",
|
||||
"diamond",
|
||||
"electrum",
|
||||
"emerald",
|
||||
"enderium",
|
||||
"gold",
|
||||
"invar",
|
||||
"iridium",
|
||||
"iron",
|
||||
"lapis",
|
||||
"lead",
|
||||
"lumium",
|
||||
"nickel",
|
||||
"osmium",
|
||||
"peridot",
|
||||
"ruby",
|
||||
"sapphire",
|
||||
"signalum",
|
||||
"silver",
|
||||
"steel",
|
||||
"tin",
|
||||
"uranium",
|
||||
"zinc",
|
||||
];
|
||||
|
||||
gears.forEach((mat) => {
|
||||
event.remove({ output: `thermal:${mat}_gear` });
|
||||
event.remove({ id: `thermal:machine/press/press_${mat}_ingot_to_gear` });
|
||||
event.remove({ output: `emendatusenigmatica:${mat}_gear` });
|
||||
});
|
||||
|
||||
event.remove({ output: "emendatusenigmatica:quartz_gear" });
|
||||
};
|
||||
|
||||
const addGearRecipesForEE = (event) => {
|
||||
const allEeMaterials = [
|
||||
"forge:ingots/aluminum",
|
||||
"forge:ingots/brass",
|
||||
"forge:ingots/bronze",
|
||||
"forge:ingots/cast_iron",
|
||||
"forge:ingots/cobalt",
|
||||
"forge:ingots/constantan",
|
||||
"forge:ingots/copper",
|
||||
"forge:gems/diamond",
|
||||
"forge:ingots/electrum",
|
||||
"forge:gems/emerald",
|
||||
"forge:ingots/enderium",
|
||||
"forge:ingots/gold",
|
||||
"forge:ingots/invar",
|
||||
"forge:ingots/iridium",
|
||||
"forge:ingots/iron",
|
||||
"forge:gems/lapis",
|
||||
"forge:ingots/lead",
|
||||
"forge:ingots/lumium",
|
||||
"forge:ingots/nickel",
|
||||
"forge:ingots/osmium",
|
||||
"forge:gems/peridot",
|
||||
"forge:gems/ruby",
|
||||
"forge:gems/sapphire",
|
||||
"forge:ingots/signalum",
|
||||
"forge:ingots/silver",
|
||||
"forge:ingots/steel",
|
||||
"forge:ingots/tin",
|
||||
"forge:ingots/uranium",
|
||||
"forge:ingots/zinc",
|
||||
];
|
||||
|
||||
// Manual crafting
|
||||
allEeMaterials.forEach((mat) => {
|
||||
const baseMat = mat.replace("forge:ingots/", "").replace("forge:gems/", "");
|
||||
|
||||
event.remove({ id: `emendatusenigmatica:gear_from_ingot/${baseMat}` });
|
||||
event.remove({ id: `emendatusenigmatica:gear_from_gem/${baseMat}` });
|
||||
event.custom({
|
||||
result: {
|
||||
item: `emendatusenigmatica:${baseMat}_gear`,
|
||||
},
|
||||
type: "natural-progression:damage_tools",
|
||||
ingredients: [
|
||||
{
|
||||
item: "create:cogwheel",
|
||||
},
|
||||
{
|
||||
item: "immersiveengineering:hammer",
|
||||
},
|
||||
{
|
||||
tag: `forge:plates/${baseMat}`,
|
||||
},
|
||||
{
|
||||
tag: `forge:plates/${baseMat}`,
|
||||
},
|
||||
{
|
||||
tag: `forge:plates/${baseMat}`,
|
||||
},
|
||||
{
|
||||
tag: `forge:plates/${baseMat}`,
|
||||
},
|
||||
],
|
||||
});
|
||||
});
|
||||
|
||||
// Thermal Multiservo Press
|
||||
allEeMaterials.forEach((mat) => {
|
||||
const baseMat = mat.replace("forge:ingots/", "").replace("forge:gems/", "");
|
||||
event.remove({ output: `emendatusenigmatica:${baseMat}_gear` });
|
||||
event.custom({
|
||||
type: "thermal:press",
|
||||
ingredients: [
|
||||
{
|
||||
tag: mat,
|
||||
count: 4,
|
||||
},
|
||||
{
|
||||
item: "thermal:press_gear_die",
|
||||
},
|
||||
],
|
||||
result: [
|
||||
{
|
||||
item: `emendatusenigmatica:${baseMat}_gear`,
|
||||
},
|
||||
],
|
||||
});
|
||||
});
|
||||
|
||||
// IE Metal Press
|
||||
allEeMaterials.forEach((mat) => {
|
||||
const baseMat = mat.replace("forge:ingots/", "").replace("forge:gems/", "");
|
||||
event.custom({
|
||||
type: "immersiveengineering:metal_press",
|
||||
mold: {
|
||||
item: "immersiveengineering:mold_gear",
|
||||
},
|
||||
input: {
|
||||
count: 4,
|
||||
base_ingredient: {
|
||||
tag: mat,
|
||||
},
|
||||
},
|
||||
result: {
|
||||
item: `emendatusenigmatica:${baseMat}_gear`,
|
||||
},
|
||||
energy: 2400,
|
||||
});
|
||||
});
|
||||
|
||||
// Tinkers Casting
|
||||
allEeMaterials.forEach((mat) => {
|
||||
const baseMat = mat.replace("forge:ingots/", "").replace("forge:gems/", "");
|
||||
|
||||
event.custom({
|
||||
type: "tconstruct:casting_table",
|
||||
cast: {
|
||||
tag: "tconstruct:casts/multi_use/gear",
|
||||
},
|
||||
fluid: {
|
||||
tag: `forge:molten_${baseMat}`,
|
||||
amount: 576,
|
||||
},
|
||||
result: {
|
||||
item: `emendatusenigmatica:${baseMat}_gear`,
|
||||
},
|
||||
cooling_time: 100,
|
||||
});
|
||||
|
||||
event.custom({
|
||||
type: "tconstruct:casting_table",
|
||||
cast: {
|
||||
tag: "tconstruct:casts/single_use/gear",
|
||||
},
|
||||
cast_consumed: true,
|
||||
fluid: {
|
||||
tag: `forge:molten_${baseMat}`,
|
||||
amount: 576,
|
||||
},
|
||||
result: {
|
||||
item: `emendatusenigmatica:${baseMat}_gear`,
|
||||
},
|
||||
cooling_time: 100,
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
onEvent("recipes", (event) => {
|
||||
removeThermalGearRecipes(event);
|
||||
addGearRecipesForEE(event);
|
||||
});
|
||||
|
|
@ -0,0 +1,240 @@
|
|||
const addPlateRecipesForEE = (event) => {
|
||||
const allEeMaterials = [
|
||||
"forge:ingots/aluminum",
|
||||
"forge:ingots/brass",
|
||||
"forge:ingots/bronze",
|
||||
"forge:ingots/cast_iron",
|
||||
"forge:ingots/cobalt",
|
||||
"forge:ingots/constantan",
|
||||
"forge:ingots/copper",
|
||||
"forge:gems/diamond",
|
||||
"forge:ingots/electrum",
|
||||
"forge:gems/emerald",
|
||||
"forge:ingots/enderium",
|
||||
"forge:ingots/gold",
|
||||
"forge:ingots/invar",
|
||||
"forge:ingots/iridium",
|
||||
"forge:ingots/iron",
|
||||
"forge:gems/lapis",
|
||||
"forge:ingots/lead",
|
||||
"forge:ingots/lumium",
|
||||
"forge:ingots/nickel",
|
||||
"forge:ingots/osmium",
|
||||
"forge:gems/peridot",
|
||||
"forge:gems/ruby",
|
||||
"forge:gems/sapphire",
|
||||
"forge:ingots/signalum",
|
||||
"forge:ingots/silver",
|
||||
"forge:ingots/steel",
|
||||
"forge:ingots/tin",
|
||||
"forge:ingots/uranium",
|
||||
"forge:ingots/zinc",
|
||||
];
|
||||
|
||||
// Thermal Multiservo Press
|
||||
allEeMaterials.forEach((mat) => {
|
||||
const baseMat = mat.replace("forge:ingots/", "").replace("forge:gems/", "");
|
||||
event.custom({
|
||||
type: "thermal:press",
|
||||
ingredients: [
|
||||
{
|
||||
tag: mat,
|
||||
count: 1,
|
||||
},
|
||||
],
|
||||
result: [
|
||||
{
|
||||
item: `emendatusenigmatica:${baseMat}_plate`,
|
||||
},
|
||||
],
|
||||
});
|
||||
});
|
||||
|
||||
// Create metal press
|
||||
allEeMaterials.forEach((mat) => {
|
||||
const baseMat = mat.replace("forge:ingots/", "").replace("forge:gems/", "");
|
||||
event.custom({
|
||||
type: "create:pressing",
|
||||
ingredients: [
|
||||
{
|
||||
tag: mat,
|
||||
},
|
||||
],
|
||||
results: [
|
||||
{
|
||||
item: `emendatusenigmatica:${baseMat}_plate`,
|
||||
},
|
||||
],
|
||||
});
|
||||
});
|
||||
|
||||
// IE Metal Press
|
||||
allEeMaterials.forEach((mat) => {
|
||||
const baseMat = mat.replace("forge:ingots/", "").replace("forge:gems/", "");
|
||||
event.custom({
|
||||
type: "immersiveengineering:metal_press",
|
||||
mold: {
|
||||
item: "immersiveengineering:mold_plate",
|
||||
},
|
||||
input: {
|
||||
tag: mat,
|
||||
},
|
||||
result: {
|
||||
item: `emendatusenigmatica:${baseMat}_plate`,
|
||||
},
|
||||
energy: 2400,
|
||||
});
|
||||
});
|
||||
|
||||
// Tinkers Casting
|
||||
allEeMaterials.forEach((mat) => {
|
||||
const baseMat = mat.replace("forge:ingots/", "").replace("forge:gems/", "");
|
||||
|
||||
event.custom({
|
||||
type: "tconstruct:casting_table",
|
||||
cast: {
|
||||
tag: "tconstruct:casts/multi_use/plate",
|
||||
},
|
||||
fluid: {
|
||||
tag: `forge:molten_${baseMat}`,
|
||||
amount: 144,
|
||||
},
|
||||
result: {
|
||||
item: `emendatusenigmatica:${baseMat}_plate`,
|
||||
},
|
||||
cooling_time: 65,
|
||||
});
|
||||
|
||||
event.custom({
|
||||
type: "tconstruct:casting_table",
|
||||
cast: {
|
||||
tag: "tconstruct:casts/single_use/plate",
|
||||
},
|
||||
cast_consumed: true,
|
||||
fluid: {
|
||||
tag: `forge:molten_${baseMat}`,
|
||||
amount: 144,
|
||||
},
|
||||
result: {
|
||||
item: `emendatusenigmatica:${baseMat}_plate`,
|
||||
},
|
||||
cooling_time: 65,
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
const removeIERecipes = (event) => {
|
||||
[
|
||||
"aluminum",
|
||||
"brass",
|
||||
"bronze",
|
||||
"cast_iron",
|
||||
"cobalt",
|
||||
"constantan",
|
||||
"copper",
|
||||
"electrum",
|
||||
"enderium",
|
||||
"gold",
|
||||
"invar",
|
||||
"iridium",
|
||||
"iron",
|
||||
"lead",
|
||||
"lumium",
|
||||
"nickel",
|
||||
"osmium",
|
||||
"signalum",
|
||||
"silver",
|
||||
"steel",
|
||||
"tin",
|
||||
"uranium",
|
||||
"zinc",
|
||||
].forEach((mat) => {
|
||||
event.remove({ id: `immersiveengineering:metalpress/plate_${mat}` });
|
||||
});
|
||||
};
|
||||
|
||||
const removeThermalPlateRecipes = (event) => {
|
||||
const plates = [
|
||||
"bronze_plate",
|
||||
"constantan_plate",
|
||||
"copper_plate",
|
||||
"diamond_plate",
|
||||
"electrum_plate",
|
||||
"emerald_plate",
|
||||
"enderium_plate",
|
||||
"gold_plate",
|
||||
"invar_plate",
|
||||
"iron_plate",
|
||||
"lapis_plate",
|
||||
"lead_plate",
|
||||
"lumium_plate",
|
||||
"nickel_plate",
|
||||
"quartz_plate",
|
||||
"signalum_plate",
|
||||
"silver_plate",
|
||||
"tin_plate",
|
||||
];
|
||||
|
||||
plates.forEach((plate) => {
|
||||
const mat = plate.replace("_plate", "");
|
||||
event.remove({ output: `thermal:${plate}` });
|
||||
event.remove({ id: `thermal:machine/press/press_${mat}_ingot_to_plate` });
|
||||
});
|
||||
event.remove({
|
||||
id: "thermal:compat/immersiveengineering/press_ie_uranium_ingot_to_plate",
|
||||
});
|
||||
};
|
||||
|
||||
const removeTinkersPlateRecipes = (event) => {
|
||||
[
|
||||
"aluminum",
|
||||
"brass",
|
||||
"bronze",
|
||||
"cast_iron",
|
||||
"cobalt",
|
||||
"constantan",
|
||||
"copper",
|
||||
"electrum",
|
||||
"enderium",
|
||||
"gold",
|
||||
"invar",
|
||||
"iridium",
|
||||
"iron",
|
||||
"lead",
|
||||
"lumium",
|
||||
"nickel",
|
||||
"osmium",
|
||||
"signalum",
|
||||
"silver",
|
||||
"steel",
|
||||
"tin",
|
||||
"uranium",
|
||||
"zinc",
|
||||
].forEach((mat) => {
|
||||
event.remove({
|
||||
id: `tconstruct:smeltery/casting/metal/${mat}/plate_gold_cast`,
|
||||
});
|
||||
event.remove({
|
||||
id: `tconstruct:smeltery/casting/metal/${mat}/plate_sand_cast`,
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
const removeCreateRecipes = (event) => {
|
||||
event.remove({ id: "create:pressing/iron_ingot" });
|
||||
event.remove({ id: "create:pressing/gold_ingot" });
|
||||
event.remove({ id: "create:pressing/copper_ingot" });
|
||||
event.remove({ id: "create:pressing/brass_ingot" });
|
||||
event.remove({ id: "createaddition:pressing/zinc_ingot" });
|
||||
event.remove({ id: "minecraft:pressing/zinc_sheet" });
|
||||
event.remove({ id: "minecraft:pressing/netherite_sheet" });
|
||||
};
|
||||
|
||||
onEvent("recipes", (event) => {
|
||||
removeThermalPlateRecipes(event);
|
||||
removeTinkersPlateRecipes(event);
|
||||
removeCreateRecipes(event);
|
||||
removeIERecipes(event);
|
||||
|
||||
addPlateRecipesForEE(event);
|
||||
});
|
||||
|
|
@ -0,0 +1,212 @@
|
|||
const removeRodRecipes = (event) => {
|
||||
const rodMats = [
|
||||
"forge:ingots/aluminum",
|
||||
"forge:ingots/brass",
|
||||
"forge:ingots/bronze",
|
||||
"forge:ingots/cast_iron",
|
||||
"forge:ingots/cobalt",
|
||||
"forge:ingots/constantan",
|
||||
"forge:ingots/copper",
|
||||
"forge:gems/diamond",
|
||||
"forge:ingots/electrum",
|
||||
"forge:gems/emerald",
|
||||
"forge:ingots/enderium",
|
||||
"forge:ingots/gold",
|
||||
"forge:ingots/invar",
|
||||
"forge:ingots/iridium",
|
||||
"forge:ingots/iron",
|
||||
"forge:gems/lapis",
|
||||
"forge:ingots/lead",
|
||||
"forge:ingots/lumium",
|
||||
"forge:ingots/nickel",
|
||||
"forge:ingots/osmium",
|
||||
"forge:gems/peridot",
|
||||
"forge:gems/ruby",
|
||||
"forge:gems/sapphire",
|
||||
"forge:ingots/signalum",
|
||||
"forge:ingots/silver",
|
||||
"forge:ingots/steel",
|
||||
"forge:ingots/tin",
|
||||
"forge:ingots/uranium",
|
||||
"forge:ingots/zinc",
|
||||
];
|
||||
|
||||
rodMats.forEach((tag) => {
|
||||
const baseMat = tag.replace("forge:ingots/", "").replace("forge:gems/", "");
|
||||
event.remove({ output: `#forge:rods/${baseMat}` });
|
||||
// Remove existing inconsistent tcon recipes
|
||||
event.remove({
|
||||
id: `tconstruct:smeltery/casting/metal/${baseMat}/rod_gold_cast`,
|
||||
});
|
||||
event.remove({
|
||||
id: `tconstruct:smeltery/casting/metal/${baseMat}/rod_sand_cast`,
|
||||
});
|
||||
event.remove({ id: `createaddition:rolling/${baseMat}_ingot` });
|
||||
event.remove({ id: `immersiveengineering:metalpress/rod_${baseMat}` });
|
||||
});
|
||||
};
|
||||
|
||||
const addRodRecipesForEE = (event) => {
|
||||
const allEeMaterials = [
|
||||
"forge:ingots/aluminum",
|
||||
"forge:ingots/brass",
|
||||
"forge:ingots/bronze",
|
||||
"forge:ingots/cast_iron",
|
||||
"forge:ingots/cobalt",
|
||||
"forge:ingots/constantan",
|
||||
"forge:ingots/copper",
|
||||
"forge:gems/diamond",
|
||||
"forge:ingots/electrum",
|
||||
"forge:gems/emerald",
|
||||
"forge:ingots/enderium",
|
||||
"forge:ingots/gold",
|
||||
"forge:ingots/invar",
|
||||
"forge:ingots/iridium",
|
||||
"forge:ingots/iron",
|
||||
"forge:gems/lapis",
|
||||
"forge:ingots/lead",
|
||||
"forge:ingots/lumium",
|
||||
"forge:ingots/nickel",
|
||||
"forge:ingots/osmium",
|
||||
"forge:gems/peridot",
|
||||
"forge:gems/ruby",
|
||||
"forge:gems/sapphire",
|
||||
"forge:ingots/signalum",
|
||||
"forge:ingots/silver",
|
||||
"forge:ingots/steel",
|
||||
"forge:ingots/tin",
|
||||
"forge:ingots/uranium",
|
||||
"forge:ingots/zinc",
|
||||
];
|
||||
|
||||
// Manual crafting
|
||||
allEeMaterials.forEach((tag) => {
|
||||
const baseMat = tag.replace("forge:ingots/", "").replace("forge:gems/", "");
|
||||
event.shaped(`2x emendatusenigmatica:${baseMat}_rod`, ["I", "I"], {
|
||||
I: `#${tag}`,
|
||||
});
|
||||
});
|
||||
|
||||
// Thermal multiservo press
|
||||
allEeMaterials.forEach((tag) => {
|
||||
const baseMat = tag.replace("forge:ingots/", "").replace("forge:gems/", "");
|
||||
event.custom({
|
||||
type: "thermal:press",
|
||||
ingredients: [
|
||||
{
|
||||
tag: tag,
|
||||
},
|
||||
{
|
||||
item: "immersiveengineering:mold_rod",
|
||||
},
|
||||
],
|
||||
result: [
|
||||
{
|
||||
item: `emendatusenigmatica:${baseMat}_rod`,
|
||||
count: 2,
|
||||
},
|
||||
],
|
||||
});
|
||||
});
|
||||
|
||||
// IE Press (overwritten from AVSP/replaceoutputs.js)
|
||||
allEeMaterials.forEach((mat) => {
|
||||
const baseMat = mat.replace("forge:ingots/", "").replace("forge:gems/", "");
|
||||
event.custom({
|
||||
type: "immersiveengineering:metal_press",
|
||||
mold: {
|
||||
item: "immersiveengineering:mold_rod",
|
||||
},
|
||||
input: {
|
||||
count: 1,
|
||||
base_ingredient: {
|
||||
tag: mat,
|
||||
},
|
||||
},
|
||||
result: {
|
||||
item: `emendatusenigmatica:${baseMat}_plate`,
|
||||
count: 2,
|
||||
},
|
||||
energy: 2400,
|
||||
});
|
||||
});
|
||||
|
||||
// TConstruct Casting
|
||||
allEeMaterials.forEach((tag) => {
|
||||
const baseMat = tag.replace("forge:ingots/", "").replace("forge:gems/", "");
|
||||
|
||||
event.custom({
|
||||
type: "tconstruct:casting_table",
|
||||
cast: {
|
||||
tag: "tconstruct:casts/multi_use/rod",
|
||||
},
|
||||
fluid: {
|
||||
tag: `forge:molten_${baseMat}`,
|
||||
amount: 72,
|
||||
},
|
||||
result: {
|
||||
item: `emendatusenigmatica:${baseMat}_rod`,
|
||||
},
|
||||
cooling_time: 20,
|
||||
});
|
||||
|
||||
event.custom({
|
||||
type: "tconstruct:casting_table",
|
||||
cast: {
|
||||
tag: "tconstruct:casts/single_use/rod",
|
||||
},
|
||||
cast_consumed: true,
|
||||
fluid: {
|
||||
tag: `forge:molten_${baseMat}`,
|
||||
amount: 72,
|
||||
},
|
||||
result: {
|
||||
item: `emendatusenigmatica:${baseMat}_rod`,
|
||||
},
|
||||
cooling_time: 20,
|
||||
});
|
||||
});
|
||||
|
||||
// Create Additions Rolling
|
||||
allEeMaterials.forEach((tag) => {
|
||||
const baseMat = tag.replace("forge:ingots/", "").replace("forge:gems/", "");
|
||||
event.custom({
|
||||
type: "createaddition:rolling",
|
||||
input: {
|
||||
tag: tag,
|
||||
},
|
||||
result: {
|
||||
item: `emendatusenigmatica:${baseMat}_rod`,
|
||||
count: 2,
|
||||
},
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
onEvent("recipes", (event) => {
|
||||
removeRodRecipes(event);
|
||||
addRodRecipesForEE(event);
|
||||
|
||||
// custom thermal recipe for graphite electrode
|
||||
event.custom({
|
||||
type: "thermal:press",
|
||||
ingredients: [
|
||||
{
|
||||
tag: "forge:ingots/hop_graphite",
|
||||
count: 4,
|
||||
},
|
||||
{
|
||||
item: "immersiveengineering:mold_rod",
|
||||
},
|
||||
],
|
||||
result: [
|
||||
{
|
||||
item: "immersiveengineering:graphite_electrode",
|
||||
count: 1,
|
||||
nbt: {
|
||||
graphDmg: 48000,
|
||||
},
|
||||
},
|
||||
],
|
||||
});
|
||||
});
|
||||
Loading…
Reference in a new issue