Advertisement
Lanzr

shaftElevatorBottom

Oct 31st, 2023
948
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.34 KB | None | 0 0
  1. local modem = peripheral.find("modem")
  2. if (modem == nil) then
  3.     print("no modem link")
  4.     return
  5. end
  6. modem.open(1)
  7.  
  8. local function sendToTop()
  9.     modem.transmit(0, 1, "take change")
  10. end
  11.  
  12. local function redstoneCheck()
  13. while true do
  14.     os.pullEvent("redstone")
  15.     printf("redstone")
  16.     switch()
  17. end
  18. end
  19.  
  20. redstoneCheck()
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement