#Missing formal Parameter (in function)

3 messages · Page 1 of 1 (latest)

earnest spindle
#
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?

pine jettyBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

earnest spindle
#

Technically solved by renaming function parameters, possibly because input is used in the Recipes event