在mcreator中加载自定义obj模型时出错

时间:2018-08-01 09:34:50

标签: java object 3d

我正在尝试在MCreator上进行修复,但我一直收到此错误           Exception loading model for variant testenvironmentmod:healer#normal for blockstate "testenvironmentmod:healer" net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model testenvironmentmod:healer#normal with loader VariantLoader.INSTANCE, skipping    at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:153) ~[ModelLoaderRegistry.class:?]    at net.minecraftforge.client.model.ModelLoader.registerVariant(ModelLoader.java:248) ~[ModelLoader.class:?]    at net.minecraft.client.renderer.block.model.ModelBakery.loadBlock(ModelBakery.java:153) ~[ModelBakery.class:?]    at net.minecraftforge.client.model.ModelLoader.loadBlocks(ModelLoader.java:236) ~[ModelLoader.class:?]    at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:163) ~[ModelLoader.class:?]    at net.minecraft.client.renderer.block.model.ModelManager.onResourceManagerReload(ModelManager.java:28) [ModelManager.class:?]    at net.minecraft.client.resources.SimpleReloadableResourceManager.registerReloadListener(SimpleReloadableResourceManager.java:121) [SimpleReloadableResourceManager.class:?]    at net.minecraft.client.Minecraft.init(Minecraft.java:559) [Minecraft.class:?]    at net.minecraft.client.Minecraft.run(Minecraft.java:421) [Minecraft.class:?]    at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?]    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_152]    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_152]    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_152]    at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_152]    at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]    at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_152]    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_152]    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_152]    at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_152]    at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]    at GradleStart.main(GradleStart.java:25) [start/:?] Caused by: net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model testenvironmentmod:block/healingblock.obj with loader INSTANCE, skipping    at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:153) ~[ModelLoaderRegistry.class:?]    at net.minecraftforge.client.model.ModelLoader$WeightedRandomModel. (ModelLoader.java:677) ~[ModelLoader$WeightedRandomModel.class:?]    at net.minecraftforge.client.model.ModelLoader$VariantLoader.loadModel(ModelLoader.java:1190) ~[ModelLoader$VariantLoader.class:?]    at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:149) ~[ModelLoaderRegistry.class:?]    ... 21 more Caused by: java.io.FileNotFoundException: testenvironmentmod:models/item/healingblock.obj    at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:69) ~[FallbackResourceManager.class:?]    at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:65) ~[SimpleReloadableResourceManager.class:?]    at net.minecraftforge.client.model.obj.OBJLoader.loadModel(OBJLoader.java:85) ~[OBJLoader.class:?]    at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:149) ~[ModelLoaderRegistry.class:?]    at net.minecraftforge.client.model.ModelLoader$WeightedRandomModel. (ModelLoader.java:677) ~[ModelLoader$WeightedRandomModel.class:?]    at net.minecraftforge.client.model.ModelLoader$VariantLoader.loadModel(ModelLoader.java:1190) ~[ModelLoader$VariantLoader.class:?]    at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:149) ~[ModelLoaderRegistry.class:?]    ... 21 more

我的.obj文件使用三角形面选项导出。但是我仍然像这样Error block

请帮助。非常感谢。

0 个答案:

没有答案