Jump to content




Help with automated dragonslayer

computer lua

1 reply to this topic

#1 Cardwell

  • Members
  • 4 posts

Posted 02 April 2021 - 11:28 PM

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!

#2 Lupus590

  • Members
  • 2,027 posts
  • LocationUK

Posted 05 April 2021 - 11:49 PM

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.





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users