Support generating custom block mappings and resourcepacks#29
Merged
eclipseisoffline merged 20 commits intoMay 17, 2026
Merged
Conversation
…rly map full block geometry and single materials
…up texture path handling
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds support for generating custom block mappings and bedrock resourcepacks to Rainbow. This is currently a work-in-progress and highly experimental: there are still many bugs and TO-DOs. However, the PR has already seem some success with basic custom blocks from Polymer mods like Polymer Patch Bundle (with blockus) and TSA: Concrete!.
The PR adds records and codecs for Geyser's block mappings, which are used by the new
BedrockBlockMapperutility class, which turns overridden block states into a Geyser block mapping and appropriate geometry and texture files in the exported resourcepack.ModelTextureshas been abstracted to support both textures for blocks and items: it has been split intoModelTexturesand the newItemModelTexturesinterface (which holds most of the oldModelTexturescode for handling item textures). A new implementation ofModelTextures,BlockModelTextures, has been created for handling block textures.Users will be able to manually map a single block state, by passing it as argument to a command or by passing the position of such a block state in the world to a command. Rainbow will also provide an option to automatically detect all custom block state overrides in the currently loaded resourcepacks (may not be perfect).
A short list of TO-DOs for this PR:
full_blockandcrossgeometry files.full_blockcrossreport.txt(will require a rework of how statistics are passed through the code).AssetResolverfix)