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

Requesting Mana Beans by type from Logistics Pipe network

Started by GamerNebulae, 22 May 2014 - 02:40 PM
GamerNebulae #1
Posted 22 May 2014 - 04:40 PM
I've seen the DireWolf20 video about requesting mana beans from the AE system that is connected through Logistics Pipes. There is a supplier pipe connected to the ME Interface and, for now, there is a request pipe hooked up to a chest with a computer next to it.

My question is: can someone explain to me how this works and how I can request mana beans from the network? This is what I have so far:


reqpipe = peripheral.wrap("right")
items = reqpipe.getAvailableItems()

for k,v in pairs(items) do
  nameBean = reqpipe.getNBTTagCompund(v[1])
  print(nameBean["value"]["Aspects"]["value"][1]["value"]["key"]["value"])
end
Edited on 22 May 2014 - 02:40 PM
CometWolf #2
Posted 22 May 2014 - 08:48 PM
I haven't played around much with LP and computers, but i have to ask, what is the point in the first place? If you want it automatically restocked, use a supplier pipe. Or if you want to be able to request them at will, use a request pipe mk3 and just right click on it. Also, you'll probably need a provider pipe on your AE system, not a supplier lol.
flaghacker #3
Posted 22 May 2014 - 09:39 PM
Direwolf20 made a essentia refill system with computercraft. You select a aspect, click e.g. "add 10", and the computer puts it the machine that cooks up the aspects.

Just look at his newest episode, he posted his code on pastebin.
CometWolf #4
Posted 22 May 2014 - 09:45 PM
I don't use Thaumcraft or watch Direwolf20, so these are just meaningless words to me :P/>
flaghacker #5
Posted 22 May 2014 - 10:18 PM
I don't use Thaumcraft or watch Direwolf20, so these are just meaningless words to me :P/>/>
Yea, but the OP does…
GamerNebulae #6
Posted 24 May 2014 - 02:49 PM
I don't use Thaumcraft or watch Direwolf20, so these are just meaningless words to me :P/>/>
Yea, but the OP does…

The problem with Dire's program was that you need to click buttons to make it refill. Instead, I wanted to make a system that automatically refilled them without the user having to click something. This was my solution:

http://pastebin.com/xYyDNRak

EDIT: typo's
Edited on 24 May 2014 - 12:50 PM
flaghacker #7
Posted 24 May 2014 - 02:57 PM
Nice program, but is 60 seconds enough in all cases? Because it's really going to mess up if not… I was thinking a sensor from openperipherals might be able to tell if the golem is done…