@@ -932,18 +932,18 @@ class AdvancementIconTemplate(VanillaTemplate, TemplateOptions): # TODO make thi
932932 # NOTE since advancements are all in the gm4 namespace, so are these models. This template ignores the 'model' field of ModelData
933933 def create_models (self , config : ModelData , models_container : NamespaceProxy [Model ]) -> list [Model ]:
934934 advancement_name = config .reference .split ("/" )[- 1 ]
935+ item = config .item .entries ()[0 ]
935936
936937 if not self .forward :
937938 # then we use the vanilla item's model and settings - inheriting from VanillaTemplate for this
938- item = config .item .entries ()[0 ]
939- config_copy = config .copy (update = {"model" : MapOption (__root__ = {config .item .entries ()[0 ]: f"gm4:gui/advancement/{ advancement_name } " })})
939+ config_copy = config .copy (update = {"model" : MapOption (__root__ = {item : f"gm4:gui/advancement/{ advancement_name } " })})
940940 m = VanillaTemplate .create_models (self , config_copy , models_container )[0 ]
941941
942942 else :
943943 m = models_container [f"gm4:gui/advancement/{ advancement_name } " ] = Model ({
944944 "parent" : self .forward
945945 })
946- config .model = MapOption (__root__ = {config . item . entries ()[ 0 ] : f"gm4:gui/advancement/{ advancement_name } " })
946+ config .model = MapOption (__root__ = {item : f"gm4:gui/advancement/{ advancement_name } " })
947947 return [m ]
948948
949949 def get_item_def_entry (self , config : ModelData , item : str ):
@@ -976,12 +976,13 @@ def create_models(self, config: ModelData, models_container: NamespaceProxy[Mode
976976 m = models_container [model_name ] = Model ({
977977 "parent" : "minecraft:block/cube" ,
978978 "textures" : {
979- "down" : config .textures ['bottom' ],
980- "up" : config .textures ['top' ],
981- "north" : config .textures ['front' ],
982- "south" : config .textures ['side' ],
983- "west" : config .textures ['side' ],
984- "east" : config .textures ['side' ]
979+ "particle" : config .textures ['side' ],
980+ "down" : config .textures ['bottom' ],
981+ "up" : config .textures ['top' ],
982+ "north" : config .textures ['front' ],
983+ "south" : config .textures ['side' ],
984+ "west" : config .textures ['side' ],
985+ "east" : config .textures ['side' ]
985986 }
986987 })
987988 return [m ]
0 commit comments