Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal

Filal

Members
  • Content Count

    1
  • Joined

  • Last visited

Posts posted by Filal

  1. 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 at all. If anyone had some insight and could help me figure out the solution to my problem, I would be very grateful.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.