I'm trying to figure out how to add and remove a single color from the bundled output of the computer. This is what I was trying to do:
local component = require("component")
local sides = require("sides")
local colors = require("colors")
local rs = component.redstone
function addcol(sid, col)
local t = rs.getBundledOutput(sides.sid)
table.insert(t, colors.col)
rs.setBundledOutput(sides.sid, t, 15)
end
function remcol(sid, col)
local t = rs.getBundledOutput(sides.sid)
table.remove(t, colors.col)
rs.setBundledOutput(sides.sid, t, 15)
end
However, this doesn't seem to work a