3 posts
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.
1281 posts
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.
724 posts
Location
Kinda lost
Posted 15 April 2014 - 09:57 PM
or comparator?
1281 posts
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/>
724 posts
Location
Kinda lost
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/
3 posts
Posted 16 April 2014 - 12:14 AM
Thank you ill try these and see if they work :)/>
3 posts
Posted 16 April 2014 - 12:26 AM
Thanks the comparator trick worked thx ;)/>
8 posts
Location
New York, US
Posted 16 April 2014 - 04:22 PM
Or, if you have Buildcraft installed, you can use a void pipe.
Less noise than a piston…