ecco7777

me turtle scan

Aug 18th, 2018
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.28 KB | None | 0 0
  1. i=1
  2. recipe={}
  3. while turtle.getItemCount(i)~=0 do
  4. turtle.select(i)
  5. detail=turtle.getItemDetail()
  6. recipe[i]={id=detail.name,dmg=detail.damage}
  7. i=i+1
  8. end
  9. print("Speichern als:")
  10. name=io.read()
  11. fp=fs.open(name,'w')
  12. fp.write('recipe='..textutils.serialize(recipe))
  13. fp.close()
Add Comment
Please, Sign In to add comment