#Changing amount of an item in a function

3 messages · Page 1 of 1 (latest)

indigo gate
#

So i have this code here but .amount(5) doesnt work and i dont really know what to change it to

function Alloys(out, in1, in2) {
    event.recipes.create.mixing(Item.of(out).amount(4), [in1, in2]).heated();
}
Alloys(C('brass_ingot'), MC('copper_ingot'), C('zinc_ingot'))

im gonna add more code so i wont be able to just type

Alloys(C('brass_ingot', 5), MC('copper_ingot'), C('zinc_ingot'))```
graceful magnetBOT
#

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

indigo gate
#

Nvm withCount(x) worked