OpenPeripheral and 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

schinken

New Member
Jul 29, 2019
6
0
0
So, I wrapped a barrel to a computer, but i tried the methods which i get with listMethods.
The only one actually working is the one which gives me the maximum Size that can be stored.
However, when I use like getAllSlots() or getStoredItems() I just get
table: "random Hex value"
 

Robijnvogel

Well-Known Member
May 8, 2013
533
421
89
Also, is it a Jabba or Factorization barrel?

You might only be able to interact with one stack of items in the barrel.
 

schinken

New Member
Jul 29, 2019
6
0
0
Its jabba barrels

And i want to get the current item ammount in a barrel, which i want to put trough some logic to turn off machines
 

schinken

New Member
Jul 29, 2019
6
0
0
thanks lenscas, im completly new to LUA,
did not know that tables would be something similar to an array
now i can get the actual item ammount :D