Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crafting Recipe API #1869

Open
Janrupf opened this issue Jun 23, 2024 · 1 comment
Open

Crafting Recipe API #1869

Janrupf opened this issue Jun 23, 2024 · 1 comment
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.

Comments

@Janrupf
Copy link

Janrupf commented Jun 23, 2024

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.

@Janrupf Janrupf added the enhancement An extension of a feature or a new feature. label Jun 23, 2024
@Janrupf
Copy link
Author

Janrupf commented Jun 23, 2024

Of course I find something that fulfills this exact use case 20 minutes after opening this issue: https://docs.siredvin.site/UnlimitedPeripheralWorks/peripherals/recipe_registry/

I personally think this should be a core feature of CC: Tweaked, but I understand if that's something that's better left for external addons,

@SquidDev SquidDev added the area-Minecraft This affects CC's Minecraft-specific content. label Jun 25, 2024
@SquidDev SquidDev added the wontfix A bug which I won't fix or an enhancement which won't be implemented. label Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
Development

No branches or pull requests

2 participants