Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sleep(10)
- modem = peripheral.find("modem")
- tank = peripheral.wrap("back")
- capacity = tank.getFilledPercentage()*100
- formattedCapacity = string.format("%.2f",capacity)
- modem.open(2)
- while true do
- modem.transmit(2,2,formattedCapacity)
- sleep(0.1)
- end
Advertisement
Add Comment
Please, Sign In to add comment