Counting items in barrels (Or before entering barrels)

  • 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

stabzilla

New Member
Jul 29, 2019
3
0
0
So basically i want to count items going in to barrels. My idea is to have a computer database (Computercraft) to see how many stacks/per item.

Any idea on how to do this? I'm lost..

All help would be awesome
 

budge

New Member
Jul 29, 2019
273
0
0
Check out the OpenPeripherals mod. It turns inventories into peripherals. You could use wired cabling to attach all of your barrels to the computer as peripherals and then some tables to store the data, and then display it however you like.

Just note that the mod is undergoing a bit of a rewrite, as I understand, and some of the documentation on the website is out of date. (e.g. "chest.getSizeInventory()" is actually now "chest.getInventorySize()".) Use getMethods(), it'll save you headaches.
 
  • Like
Reactions: jokermatt999

snooder

New Member
Jul 29, 2019
363
0
0
You could so do it with AE. If you have a small AE system that's only linked to your barrel, with a storage bus on the barrel, you could then use a storage monitor to show how many stacks you have in the system, which would be definition show how many stacks you have in the barrel.
 

stabzilla

New Member
Jul 29, 2019
3
0
0
Check out the OpenPeripherals mod. It turns inventories into peripherals. You could use wired cabling to attach all of your barrels to the computer as peripherals and then some tables to store the data, and then display it however you like.

Just note that the mod is undergoing a bit of a rewrite, as I understand, and some of the documentation on the website is out of date. (e.g. "chest.getSizeInventory()" is actually now "chest.getInventorySize()".) Use getMethods(), it'll save you headaches.


That is an awesome idea except, i'm playing on a server that does not have openPeripherals. + im playing on Mindcrack.

Is there any block etc that would allow me to count items as they travel to the storage system?
 

stabzilla

New Member
Jul 29, 2019
3
0
0
Check out the OpenPeripherals mod. It turns inventories into peripherals. You could use wired cabling to attach all of your barrels to the computer as peripherals and then some tables to store the data, and then display it however you like.

Just note that the mod is undergoing a bit of a rewrite, as I understand, and some of the documentation on the website is out of date. (e.g. "chest.getSizeInventory()" is actually now "chest.getInventorySize()".) Use getMethods(), it'll save you headaches.

I asked the admin and he said that they couldnt take in the mod because it is not made for 1.4.7

and then he said: if you find it, show me

You know if it works on 1.4.7?
 

Bomb Bloke

New Member
Jul 29, 2019
612
0
0
BuildCraft gates can be configured to throw out redstone signals when items pass through them, but it'd be difficult to use them to determine type (especially since a fast flow of items, let alone STACKs of items passing at a time, may be uncountable).

I made a system similar to what you're thinking where each barrel had a gold OR gate above it, set to transmit a redstone signal when the barrel underneath had no more room for the specified resource. Each bank of sixteen barrels connected to a redpower bundled cable, and each bundled cable connected to a computer.

The turtle floated around collecting bee combs, dragging them to the centrifuge, combining the dusts this produced, then smelting/compressing the results. It used rednet to communicate with the computer to determine which barrels were full (and hence could be avoided - you'd be amazed how fast an alveary filled a barrel of lapis blocks), but it couldn't get actual item counts short of going over to a barrel and trying to pull a stack out.

Though bear in mind that ComputerCraft's rednet is entirely broken if using it with turtles under MineCraft 1.4.7. It led to me giving up on the world, because once I'd finished my system, the MineCraft server averaged about three hours of uptime before stalling.

If memory serves, you may have access to an "inventory turtle". I've not tried it myself, but I believe it's shtick is reading the contents of nearby containers.