legg0028

mob_farm_send

Nov 13th, 2022 (edited)
969
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.42 KB | None | 0 0
  1. local modem = peripheral.wrap("left")
  2. modem.open(00005)
  3.  
  4. while true do
  5.     if redstone.getInput("front") then
  6.         term.clear()
  7.         term.setCursorPos(1,1)
  8.         print("Farm currently on.")
  9.         modem.transmit(00005,00005,"on")
  10.         sleep(1.5)
  11.     else
  12.         term.clear()
  13.         term.setCursorPos(1,1)
  14.         print("Farm currently off.")
  15.         modem.transmit(00005,00005,"off")
  16.         sleep(1.5)
  17.     end
  18.     sleep(0.1)
  19. end
Advertisement
Add Comment
Please, Sign In to add comment