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.
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
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.
Link to post
Share on other sites