Darknio

ME abfrage

May 17th, 2025 (edited)
963
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.37 KB | None | 0 0
  1. local seite = "bottom"
  2. local me = peripheral.wrap(seite)
  3.  
  4. while true do
  5.     local fluids = me.listFluid()
  6.     term.clear()
  7.     term.setCursorPos(1, 1)
  8.     print("Flüssigkeiten im AE2-Netzwerk:")
  9.  
  10.     for i, fluid in ipairs(fluids) do
  11.         term.setCursorPos(1, i + 1)
  12.         term.write(fluid.name .. ": " .. fluid.amount .. " mB")
  13.     end
  14.  
  15.     sleep(0.5)
  16. end
  17.  
Advertisement