Fandom

The Tekkit Wiki

Tutorial/How to make an OS part 1

< Tutorial

874pages on
this wiki
Add New Page
Talk0 Share

​Ever wanted to make an OS with a username, passcode, and more?  Then just read on through the coding!

This is for username, passcode, and passwords.

Username:

term.clear()
term.setCursorPos(16, 2)
print "Your username is:"
term.setCursorPos(16, 4)
print " "Steve" [Change by typing "edit username"] "
end
end

Passcode:

term.clear()
term.setCursorPos(16, 2)
print "Your passcode is:"
term.setCursorPos(16, 4)
print " "Passcode" [Change by typing "edit username"]
end
end


And finally, 

Password:

term.clear()
term.setCursorPos(16, 1)
print "Access denied!"
term.setCursorPos(1, 3)
print "Enter your passcode: " --I'll make it with more quality in v2 =D

while true do
if input == [Your passcode here] then
term.clear()
term.setCursorPos(16, 2)
print "Your password is:"
term.setCursorPos(16, 4)
print " "Password" [Change by typing "edit username"] "
end
end


If any of this doesn't work, tell me!

Here's how to craft a computer:

Computer crafting
Stone Stone Stone
Stone Redstone Stone
Stone Glass pane Stone

I'm jRd21, and this is HOW TO MAKE AN OS!!!

Start a Discussion Discussions about Tutorial/How to make an OS part 1

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.