Skip to content

[Feature Request] Recipe Sync API #4667

@mezz

Description

@mezz

For mods that use recipes on the client, it would be useful to have a way for mods to sync recipes from the server to the client.

Considerations

  • Mods should exist on the server in order to make the request there.
    • This will avoid clients requesting massive amounts of data from a server in an uncontrolled way.
  • There should be a period of time or event where mods can request specific recipe types to by synced.
    • Not all recipes need to by synced and multiple mods may require the same recipe types, so this will prevent sending too much data or redundant data.
  • Recipes sent to the client should include the ID (so ideally the whole RecipeHolder should by synced and stored in a RecipeMap).
    • This will give mods better ability to manage recipes on the client similarly to how they are managed on the server, allowing for persisting references to recipes across game play sessions.

@shartte completed an implementation in neoforged/NeoForge#2021 with some additional motivations and design rationale.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requeststatus: acceptedThis issue is a good idea and a PR should be made

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions