This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Blaze17145's profile picture

How do I have a computer (with a disc drive holding a music disc next to it) run the "dj" program when powered by redstone?

Started by Blaze17145, 28 December 2012 - 12:51 PM
Blaze17145 #1
Posted 28 December 2012 - 01:51 PM
Title.
Lyqyd #2
Posted 28 December 2012 - 02:03 PM

while true do
  os.pullEvent("redstone")
  if rs.getInput("left") then
    shell.run("dj")
  end
end

Change "left" to the input side.