Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local modem = peripheral.wrap("left")
- modem.open(00005)
- while true do
- if redstone.getInput("front") then
- term.clear()
- term.setCursorPos(1,1)
- print("Farm currently on.")
- modem.transmit(00005,00005,"on")
- sleep(1.5)
- else
- term.clear()
- term.setCursorPos(1,1)
- print("Farm currently off.")
- modem.transmit(00005,00005,"off")
- sleep(1.5)
- end
- sleep(0.1)
- end
Advertisement
Add Comment
Please, Sign In to add comment