Skip to content

Support mapping items directly overriding vanilla item model definitions using modern CMD (#14)#24

Merged
eclipseisoffline merged 2 commits intoGeyserMC:masterfrom
eclipseisoffline:custom-model-data-overrides
Apr 19, 2026
Merged

Support mapping items directly overriding vanilla item model definitions using modern CMD (#14)#24
eclipseisoffline merged 2 commits intoGeyserMC:masterfrom
eclipseisoffline:custom-model-data-overrides

Conversation

@eclipseisoffline
Copy link
Copy Markdown
Member

@eclipseisoffline eclipseisoffline commented Apr 19, 2026

This PR fixes #14 by introducing support for mapping items that directly override a vanilla item model definition to Rainbow.

This is done by adding an ignoreTopPlainModel property to BedrockItemMapper, which results in ignoring the vanilla plain model case, so that vanilla models are ignored, and making the necessary changes in BedrockPack#map to aid for this. Legacy custom model data mappings are now only used when an item is using a vanilla minecraft:item_model, and has a minecraft:custom_model_data with a single float, and a single float only (no flags, strings or colours).

Also fixes #4, range dispatch model entries are now sorted before the custom model data value is looked up in the array of thresholds, which matches vanilla behaviour.

@eclipseisoffline eclipseisoffline merged commit 37653cd into GeyserMC:master Apr 19, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3d item and items with both strings and floats not converting at all (1.21.11) Crossbows don't have their textures converted

1 participant