Advertisement
EphemeralKap

Untitled

Apr 26th, 2014
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. os.loadAPI("ba")
  2. m = peripheral.wrap("left")
  3. m.clear()
  4.  
  5. function fillTable()
  6. ba.setTable("Lava", lava, 3,13,7,9)
  7. ba.setTable("Water", water, 15,25,7,9)
  8. --ba.setTable("Fuel", fuel, 27,37,7,9)
  9. --ba.setTable("Empty1", empty ,15,25,15,17)
  10. --ba.setTable("Empty2", emptyy ,27,37,15,17)
  11. --ba.setTable("Empty3", emptyyy ,3,13,19,21)
  12. --ba.setTable("Empty4", emptyyyy ,15,25,19,21)
  13. --ba.setTable("Empty5", emptyyyyy ,27,37,19,21)
  14.  
  15. ba.screen()
  16. end
  17.  
  18. function getClick()
  19. event,side,x,y = os.pullEvent("monitor_touch")
  20. ba.checkxy(x,y)
  21. end
  22.  
  23. function water()
  24. ba.flash("water")
  25. end
  26.  
  27. function lava()
  28. ba.flash("Lava")
  29. end
  30.  
  31. fillTable()
  32. ba.heading("Spawner Control")
  33.  
  34. while true do
  35. getClick()
  36. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement