function beltRecipe(input, yield) {
event.shaped(
Item.of('create:belt_connector', yield),
[
'RRR',
'RRR'
],
{
R: input
}
);
}
beltRecipe('gtceu:rubber_plate', 6);
beltRecipe('styrene_butadiene_rubber_plate', 12);
beltRecipe('silicone_rubber_plate', 12);
This seems similar to the function given in the example but does not work due to missing formal parameter, however my function parameters should be defined properly, anyone knows why?