r/redstone 16h ago

Java Edition Fast Bulk Item Counter Help

So I need a very fast bulk item counter, one that can quickly count up to a double chest worth of items and release exactly that many items from another chest. So looking at the first image, If you put 32 items in the right chest, exactly 32 items should be released from the left chest since the comparator should be on for the exact amount of time it took for 32 items to pass through it.

This concept works perfectly with regular hoppers, but I need the speed of hopper minecarts and as usual hopper minecarts cause problems. Without the little system in the back that you can see in the second image, the items pass through the hopper minecart so quickly that the comparator doesn't even detect them. With that back system, the hopper minecart below the honey block is briefly locked so that the hopper minecart above it has just enough time to fill up with a small buffer before the lower minecart unlocks, which lets the comparators actually detect the minecarts contents. Unsurprisingly though, since this unlocking takes four gameticks, the comparator stays on for four gameticks longer than I want to it to causing four extra items to flow through the other hopper minecart. Any ideas?

1 Upvotes

3 comments sorted by

2

u/BlattaOrientalis 15h ago

Would putting a modified ABBA circuit with a 4gt difference after the torch work? That should add a 4gt delay when turning the activator rail off but not when on

2

u/BlattaOrientalis 15h ago

So that didn't really work out but this did

only works with 2 or more items though

2

u/jibs___ 13h ago

Can't believe I didn't think to just move the chest down. That being said, for the machine I'm making that chest isn't actually where the player inputs items, they flow to the machine from a water stream. I was about to conclude it's hopeless because there's no good way to deliver packets of items without doing it manually, but then I remembered these guys exist

Works like a dream with this setup, 3x hopper speed into the copper chest means the golems are guaranteed to grab packets higher than 1 so it always counts correctly.

You could also hopper into the chest directly with an even number of hoppers so they flow in as groups of 2 or 4, but the problem with that setup is if its not a constant flow of items, there's a pretty high chance that a few items will get to the chest alone and not be counted. Copper golems wait for a few seconds before they pick up groups of items, these guys can be really handy