Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Nurus disk door
- --Ver. 0.1
- --Last Revised 15/01/2011
- --Author Nurusama alias Nuru
- --Notes Thanks for the support guys :D, pls check if there are some mistakes
- --Platform ComputerCraft minecraft LUA virtual machine
- while true do
- event, param1 = os.pullEvent()
- if event == "disk" then
- if disk.getLabel(param1) == nil then
- print ("Disketa nema nazev")
- write ("Zadej klic pro sifrovani:")
- code = read()
- disk.setLabel("param1", code)
- textutils.slowPrint ("#############", 7)
- textutils.slowPrint ("Hotovo")
- break
- else
- print ("Disketa jiz ma nazev")
- print ("Disketa je na "..param1.."strane")
- write ("Chcete prepsat nazev? A/N :")
- prepsani = read()
- if prepsani == "A" then
- write ("Zadej klic pro sifrovani:")
- code = read()
- disk.setLabel("param1", code)
- textutils.slowPrint ("############", 7)
- textutils.slowPrint ("Hotovo")
- elseif prepsani == "N" then
- print("Program konci")
- else
- print("Program konci")
- end
- break
- end
- end
- end
Add Comment
Please, Sign In to add comment