Skip to content

Commit 607ddbf

Browse files
SpecialBuilder32misode
authored andcommitted
Sunken treasure chests and metallurgy elytra
1 parent a2ae1c4 commit 607ddbf

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

gm4/plugins/resource_pack.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -896,6 +896,9 @@ def create_models(self, config: ModelData, models_container: NamespaceProxy[Mode
896896
ret_list: list[Model] = []
897897
for item, model_name in zip(config.item.entries(), model_names):
898898
model_compound = self.vanilla_jar.assets.item_models[add_namespace(item, "minecraft")].data.get("model", {})
899+
if model_compound["type"] == "minecraft:select": # template off the fallback model, (e.g. non-festive chest)
900+
model_compound = model_compound["fallback"]
901+
899902
if model_compound["type"] == "minecraft:special": # uses some special handling
900903
vanilla_model_path: str = model_compound["base"] # covers player_head use case. Others may not be handled properly yet.
901904
special_model = True

0 commit comments

Comments
 (0)