Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
Trellinane

Signal for a change in an external inventory

Recommended Posts

I see under the Signals section of the OpenComputers Documentation that there is a signal for a change in a robots inventory being inventory_changed(slot: number)

I am wondering if there is a signal for an inventory attached to an adapter with an inventory control upgrade.  I would like to initialize an inventory  by scanning through it slot by slot and then if it changes, rescan the inventory to update an array of the inventory contents.  Does the robot signal work for any inventory that is part of the computer's component list?

Thank you.

Share this post


Link to post
Share on other sites

I don't think there is but you can double check by running the dmesg program for observing available events. The only other thing rather than polling the contents would be an observer block maybe.. But that won't give you a slot number..

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.