Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local modem = peripheral.wrap("bottom")
- local tank = peripheral.wrap("left")
- modem.open(00001)
- redstone.setOutput("left", false)
- redstone.setOutput("right", true)
- while true do
- term.clear()
- term.setCursorPos(1,1)
- print("Frostmaw liquification controller")
- if tank.tanks()[1] then
- redstone.setOutput("left", true)
- redstone.setOutput("right", false)
- term.setCursorPos(1,3)
- print("Current state: OFF, tank is full.")
- sleep(2)
- modem.transmit(00001,00001,"0")
- else
- modem.transmit(00001,00001,"1")
- redstone.setOutput("left", false)
- redstone.setOutput("right", true)
- term.setCursorPos(1,3)
- print("Current state: ON.")
- end
- sleep(1)
- end
Add Comment
Please, Sign In to add comment