you can have three inputs for three different coffee, like button1 button2 and button three and you an make those represent a color when the button is pressed it can output a certain color combination to turn on the machines to make a that certain coffee type.
buttonStates = { colors.white, colors.orange. colors.magenta }
currentInputState = rs.getBundledInput("top")
coffee = { type1, type2, type3 }
combinations = {
type1combo{ colors.red , colors.green, colors.white },
type2combo{ colors.black, colors.green, colors.cyan },
type3combo{ colors.brown, colors.yellow, colors.lime }
}
i would recommend placing everything in a table so you can reference it later and control what should be on and off at any given time.
so to activate type1 to make coffee A that would kindof look like the following
if currentInputState == buttonStates[1] then
rs.setBundledOutput("back", colors.combine(combinations[1]type1combo[1], combinations[1]type1combo[2], combinations[1]type1combo[3]))
end
this is only if one of the inputs would be turned on
i know this is very basic, and you can expand on it and make the code more neat but for demostration purposes i feel like setting it up this way would work for you.