I am trying to determine if it is possible to check other containers besides the players inventory when determining if you have the materials to craft an item. Would also want to remove from that inventory as well. I looked at the player lua and see some methods that I'm guessing are called when viewing a crafting menu and determining what is craftable. However, I don't see the object and methods related to an open container and checking it's inventory. Edit: looks like world may have what I need #### `unsigned` world.containerAvailable(`EntityId` entityId, `ItemDescriptor` item) Returns the number of the specified item that are currently available to consume in the specified container, or `nil` if the entity is not a container.
While I believe I now know most of the methods I'll need to use I do still have one problem... I haven't been able to find the code that controls crafting stations. Crafting stations seem to be in a continuous loop while open that checks each recipe in the list against the players inventory. Any assistance is much appreciated.
If all else fails, you could definitely do it by reimplementing the crafting mechanic yourself... though that's of course a bit of a ridiculous undertaking...
Someone make a mod for store in nearby contener after using a kinda look scanner , you may try to check how it workd , maybe it can help you. i havent try it yet and not sure to try but seem have a lot of work on it. http://community.playstarbound.com/resources/item-broadcaster-hyper-storage.1745/