ecco7777

peripheral function checker

Jan 3rd, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.39 KB | None | 0 0
  1. strg="String"
  2. int=1
  3. bool=true
  4. side="back"
  5. color=colors.green
  6. hex=0xF2B233
  7.  
  8. dataType={strg,int,bool,side,dataType,color,hex}
  9.  
  10. while true do
  11. p=peripheral.wrap("back")
  12.     if p~=nil then
  13.     pName=peripheral.getType("back")
  14.     pMethods=peripheral.getMethods("back")
  15.         for i=1, #pMethods do
  16.         notWorking=true
  17.         try=1
  18.             while notWorking do
  19.             fp=fs.open(pName,"a")
  20.                
  21.             end
  22.         end
  23.     end
  24. end
Add Comment
Please, Sign In to add comment