
elevatorup
By:
fizzy6868 on
Sep 22nd, 2012 | syntax:
Lua | size: 0.81 KB | hits: 15 | expires: Never
rednet.open("top")
x = 0
y = 0
rside = "right"
while y ~= "exit" do
x = 0
id,message = rednet.receive(10)
if id == 0 and message == "bottomground" then
while x ~= 51 do
redstone.setOutput(rside,true)
sleep(0.5)
redstone.setOutput(rside,false)
sleep(0.5)
x = x + 1
end
end
if id == 0 and message == "halfground" then
while x ~= 39 do
redstone.setOutput(rside,true)
sleep(0.5)
redstone.setOutput(rside,false)
sleep(0.5)
x = x + 1
end
end
if id == 0 and message == "bottomhalf" then
while x ~= 12 do
redstone.setOutput(rside,true)
sleep(0.5)
redstone.setOutput(rside,false)
sleep(0.5)
x = x + 1
end
end
end