Guest User

AzhfTech : Keycard

a guest
Mar 8th, 2013
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. -- What this does is output redstone signal in every direction for 2 seconds, which is very simple. It does -- not HAVE to open doors, but that is what it is meant for. Ok, on with the code.
  2. -- One more thing, this is meant for a startup script, but does not have to be.
  3. -- Turns out, I cannot retrieve the new file for some reason; it had optional choices to eject and opened
  4. -- doors in all directions, but now only to the right and the back. Oh well. And it only seems to eject from -- the top. Whatever,feel free to change the code to your needs.
  5. print("Thank You for choosing AzhfTech for all of your needs!")
  6. redstone.setOutput("back",true)
  7. redstone.setOutput("right",true)
  8. os.sleep(2)
  9. redstone.setOutput("back",false)
  10. redstone.setOutput("right",false)
  11. disk.eject("top")
  12. os.shutdown()
Advertisement
Add Comment
Please, Sign In to add comment