Skip to content

Implement Resource Registry #756

Open

Description

@ChronosWS

Description

Vanilla supports an resource/asset registries that point to resource packs as well as "default" resources. Pomme currently sort-of has some of this, mostly for UI glyphs. However, it is needed for many systems, such as block rendering, particle generation, etc. This issue is recommending we get a basic centralized asset loading system that knows where assets are and how they are associated (for example, the association between an atlas definition and the images to which it refers) so that other systems can be built on this, and we are better prepared for asset reloading.

Motivation

Because asset lookup is inconsistent and distributed throughout the codebase, it is difficult to build the higher level systems we need (that must be able to look up assets from disk) as well as support data pack reloading without making a mess of the entire codebase. If we have a more centralized system, it will be easier to comprehend and use, and future functionality additions will be more confined.

Proposed Solution

Add a minimal formalization of an "resource registry" that supports the kinds of assets we currently use today - glyphs for UI, textures for particles, block faces. Wire this into the existing code at its current points to demonstrate that it satisfies the current needs and moves the resource-specific loading code out of the specific consumer locations. Ensure the system is amendable to known future compatibility use cases without creating all of the systems that will eventually use it.

Activity

  1. added
    enhancement
    on Oct 23, 2026
  2. changed the title [-]Implement Asset Loading[/-] [+]Implement Resource Registry[/+] on Oct 23, 2026
  3. ChronosWS commented on Oct 23, 2026

    @ChronosWS
    ContributorAuthor

    I'm working on this as part of the particle system rework - that work really depends on being able to successfully look up assets, and it's better to do it as a discrete feature than to explode the particle system work itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions