Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- i=1
- recipe={}
- while turtle.getItemCount(i)~=0 do
- turtle.select(i)
- detail=turtle.getItemDetail()
- recipe[i]={id=detail.name,dmg=detail.damage}
- i=i+1
- end
- print("Speichern als:")
- name=io.read()
- fp=fs.open(name,'w')
- fp.write('recipe='..textutils.serialize(recipe))
- fp.close()
Add Comment
Please, Sign In to add comment