View difference between Paste ID: RGhHNtEx and 2G7n4NGE
SHOW: | | - or go back to the newest paste.
1
--Redstone In Motion Hidden Door Control Program by VirtualDXS
2
a = peripheral.wrap("JAKJ_RIM_CarriageController_6")
3
b = peripheral.wrap("JAKJ_RIM_CarriageController_7")
4
c = peripheral.wrap("JAKJ_RIM_CarriageController_5") 
5
d = peripheral.wrap("JAKJ_RIM_CarriageController_8")
6
e = peripheral.wrap("JAKJ_RIM_CarriageController_9")
7
8
9
--0:Down
10
--1:Up
11-
--2:Forward
11+
--2:North
12-
--3:Back
12+
--3:South
13-
--4:Left
13+
--4:West
14-
--5:Right
14+
--5:East
15
16
a.move(3,false,true)
17
a.move(3,false,true)
18
sleep(1)
19
b.move(3,false,true)
20
b.move(3,false,true)
21
sleep(1)
22
c.move(4,false,true)
23
c.move(4,false,true)
24
sleep(1)
25
d.move(4,false,true)
26
d.move(4,false,true)
27
sleep(10)
28
e.move(5,false,true)
29
e.move(5,false,true)
30
sleep(1)
31
d.move(5,false,true)
32
d.move(5,false,true)
33
sleep(1)
34
c.move(2,false,true)
35
c.move(2,false,true)
36
sleep(1)
37
b.move(2,false,true)
38
b.move(2,false,true)
39
os.shutdown()