jsp
This commit is contained in:
@@ -0,0 +1,208 @@
|
||||
// priority: 963
|
||||
|
||||
ServerEvents.recipes((event) => {
|
||||
|
||||
//Making Sure that all XyCraft Recipes use Xy's Aluminum
|
||||
|
||||
let xycraft_recipe_ids = [
|
||||
"xycraft:shaped/machine_base",
|
||||
"xycraft:shaped/extractor",
|
||||
"xycraft:shaped/void_container",
|
||||
"xycraft:shapeless/port_fluid",
|
||||
"xycraft:shaped/foil",
|
||||
"xycraft:shaped/hydro_pump",
|
||||
"immersiveengineering:crafting/nugget_aluminum_to_ingot_aluminum"
|
||||
];
|
||||
|
||||
xycraft_recipe_ids.forEach(recipe => {
|
||||
event.replaceInput(
|
||||
{ id: recipe },
|
||||
'ftbmaterials:aluminum_ingot',
|
||||
'xycraft_world:aluminum_ingot'
|
||||
)
|
||||
event.replaceInput(
|
||||
{ id: recipe },
|
||||
'ftbmaterials:aluminum_nugget',
|
||||
'xycraft_world:aluminum_nugget'
|
||||
)
|
||||
});
|
||||
|
||||
const xycraft_crystal_recipes = [
|
||||
{ ore: "xycraft_world:xychorium_ore_stone_blue", crystal: "xycraft_world:xychorium_gem_blue" },
|
||||
{ ore: "xycraft_world:xychorium_ore_stone_green", crystal: "xycraft_world:xychorium_gem_green" },
|
||||
{ ore: "xycraft_world:xychorium_ore_stone_red", crystal: "xycraft_world:xychorium_gem_red" },
|
||||
{ ore: "xycraft_world:xychorium_ore_stone_dark", crystal: "xycraft_world:xychorium_gem_dark" },
|
||||
{ ore: "xycraft_world:xychorium_ore_stone_light", crystal: "xycraft_world:xychorium_gem_light" },
|
||||
|
||||
{ ore: "xycraft_world:xychorium_ore_deepslate_blue", crystal: "xycraft_world:xychorium_gem_blue" },
|
||||
{ ore: "xycraft_world:xychorium_ore_deepslate_green", crystal: "xycraft_world:xychorium_gem_green" },
|
||||
{ ore: "xycraft_world:xychorium_ore_deepslate_red", crystal: "xycraft_world:xychorium_gem_red" },
|
||||
{ ore: "xycraft_world:xychorium_ore_deepslate_dark", crystal: "xycraft_world:xychorium_gem_dark" },
|
||||
{ ore: "xycraft_world:xychorium_ore_deepslate_light", crystal: "xycraft_world:xychorium_gem_light" }
|
||||
];
|
||||
|
||||
xycraft_crystal_recipes.forEach(recipe => {
|
||||
let rock_type = recipe.ore.split(":")[1].split("_ore_")[1].split("_")[0];
|
||||
let recipe_id = ``;
|
||||
|
||||
//Defining the Rock Type for both the Create Crushing Recipe and the Recipe ID.
|
||||
if (rock_type == "stone") {
|
||||
rock_type = "minecraft:cobblestone"
|
||||
recipe_id = `${recipe.crystal.split(":")[0]}/${recipe.crystal.split(":")[1]}/${rock_type.split(":")[1]}`
|
||||
} else {
|
||||
rock_type = "minecraft:cobbled_deepslate"
|
||||
recipe_id = `${recipe.crystal.split(":")[0]}/${recipe.crystal.split(":")[1]}/${rock_type.split(":")[1].split("_")[1]}`
|
||||
}
|
||||
|
||||
event.custom({
|
||||
"type": "integrateddynamics:squeezer",
|
||||
"input_item": {
|
||||
"item": recipe.ore
|
||||
},
|
||||
"output_items": [
|
||||
{
|
||||
"item": {
|
||||
"count": 2,
|
||||
"id": recipe.crystal
|
||||
}
|
||||
},
|
||||
{
|
||||
"item": {
|
||||
"id": recipe.crystal
|
||||
},
|
||||
"chance": 0.5
|
||||
}
|
||||
]
|
||||
}).id(`ftbevolution:integrateddynamics/squeezer/${recipe_id}`);
|
||||
|
||||
event.custom({
|
||||
"type": "integrateddynamics:mechanical_squeezer",
|
||||
"input_item": {
|
||||
"item": recipe.ore
|
||||
},
|
||||
"output_items": [
|
||||
{
|
||||
"item": {
|
||||
"count": 2,
|
||||
"id": recipe.crystal
|
||||
}
|
||||
},
|
||||
{
|
||||
"item": {
|
||||
"id": recipe.crystal
|
||||
},
|
||||
"chance": 0.5
|
||||
}
|
||||
],
|
||||
"duration": 30
|
||||
}).id(`ftbevolution:integrateddynamics/mechanical_squeezer/${recipe_id}`);
|
||||
|
||||
event.custom({
|
||||
"type": "actuallyadditions:crushing",
|
||||
"ingredient": {
|
||||
"item": recipe.ore
|
||||
},
|
||||
"result": [
|
||||
{
|
||||
"result": {
|
||||
"count": 2,
|
||||
"id": recipe.crystal
|
||||
}
|
||||
},
|
||||
{
|
||||
"chance": 0.5,
|
||||
"result": {
|
||||
"count": 1,
|
||||
"id": recipe.crystal
|
||||
}
|
||||
}
|
||||
]
|
||||
}).id(`ftbevolution:actuallyadditions/crushing/${recipe_id}`);
|
||||
|
||||
event.custom({
|
||||
"type": "create:crushing",
|
||||
"ingredients": [
|
||||
{
|
||||
"type": "neoforge:compound",
|
||||
"ingredients": [
|
||||
{
|
||||
"item": recipe.ore
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"processing_time": 350,
|
||||
"results": [
|
||||
{
|
||||
"count": 2,
|
||||
"id": recipe.crystal
|
||||
},
|
||||
{
|
||||
"chance": 0.25,
|
||||
"id": recipe.crystal
|
||||
},
|
||||
{
|
||||
"chance": 0.12,
|
||||
"id": rock_type
|
||||
},
|
||||
{
|
||||
"chance": 0.75,
|
||||
"id": "create:experience_nugget"
|
||||
}
|
||||
]
|
||||
}).id(`ftbevolution:create/crushing/${recipe_id}`);
|
||||
|
||||
event.custom({
|
||||
type: "oritech:pulverizer",
|
||||
fluidInput: {
|
||||
amount: 0,
|
||||
fluid: "minecraft:empty"
|
||||
},
|
||||
fluidOutput: {
|
||||
amount: 0,
|
||||
fluid: "minecraft:empty"
|
||||
},
|
||||
ingredients: [
|
||||
{
|
||||
item: recipe.ore
|
||||
}
|
||||
],
|
||||
results: [
|
||||
{
|
||||
count: 1,
|
||||
id: recipe.crystal
|
||||
}
|
||||
],
|
||||
time: 200
|
||||
}).id(`ftbevolution:oritech/pulverizer/${recipe_id}`);
|
||||
|
||||
event.custom({
|
||||
"type": "oritech:grinder",
|
||||
"fluidInput": {
|
||||
"amount": 0,
|
||||
"fluid": "minecraft:empty"
|
||||
},
|
||||
"fluidOutputs": [],
|
||||
"ingredients": [
|
||||
{
|
||||
item: recipe.ore
|
||||
}
|
||||
],
|
||||
"results": [
|
||||
{
|
||||
"count": 2,
|
||||
"id": recipe.crystal
|
||||
}
|
||||
],
|
||||
"time": 140
|
||||
}).id(`ftbevolution:oritech/grinder/${recipe_id}`);
|
||||
});
|
||||
|
||||
//Editing the Alu Block Forced Recipe to not include MI's Alu.
|
||||
event.replaceInput(
|
||||
{ id: 'xycraft:packing/aluminum_storage_forced' },
|
||||
'ftbmaterials:aluminum_ingot',
|
||||
'xycraft_world:aluminum_ingot'
|
||||
);
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user