Arqade is a question and answer site for passionate videogamers on all platforms. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I use computers or turtles to check how many items and stacks are there in a barrel? (Is there any way even?)

Im using MindCrack Feed the beast pack.

share|improve this question
Applied Energistics – Jeffrey Lin Jun 19 '13 at 0:47
But I think that is not in Feed the beast, right? – José D. Jun 19 '13 at 0:54
It is, just not Mindcrack :( – Jeffrey Lin Jun 19 '13 at 1:46
I don't think Minecrack has OpenPeripherals, but… Seems like it could do it (I'm not sure though)) – Oxinabox Aug 19 '13 at 2:41

There is no practical way to count the number of items in a barrel using computercraft.

The only way to interact with a barrel (via computercraft) at all is to use a turtle and the only way that a turtle can interact with a barrel is to insert/pull out single stacks of items at a time. This is impractical as a method to count the contents of a barrel as a turtle only has 16 inventory slots available.

share|improve this answer
You could temporarily dump items into a second empty barrel for counting so it would eliminate the inventory limit. But it is still probably impractical. – mellamokb Jun 19 '13 at 17:19

Mods like OpenPeipheral will help you as all they tell ComputerCraft that all containers(Chest, furnace, Anything that stores items) are peripherals. What you can do is

barrel = peripheral.wrap("left")
print(barrel.listMethods())-- see all the methods and find the one you need.
share|improve this answer
An example:… – Unikitty eats a cat May 10 '15 at 13:47

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.