Advertisement
Guest User

Untitled

a guest
Jul 15th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. os.loadAPI("button")
  2. m = peripheral.wrap("top")
  3. m.clear()
  4. modem = peripheral.wrap("front")
  5. modem.open(1)
  6.  
  7. redstone.setOutput("right", false)
  8. redstone.setOutput("top", false)
  9. redstone.setOutput("front", false)
  10. redstone.setOutput("back", false)
  11. redstone.setOutput("bottom", false)
  12.  
  13. function fillTable()
  14. button.setTable("MineFactory", minefacory, 10,20,3,5)
  15. button.setTable("Thermal Expansion", thermalexpanison, 10,20,7,9)
  16. button.setTable("PneumaticCraft", penumaticcraft, 10,20,11,13)
  17. button.screen()
  18. end
  19.  
  20. function getClick()
  21. event,side,x,y = os.pullEvent("monitor_touch")
  22. button.checkxy(x,y)
  23. end
  24.  
  25. function minefacory()
  26. button.flash("MineFactory")
  27. button.clearTable()
  28. function fillTable()
  29. button.setTable("Laser Drill", laserdrill, 10,20,3,5)
  30. button.setTable("Zurück"), zurück ,15,25,13,15)
  31. function laserdrill()
  32. button.toggleButton("Laser Drill")
  33. modem.transmit(1, "right")
  34. end
  35. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement