Skip to content

Textures API for adding block and item textures in versions 1.4.7 and below #38

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

Open
SpaceWalkerRS opened this issue Apr 21, 2025 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@SpaceWalkerRS
Copy link
Member

1.5 overhauled the block and item texture system. Each block/item sprite became its own file, which the game would stitch together into an atlas at runtime. The goal of this API is allow for something similar in versions 1.4.7 and below.

This issue serves as a place to discuss different approaches before a path is chosen and work on the API is started.

@SpaceWalkerRS SpaceWalkerRS added enhancement New feature or request help wanted Extra attention is needed labels Apr 21, 2025
@SpaceWalkerRS
Copy link
Member Author

Like the rest of OSL, this API should be minimally invasive. That means texture packs that modify terrain.png ought to work if OSL is installed.

One approach would be implement expandable atlases like in later versions, and replace the vanilla atlases with the expandable ones. For blocks, the terrain.png texture would be stitched into the atlas first, allowing vanilla blocks' textures to work without any further modifications, as their uv coordinates would be the same still. Custom blocks would have to be registered similar to how they are in 1.5-1.7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant