this is my first ever post! i just need a program/help on a program that would allow me to send 5 redstone signal in a certain time in minecraft.
it would be helpful if you guys post a program that did this
Posted 17 May 2015 - 04:25 PM
Posted 17 May 2015 - 04:40 PM
Posted 17 May 2015 - 07:58 PM
rs.setOutput("right", true) --Sets Output On The Right Side to True
term.write("Which Side?: ") --Prints "Which Side?: " While Allowing You To Type On the Same Line
side = read()
tostring(side) Dont Think This Is Needed
term.write("On Or Off?: ")
on = read()
tostring(on) --Again, Dont Think This Is Needed, But Ive Drawn Errors Before By Not Using It
if on == "on" or on == "On" then --This Says That If The Users Types In "on" OR "On" Then Do The Following
on = true --Sets On To True
elseif on == "off" or "Off" --Same Thing As The Above Code "If on == on" Code, Only This Time Uses Off
on == false --Sets On To False
else
print("I Don't Understand")
shell.run(program) --This Will Run Your Program Again (Program Here Meaning Whatever You Typed In To Edit This Program(I.E.: edit startup))
end
rs.setOutput(side, on) --Runs Program
Posted 17 May 2015 - 08:33 PM
Edited by flaghacker, 17 May 2015 - 08:34 PM.
Posted 17 May 2015 - 11:18 PM
flaghacker, on 17 May 2015 - 08:33 PM, said:
Posted 18 May 2015 - 06:10 PM
Edited by drunkjugernout, 18 May 2015 - 09:19 PM.
Posted 18 May 2015 - 10:00 PM
KingofGamesYami, on 17 May 2015 - 11:18 PM, said:
flaghacker, on 17 May 2015 - 08:33 PM, said:
Posted 18 May 2015 - 10:10 PM
drunkjugernout, on 18 May 2015 - 06:10 PM, said:
Posted 18 May 2015 - 10:21 PM
theMCcm, on 18 May 2015 - 10:00 PM, said:
Posted 19 May 2015 - 12:50 AM
theMCcm, on 18 May 2015 - 10:10 PM, said:
drunkjugernout, on 18 May 2015 - 06:10 PM, said:
Posted 19 May 2015 - 10:01 PM
drunkjugernout, on 19 May 2015 - 12:50 AM, said:
theMCcm, on 18 May 2015 - 10:10 PM, said:
drunkjugernout, on 18 May 2015 - 06:10 PM, said:
function pulse()
for i = 1, 5 do
rs.setOutput("right", true)
rs.setOutput("left", true)
sleep(4)
rs.setOutput("right", false)
rs.setOutput("left", false)
sleep(4)
end
end
local alarm = os.setAlarm(0)
local alarm2 = os.setAlarm(12500)
while true do
local evt, arg = os.pullEvent("alarm")
if arg == alarm or arg == alarm2 then
pulse()
end
end
\Edited by theMCcm, 20 May 2015 - 09:48 PM.
Posted 19 May 2015 - 11:33 PM
theMCcm, on 19 May 2015 - 10:01 PM, said:
drunkjugernout, on 19 May 2015 - 12:50 AM, said:
theMCcm, on 18 May 2015 - 10:10 PM, said:
drunkjugernout, on 18 May 2015 - 06:10 PM, said:
function pulse()
for i = 1, 5 do
rs.setOutput("right", true)
rs.setOutput("left", true)
sleep(4)
end
end
local alarm = os.setAlarm(0)
while true do
local evt, arg = os.pullEvent("alarm")
if arg == alarm then
pulse()
end
end
\Posted 20 May 2015 - 02:46 AM
drunkjugernout, on 19 May 2015 - 11:33 PM, said:
shell.run("filepath") --# Note that it should be a string
shell.run("filepath","arg1","arg2")
Posted 20 May 2015 - 05:09 AM
0 members, 1 guests, 0 anonymous users