Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("button")
- m = peripheral.wrap("back")
- m.clear()
- function fillTable()
- button.setTable("Blazes", blaze, 2,28,7,9, false)
- button.setTable("Spiders", spider, 2,28,11,13, false)
- button.setTable("Skeletons", skeleton, 2,28,15,17, false)
- button.setTable("Test", test, 2,28,19,21, false)
- button.setTable("Mfr", mfr, 2,28,23,25, false)
- button.screen()
- end
- function getClick()
- event,side,x,y = os.pullEvent("monitor_touch")
- button.checkxy(x,y)
- end
- function blaze()
- button.toggleButton("Blazes")
- current = rs.getBundledOutput("top")
- bool1 = not bool1
- if bool1 then
- rs.setBundledOutput("top",current+colors.orange)
- else
- rs.setBundledOutput("top",current-colors.orange)
- end
- end
- function spider()
- button.toggleButton("Spiders")
- current = rs.getBundledOutput("top")
- bool1 = not bool1
- if bool1 then
- rs.setBundledOutput("top",current+colors.magenta)
- else
- rs.setBundledOutput("top",current-colors.magenta)
- end
- end
- function skeleton()
- button.toggleButton("Skeletons")
- current = rs.getBundledOutput("top")
- bool1 = not bool1
- if bool1 then
- rs.setBundledOutput("top",current+colors.white)
- else
- rs.setBundledOutput("top",current-colors.white)
- end
- end
- function test()
- button.toggleButton("Test")
- current = rs.getBundledOutput("top")
- bool1 = not bool1
- if bool1 then
- rs.setBundledOutput("top",current+colors.yellow)
- else
- rs.setBundledOutput("top",current-colors.yellow)
- end
- end
- function mfr()
- button.toggleButton("Mfr")
- current = rs.getBundledOutput("top")
- bool1 = not bool1
- if bool1 then
- rs.setBundledOutput("top",current+colors.lime)
- else
- rs.setBundledOutput("top",current-colors.lime)
- end
- end
- fillTable()
- button.heading("Mob Control Screen")
- while true do
- getClick()
- end
Advertisement
Add Comment
Please, Sign In to add comment