Tutorial/Simple Alarm System

Revision as of 01:13, 25 December 2012 by Mastergalen (talk | contribs) (1 revision)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This tutorial will show you how to make a simple alarm system. (It's similar to the Easy Passworded Door)

All you will need for this is:

-One Computer

-One Industrial Alarm

-One Door


The Code:

-- Alarm System
-- Written by Galxis
-- Posted to The Tekkit Wiki on 11/16/2012

os.pullEvent = os.pullEventRaw
term.clear()
term.setCursorPos(1, 1)
code = "example"
write("Welcome! Please enter the Code!: ")
input = read("*")
if input == code then
 print ("Welcome back!")
 sleep(2)
 rs.setOutput("right",true)
 sleep(3)
 rs.setOutput("right", false)
else
 print ("Good Try! ;)")
 rs.setOutput("left", true)
 sleep(10)
 rs.setOutput("left", false)
 os.reboot()
end

(The Door is on the right Side, the Industrial Alarm on the left Side of the Computer)

Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Need wiki hosting?

Do you need a wiki for your Minecraft mod/gaming wiki? We'll host it for free! Contact us.

Other wikis

Indie-game wikis
Powered by Indie Wikis