Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ITEMCONDUIT_SINGLE_SIGNAL = 0.5
- local function EmitTransferSignal(signals)
- side = "back"
- signalMulti = 1
- redstone.setOutput(side, true)
- sleep(ITEMCONDUIT_SINGLE_SIGNAL * signals)
- redstone.setOutput(side, false)
- end
- detectorHaltedCount = 0
- while 1==1 do
- if redstone.getInput("bottom") == false then
- detectorHaltedCount = detectorHaltedCount + 1
- else
- detectorHaltedCount = 0
- end
- term.clear()
- print("Detector Cycles since Signal: " .. detectorHaltedCount)
- if detectorHaltedCount >= 50 then
- EmitTransferSignal(2)
- print("Emitting Signal due to Flower Inactivity")
- end
- sleep(0.1)
- end
Advertisement
Add Comment
Please, Sign In to add comment