Guest User

fertilize

a guest
Feb 4th, 2014
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.76 KB | None | 0 0
  1. local mainFields = {}
  2. table.insert(mainFields, colors.orange)
  3.  
  4.                      colors.magenta,\
  5.                      colors.lightBlue,\
  6.                      colors.yellow,\
  7.                      colors.lime,\
  8.                      colors.pink,\
  9.                      colors.gray,\
  10.                      colors.lightGray,\
  11.                      colors.cyan}
  12.  
  13.  
  14. function get(side)
  15.   return redstone.getBundledOutput(side)
  16. end
  17.  
  18. function set(side, value)
  19.   return redstone.setBundledOutput(side, value)
  20. end
  21.  
  22. function test(side, color)
  23.   return colors.test(get(side), color)
  24. end
  25.  
  26. function add(side, color)
  27.   return set(side, colors.combine(get(side), color))
  28. end
  29.  
  30. function rem(side, color)
  31.   return set(side, colors.subtract(get(side), color))
  32. end
Advertisement
Add Comment
Please, Sign In to add comment