Refactor ore processing to reduce globals

This commit is contained in:
oitsjustjose 2022-07-16 20:53:55 -05:00
commit e77dbea18a

View file

@ -1,3 +1,4 @@
onEvent('recipes', event => {
const resourceFromName = (metal, type, qty) => {
const mc = Item.of(`${qty || 1}x minecraft:${metal}_${type}`);
const thermal = Item.of(`${qty || 1}x thermal:${metal}_${type}`);
@ -76,7 +77,6 @@ const toIngots = event => {
});
};
onEvent('recipes', event => {
remove(event);
toNuggets(event);
toDust(event);