←  Ask a Pro

ComputerCraft | Programmable Computers for Minecraft

»

Help with automated dragonslayer

Cardwell's Photo Cardwell 02 Apr 2021

Hi!

I've been scratching my head about this for a few hours now, and really can't figure it out.
Link to code: https://pastebin.com/MgEKsTSk
I can't seem to figure out how to check if there's already a redstone signal on the right side of the computer, or if it isn't to wait for one. I've used an output for a "line reset", so if there is a redstone signal already on, it flickers. But I'd like to use that side for another output instead of a wacky solution for my bad programming. Any help would be much appreciated!
Quote

Lupus590's Photo Lupus590 05 Apr 2021

You could store the last know state of the input signal and if it's the same on a redstone event then the input is not the signal that changed.
Quote