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

Activating Redstone singal when items are in chest

Started by tracekillerLPC78, 15 April 2014 - 06:18 PM
tracekillerLPC78 #1
Posted 15 April 2014 - 08:18 PM
I have buckets with randon fluids in them and i want to get rid of them so i set up a dispenser that pushes the liquid out and set up a piston to destroy but i have to it a lever each time for it to activate the piston and destory it. so if someone could help me write a computer craft code to dectect items in chest then activate a redstone signal that would be nice. Here is a picture of the setup I have.
CometWolf #2
Posted 15 April 2014 - 09:40 PM
You could probably acheive this with some openP code, but i have to ask… What are you using to activate the dispenser, and why can't you use the same to activate the piston? Also, it would probably be far easier to just use a BC gate.
Wojbie #3
Posted 15 April 2014 - 09:57 PM
or comparator?
CometWolf #4
Posted 15 April 2014 - 09:59 PM
I've only heard of this "Comparator" which you speak of, i stopped using vanilla at like 1.2.5 :P/>
Wojbie #5
Posted 15 April 2014 - 10:07 PM
Place comparator facing out of any side of dispenser - if there are any items in dispenser it will provide redsone signal - more items stronger signal.
If you place repeater right after comparator it will up signal to max 16 blocks - then use that signal to fire dispenser and piston/
tracekillerLPC78 #6
Posted 16 April 2014 - 12:14 AM
Thank you ill try these and see if they work :)/>
tracekillerLPC78 #7
Posted 16 April 2014 - 12:26 AM
Thanks the comparator trick worked thx ;)/>
urlmichael #8
Posted 16 April 2014 - 04:22 PM
Or, if you have Buildcraft installed, you can use a void pipe.

Less noise than a piston…