mods: add wormhole_artifact, rebalance functionalstorage, and rebalance create ore line

This commit is contained in:
2025-04-27 14:47:10 +02:00
parent 0f6f626cc0
commit d22dada376
6 changed files with 123 additions and 23 deletions

View File

@ -40,6 +40,7 @@ ServerEvents.recipes(event => {
let ingotType = metalForm(metal, 'ingots', 'ingot');
let rawType = metalForm(metal, 'raw_materials', 'ore');
let blockType = metalForm(`raw_${metal}`, 'storage_blocks', 'block');
let crushedType = Item.of(`create:crushed_raw_${metal}`);
event.remove({output: gearType});
event.remove({output: plateType});
@ -51,6 +52,17 @@ ServerEvents.recipes(event => {
event.remove({output: dustType, type: 'minecraft:crafting'});
event.remove({output: ingotType, input: 'minecraft:fire_charge'});
// Remove the default conversion of ingot to nuggets from create
event.remove({input: ingotType, type: 'create:crushing'});
// And completely eliminate the default refining line with create crushed ores
if (crushedType.id != 'minecraft:air') {
event.remove({input: crushedType});
event.remove({output: crushedType});
} else {
console.log(`metals: Missing create:crushed_raw_${metal}`);
}
event.remove({id: `alltheores:${metal}_dust_from_alloy_blending`});
console.log(`crushing ${rawType.toJson()} ${dustType.toJson()}`);
@ -67,18 +79,20 @@ ServerEvents.recipes(event => {
experience: 0.5
});
event.custom({
type: "create:crushing",
ingredients: [
{tag: `forge:raw_materials/${metal}`}
],
results: [
{item: dustType.id, chance: 1.05},
{item: dustType.id, chance: 0.25},
{item: 'create:experience_nugget', count: 9, chance: 0.75}
],
experience: 0.5
});
if (crushedType.id != 'minecraft:air') {
event.custom({
type: "create:crushing",
ingredients: [
{tag: `forge:raw_materials/${metal}`}
],
results: [
{item: crushedType.id, chance: 1},
{item: crushedType.id, chance: 0.25},
{item: dustType.id, chance: 0.05},
{item: 'create:experience_nugget', count: 2, chance: 0.75}
],
});
}
}
if (blockType.id != "minecraft:air") {
@ -88,23 +102,52 @@ ServerEvents.recipes(event => {
{tag: `forge:storage_blocks/raw_${metal}`}
],
result: [
{item: dustType.id, chance: 1.05 * 9},
{item: dustType.id, chance: 0.25 * 9}
{item: dustType.id, count: 9, chance: 1},
{item: dustType.id, count: 9, chance: 0.25}
],
experience: 0.5
});
if (crushedType.id != 'minecraft:air') {
event.custom({
type: "create:crushing",
ingredients: [
{tag: `forge:storage_blocks/raw_${metal}`}
],
results: [
{item: crushedType.id, count: 9, chance: 1},
{item: crushedType.id, count: 9, chance: 0.25},
{item: dustType.id, count: 9, chance: 0.05},
{item: 'create:experience_nugget', count: 2 * 9, chance: 0.75}
],
});
}
}
// Set up the parallel create-based ore washing line
if (crushedType.id != 'minecraft:air') {
event.custom({
type: "create:crushing",
type: "create:splashing",
ingredients: [
{tag: `forge:storage_blocks/${metal}`}
{item: crushedType.id }
],
results: [
{item: dustType.id, count: 9, chance: 1.05},
{item: dustType.id, count: 9, chance: 0.25},
{item: 'create:experience_nugget', count: 9 * 9, chance: 0.75}
{item: dustType.id, count: 2, chance: 1},
{item: dustType.id, chance: 0.25},
{item: dustType.id, chance: 0.05},
],
});
event.custom({
type: "thermal:centrifuge",
ingredients: [
{item: crushedType.id }
],
result: [
{item: dustType.id, count: 3, chance: 3.0},
{item: dustType.id, chance: 0.75},
{item: "twigs:pebble", chance: 0.05}
],
experience: 0.5
});
}