draw only 4 items from inventory

  • Please make sure you are posting in the correct place. Server ads go here and modpack bugs go here
  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

Christley

New Member
Jul 29, 2019
30
0
0
i have a chest. under it, beside it, whatever there will be something that draws 4 items at once. if the chest has 3 of that item, it wont pull. if it has 6 items. it will pull 4 only. if it has 17 it will draw 16 but 4 at each time.
i tried doing it with itemducts but when i set stacksize to 4, it pulls everything below it aswell.
is there an item that will do this for me? and how will i do this?
i dont have a large system right now so i cant do it with logistics pipes
 

lostandthedamned

New Member
Jul 29, 2019
12
0
0
Factorisation item shifter would do the job. Set it to exact mode. Not massively expensive but you will need some infrastructure to get it set up.
 

Christley

New Member
Jul 29, 2019
30
0
0
Factorisation item shifter would do the job. Set it to exact mode. Not massively expensive but you will need some infrastructure to get it set up.

sadly i needed a logic matrix, and all the dungeons are raided on the server. which means i cant get it
 

lostandthedamned

New Member
Jul 29, 2019
12
0
0
You can copy them. I think it only requires a crystalliser and a block of redstone. Ask around to borrow one for an hour.
 

rhn

Too Much Free Time
Nov 11, 2013
5,706
4,420
333
sadly i needed a logic matrix, and all the dungeons are raided on the server. which means i cant get it
You can copy them. I think it only requires a crystalliser and a block of redstone. Ask around to borrow one for an hour.
And they are not consumed, they are like a tool without durability. I am sure someone on the server have multiple and wouldent mind giving you one then. Else yeah can be copied.
 

ljfa

New Member
Jul 29, 2019
2,761
-46
0
sadly i needed a logic matrix, and all the dungeons are raided on the server. which means i cant get it
The world is big (unless the server limits it). When you go somewhere far away from spawn I'm sure there's some unraided dungeon.
Or ask someone if you can copy it.

Another method to do the thing OP asked for is with Steve's Factory Manager.
 

rhn

Too Much Free Time
Nov 11, 2013
5,706
4,420
333
then i need to say which items i want. and i cant specify 40 different items. so need to something that can pull 4 items without specifying what
If you explain in more details why you need the setup and what it is for, we might be able to supply alternatives.

If not then only thing I can think of that works with unspecified items would be to take advantage of the "one item inventories" such as Thaumcraft pedestals or Bibliocraft items. Have itemducts/whatever pipe items from the chest into 4 of these inventories so that you only have 1 item in each of the 4. Then detect with something like BC gates when all 4 are full and then pull the the items from all 4 at the same time. With proper redstone/pipe timing you could have it only pull items in batches of 4. But it is not a simple or compact build.
 

Someone Else 37

Forum Addict
Feb 10, 2013
1,876
1,440
168
I remember doing something somewhat like this with Redpower 2 long ago, back in Mindcrack.

I was automating a GregTech Fusion Reactor, and I wanted exactly one in five deuterium cells to go into the reactor, and the rest to go into a bank of centrifuges for refinement into tritium. Deuterium coming from another bank of centrifuges (via RP2 pneumatic tubes) passed through a RP2 item detector set to the mode where it pulses once for each item passing through. These items dumped straight into a chest with two RP2 filters on it, one set to pull one cell to shove into the reactor and the other set to pull four cells to shove into the centrifuges.

The setup also included an RP2 counter circuit configured to increment by 1, decrement by 5, and max out at 5. Its '+' input was wired to the item detector, and its '+' output was wired to its own '-' input and both of the filters. So, whenever an item entered the chest via the detector, it incremented the counter, and after five items (and five increments), the timer reset itself and instructed the one filter to pull one cell and the other to pull the other four.

But, as for solutions to your specific problem that use updated mods, a ComputerCraft turtle script is probably one of the easiest, at least if you know some LUA. It should be able to read the size of item stacks in its inventory, then drop four of them if there are at least that many.

I don't think that Buildcraft gates can read an exact number of items. If they could, though, you could use a wooden pipe with a gold autarchic gate with "At least four items in inventory -> Energy Pulser" configured into it exactly three times. Each simultaneously triggering energy pulser after the first doubles the number of items it pulls at once, so with three (the first one, then the other two), it will pull four items at once.

You might, however, have to resort to a Vanilla comparator to determine when the chest contains some items. For a vanilla single chest, it emits a redstone signal of strength 1 when there is only one item, but won't increase its output to strength 2 until there are nearly two stacks of items. Probably better to use something with a smaller inventory as your buffer, then wire it to an Itemduct set to max stack size 4 that's set to extract items when given a redstone signal. Or, for that matter, a wooden pipe with an autarchic gate with "Redstone signal -> Energy Pulser" entered in three times.
 

YX33A

New Member
Jul 29, 2019
3,764
1
0
i have a chest. under it, beside it, whatever there will be something that draws 4 items at once. if the chest has 3 of that item, it wont pull. if it has 6 items. it will pull 4 only. if it has 17 it will draw 16 but 4 at each time.
i tried doing it with itemducts but when i set stacksize to 4, it pulls everything below it aswell.
is there an item that will do this for me? and how will i do this?
i dont have a large system right now so i cant do it with logistics pipes
As others have said, this is an odd request, and we don't know what you're trying to do, nor do we know what we can suggest. You didn't even mention what pack you're using.
 

schpeelah

New Member
Jul 29, 2019
146
0
0
As others have said, this is an odd request, and we don't know what you're trying to do, nor do we know what we can suggest. You didn't even mention what pack you're using.
Since we're talking about 4 items at a time, too many item types to specify, I find it highly likely the purpose is automating Ex Nihilo ore gravels, sands and dusts with Forestry Packagers.

In which case, the MFR Auto-Packager.
 

Someone Else 37

Forum Addict
Feb 10, 2013
1,876
1,440
168
Since we're talking about 4 items at a time, too many item types to specify, I find it highly likely the purpose is automating Ex Nihilo ore gravels, sands and dusts with Forestry Packagers.

In which case, the MFR Auto-Packager.
I don't think Forestry has a packager... you're probably thinking of the one from Factorization.
 

Celestialphoenix

Too Much Free Time
Nov 9, 2012
3,741
3,204
333
Tartarus.. I mean at work. Same thing really.
Basically you need a way to regulate the flow of items and an item counter.

By example With just buildcraft:

  1. Starting/buffer chest. (all items get fed into here)
  2. Wooden pipe+quartz gate (quartz gates act as timers)
  3. Quartz gate controls a redstone engine/autarchic gate (to pull 1 item every XX seconds)
  4. Items pass through an iron gate into a second chest (set: items in pipe->redstone/pipe signal. --Each item will produce 1 pulse--)
  5. This signal feeds a counting mechanism.
  6. Every 4 items the counter signals to a second autarchic gate draining all 4 items from the second chest. (feeding whatever the hell requires this)
Easy counting with buildcraft:
  • 4 unique items in a chest- autarchic/engine pulls 1 item each time. (activated from the iron gate mentioned above)
  • Diamond/Emerald gate detects specific item.
  • This results in 1 pulse for every 4 items passing through.
  • (Works for any number)
 
Last edited: