Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -------bundle lib---------
- local function bundle(side, color, state)
- if (type(side) == "string") and (type(color) == "number") and (type(state) == "boolean") then
- if state == true then
- rs.setBundledOutput(side, colors.combine(rs.getBundledOutput(side), color))
- elseif state == false then
- rs.setBundledOutput(side, colors.subtract(rs.getBundledOutput(side), color))
- end
- else
- error("please use like this:\nbundle(side:string,colors.(color),state:boolean)")
- end
- end
- return {bundle = bundle}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement