MigasRocha

Uranium Hexafluoride Regulator /Computer ID:44

Dec 26th, 2024 (edited)
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.27 KB | Gaming | 0 0
  1. sleep(10)
  2.  
  3. modem = peripheral.find("modem")
  4.  
  5. tank = peripheral.wrap("back")
  6.  
  7. capacity = tank.getFilledPercentage()*100
  8.  
  9. formattedCapacity = string.format("%.2f",capacity)
  10.  
  11. modem.open(2)
  12.  
  13. while true do
  14.  
  15. modem.transmit(2,2,formattedCapacity)
  16.  
  17. sleep(0.1)
  18.  
  19. end
  20.  
Advertisement
Add Comment
Please, Sign In to add comment