Guest User

regulateWateringCan

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