Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Redstone In Motion Hidden Door Control Program by VirtualDXS
- openCommand = "openbuggy"
- a = peripheral.wrap("JAKJ_RIM_CarriageController_25")
- b = peripheral.wrap("JAKJ_RIM_CarriageController_24")
- c = peripheral.wrap("JAKJ_RIM_CarriageController_26")
- b = peripheral.wrap("JAKJ_RIM_CarriageController_27")
- c = peripheral.wrap("JAKJ_RIM_CarriageController_28")
- --0:Down
- --1:Up
- --2:North
- --3:South
- --4:West
- --5:East
- function open ()
- a.move(1,false,true)
- sleep(1)
- b.move(1,false,true)
- sleep(1)
- c.move(1,false,true)
- sleep(1)
- d.move(1,false,true)
- sleep(10)
- e.move(0,false,true)
- sleep(1)
- d.move(0,false,true)
- sleep(1)
- c.move(0,false,true)
- sleep(1)
- b.move(0,false,true)
- sleep(1)
- end
- while 1 do
- evt,cmd = os.pullEvent("chat_command")
- if cmd == openCommand then open() end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement