-
Notifications
You must be signed in to change notification settings - Fork 4
Data Generation
starboyceleste edited this page Mar 31, 2023
·
1 revision
Special Model Loader provides a helper for automatic generation of model JSONs with data generators.
SpecialModelDataGenHelper.generateObjModel(item, modelLocation, flipV, ambientOcclusion, particle, output);
Available by calling from FabricModelProvider#generateItemModels
.
@Override
public void generateItemModels(ItemModelGenerators itemModelGenerator) {
SpecialModelDataGenHelper.generateObjModel(SMLTestItems.OBJ_MODEL_ITEM, new ResourceLocation(SMLTest.MODID, "models/item/example_model.obj"), true, false, null, itemModelGenerator.output);
}
Original documentation written by, @MORIMORI0317_jp rewritten by @starboyceleste.
Thank you starboyceleste!