Posted 03 May 2013 - 08:22 AM
I am trying to make it so if Revalationist clicks on the player detector, the redstone signal is triggered.
This is my code:
The problem is, it prints Revalationist in the console, but no redstone signal.
This is my code:
p = peripheral.wrap("front")
while true do
event, b = os.pullEvent("player")
print(B)/>/>
end
if b == Revalationist then
rs.setOutput("back", true)
end
sleep(1)
rs.setOutput("back", false)
os.reboot()
The problem is, it prints Revalationist in the console, but no redstone signal.