This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
EdenProject's profile picture

Chest Inventory API

Started by EdenProject, 13 November 2012 - 04:49 PM
EdenProject #1
Posted 13 November 2012 - 05:49 PM
A counting mechanism for Chest or Inventorys would be really cool you could handle it as Periphiral.

Buildcraft can as far as i know determine which inventory comes from which side so could the function

chest.getInventorySlot(sideTargetBlock,sideInventory,slotId);
The targetblock is the Block which is asked and the side of the Inventory the theoretically input from a Pipe. SlotId is i think self declaring :P/>/>

Other functions:
chest.maxSlots(sideTargetBlock,sideInventory);
chest.usedSlots(sideTargetBlock,sideInventory);
chest.emtpySlots(sideTargetBlock,sideInventory);

I could imagine some really great things with this.
Lyqyd #2
Posted 13 November 2012 - 06:12 PM
Check out ccsensors.
EdenProject #3
Posted 13 November 2012 - 06:28 PM
Check out ccsensors.
Its outdated since 1.2.5, also the Inventory Sensor is not working at all.
I would rather have a permanent implementation in CC itself : /
Cranium #4
Posted 14 November 2012 - 07:52 AM
At the very least someone needs to update or make a new version of ccSensors.
CoolisTheName007 #5
Posted 14 November 2012 - 08:00 AM
ccSensors is now open source, and some people are fixing it. Search the mod post and see by yourself.
EdenProject #6
Posted 14 November 2012 - 05:20 PM
No there was an answer but the ccSensor maker does not seem to have replied to it it also isnt "open" source because there is no source in the main post _-_
It seems like the maker didnt reply to the last post as it is already half a month old and there was no other reply.
Cloudy #7
Posted 14 November 2012 - 09:55 PM
If you read more of the thread you would see I'm working on an open source replacement :P/>/>