Advertisement
Guest User

Untitled

a guest
Sep 18th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.29 KB | None | 0 0
  1. reactor = peripheral.wrap("BigReactors-Reactor_1")
  2. mon = peripheral.wrap("monitor_0")
  3.  
  4. function button (labelText, x, y)
  5.   mon.setCursorPos(x, y)
  6.   mon.setBackgroundColor(colors.red)
  7.   mon.setTextColor(colors.white)
  8.   mon.write(" " .. labelText .. " ")
  9. end
  10.  
  11. button("toggle reactor")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement