Crafting Recipe API #1869
Labels
area-Minecraft
This affects CC's Minecraft-specific content.
enhancement
An extension of a feature or a new feature.
wontfix
A bug which I won't fix or an enhancement which won't be implemented.
General idea
Computer should have some way to access the currently registered crafting recipes and query meta information about them. Ideally different types of recipes should be supported, but I think starting with just the crafting table ones would be very nice already.
Why?
This would allow computers (turtles?) attached to storage systems to perform crafting tasks, based on the items in the storage network. Currently this is sort of supported via the network specific means, but this requires crafting patterns to be present in the network.
Additionally, this would allow building some sort of JEI like App, which could calculate how many items you need. In combination with the other peripherals this would make for an amazing system.
Or other stuff in that direction, be creative!
Being able to list all registered items and fluids would also be cool, this could help with a fuzzy search in such applications, however, I'm not sure about the performance implications of an array which contains every single thing registered (maybe an API which performs the search or uses pagination could avoid potential issues).
How?
I would imagine a Lua API which returns data in form of table's about recipes in the same format used for inventories and similar.
The text was updated successfully, but these errors were encountered: