Advertisement
Guest User

a

a guest
Aug 29th, 2014
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.43 KB | None | 0 0
  1. TE_Type = "cofh_thermalexpansion_energycell"
  2. Mek_Type = "advanced_energy_cube"
  3.  
  4. while true do
  5.  term.clear()
  6.  term.setCursorPos(1,1)
  7.  
  8.  cell = {}
  9.     cell = peripheral.find(TE_Type)
  10.  
  11.     if cell == nil then
  12.         cell = peripheral.find(Mek_Type)
  13.     end
  14.  
  15.     if cell == nil then
  16.         print("Error: No cell attached. Please attach a cell and connect it to the computer with a wired modem.")
  17.     else
  18.         print("No error!")
  19.     end
  20.    
  21.     sleep(2)
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement