Fix casting for blocks

This commit is contained in:
oitsjustjose 2022-02-07 23:46:34 -06:00
commit 6168cccf4d

View file

@ -36,10 +36,13 @@ onEvent('recipes', event => {
allMetals.forEach(metal => { allMetals.forEach(metal => {
const ing = `emendatusenigmatica:${metal}_ingot`; const ing = `emendatusenigmatica:${metal}_ingot`;
const nug = `emendatusenigmatica:${metal}_nugget`; const nug = `emendatusenigmatica:${metal}_nugget`;
const blk = `emendatusenigmatica:${metal}_block`;
const ingTag = `forge:ingots/${metal}`; const ingTag = `forge:ingots/${metal}`;
const nugTag = `forge:nuggets/${metal}`; const nugTag = `forge:nuggets/${metal}`;
const blkTag = `forge:storage_blocks/${metal}`;
event.remove({type: 'tconstruct:casting_table', output: `#${ingTag}`}); event.remove({type: 'tconstruct:casting_table', output: `#${ingTag}`});
event.remove({type: 'tconstruct:casting_table', output: `#${nugTag}`}); event.remove({type: 'tconstruct:casting_table', output: `#${nugTag}`});
event.remove({type: 'tconstruct:casting_table', output: `#${blkTag}`});
ingotCasts.forEach(cast => { ingotCasts.forEach(cast => {
event.custom({ event.custom({
@ -66,5 +69,15 @@ onEvent('recipes', event => {
cooling_time: 7, cooling_time: 7,
}); });
}); });
event.custom({
type: 'tconstruct:casting_basin',
fluid: {
tag: `forge:molten_${metal}`,
amount: 1296,
},
result: {item: blk},
cooling_time: 150,
});
}); });
}); });