1+ const blacklist = [ "aluminum" ] ;
2+
13ServerEvents . recipes ( event => {
24 const id = global . id ;
35
@@ -15,7 +17,7 @@ ServerEvents.recipes(event => {
1517
1618 const oreTagSplit = itemInput . ingredient . tag . split ( '/' ) ;
1719
18- if ( oreTagSplit [ 0 ] === 'forge:raw_materials' ) {
20+ if ( oreTagSplit [ 0 ] === 'forge:raw_materials' && ! blacklist . includes ( oreTagSplit [ 1 ] ) ) {
1921 const itemOutput = macData . outputs . item [ 0 ] . content ;
2022
2123 event . recipes . gtceu . pulverizer ( id ( `crushed_${ oreTagSplit [ 1 ] } ` ) )
@@ -36,20 +38,24 @@ ServerEvents.recipes(event => {
3638
3739 const oreTagSplit = furnInput . tag . split ( '/' ) ;
3840
39- if ( oreTagSplit [ 0 ] === 'forge:raw_materials' ) {
41+ if ( oreTagSplit [ 0 ] === 'forge:raw_materials' && ! blacklist . includes ( oreTagSplit [ 1 ] ) ) {
4042 const oreName = oreTagSplit [ 1 ] ;
4143 const furnOutput = furnData . result ;
4244
45+ console . log ( `Creating pulverizer recipes for heated ${ oreName } ...` ) ;
46+ console . log ( furnInput ) ;
47+ console . log ( furnOutput ) ;
48+
4349 event . recipes . gtceu . pulverizer ( id ( `crushed_heated_${ oreName } ` ) )
4450 . itemInputs ( `1x gtceu:crushed_${ oreName } _ore` )
45- . itemOutputs ( `1x ${ furnOutput . item } ` )
51+ . itemOutputs ( `${ typeof furnOutput === "string" ? furnOutput : furnOutput . item } ` )
4652 . circuit ( 1 )
4753 . duration ( 300 )
4854 . EUt ( GTValues . VA [ GTValues . LV ] )
4955
5056 event . recipes . gtceu . pulverizer ( id ( `raw_heated_${ oreName } ` ) )
5157 . itemInputs ( `1x #${ furnInput . tag } ` )
52- . itemOutputs ( `${ furnOutput . count || 1 } x ${ furnOutput . item } ` )
58+ . itemOutputs ( `${ furnOutput . count || 1 } x ${ typeof furnOutput === "string" ? furnOutput : furnOutput . item } ` )
5359 . circuit ( 1 )
5460 . duration ( 300 )
5561 . EUt ( GTValues . VA [ GTValues . LV ] )
0 commit comments