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)endfunction 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 at all. If anyone had some insight and could help me figure out the solution to my problem, I would be very grateful.
Adding a color to Bundled Output
in Programming
Posted
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:
However, this doesn't seem to work at all. If anyone had some insight and could help me figure out the solution to my problem, I would be very grateful.