Fix EE ingots not being casted.
This commit is contained in:
parent
3569efb422
commit
224b2e929f
1 changed files with 72 additions and 0 deletions
|
|
@ -0,0 +1,72 @@
|
|||
const allMetals = [
|
||||
'aluminum',
|
||||
'brass',
|
||||
'bronze',
|
||||
'cast_iron',
|
||||
'cobalt',
|
||||
'constantan',
|
||||
'copper',
|
||||
'electrum',
|
||||
'enderium',
|
||||
'gold',
|
||||
'invar',
|
||||
'iridium',
|
||||
'iron',
|
||||
'lead',
|
||||
'lumium',
|
||||
'nickel',
|
||||
'osmium',
|
||||
'signalum',
|
||||
'silver',
|
||||
'steel',
|
||||
'tin',
|
||||
'uranium',
|
||||
'zinc',
|
||||
];
|
||||
|
||||
const ingotCasts = [
|
||||
{tag: 'tconstruct:casts/multi_use/ingot'},
|
||||
{tag: 'tconstruct:casts/single_use/ingot'},
|
||||
];
|
||||
|
||||
const nuggetCasts = [
|
||||
{tag: 'tconstruct:casts/multi_use/ingot'},
|
||||
{tag: 'tconstruct:casts/single_use/ingot'},
|
||||
];
|
||||
|
||||
onEvent('recipes', event => {
|
||||
allMetals.forEach(metal => {
|
||||
const ing = `emendatusenigmatica:${metal}_ingot`;
|
||||
const nug = `emendatusenigmatica:${metal}_nigget`;
|
||||
const ingTag = `forge:ingots/${metal}`;
|
||||
const nugTag = `forge:nuggets/${metal}`;
|
||||
event.remove({type: 'tconstruct:casting_table', output: `#${ingTag}`});
|
||||
event.remove({type: 'tconstruct:casting_table', output: `#${nugTag}`});
|
||||
|
||||
ingotCasts.forEach(cast => {
|
||||
event.custom({
|
||||
type: 'tconstruct:casting_table',
|
||||
cast: cast,
|
||||
fluid: {
|
||||
tag: `forge:molten_${metal}`,
|
||||
amount: 144,
|
||||
},
|
||||
result: {item: ing},
|
||||
cooling_time: 57,
|
||||
});
|
||||
});
|
||||
|
||||
nuggetCasts.forEach(cast => {
|
||||
event.custom({
|
||||
type: 'tconstruct:casting_table',
|
||||
cast: cast,
|
||||
fluid: {
|
||||
tag: `forge:molten_${metal}`,
|
||||
amount: 16,
|
||||
},
|
||||
result: {item: nug},
|
||||
cooling_time: 7,
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
Loading…
Reference in a new issue