Advertisement
soulgriever

Untitled

Jun 30th, 2020
919
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.27 KB | None | 0 0
  1. --Server to control turtles
  2. local modem = peripheral.wrap("left")  --wrap modem on left
  3. while true do  --start loop
  4.     os.pullEvent("redstone")
  5.     if rs.getInput{"front"} then --place button on front
  6.         modem.transmit(80, 81, "trigger") -- transmit on channel 80
  7.     end
  8. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement