Jump to content

julesmaster7

Members
  • Posts

    17
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

julesmaster7's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Hi there, I am making a block that has the BlockStates PropertyDirection and a PropertyEnum. I now have these errors and it has no texture in game: Error: [14:51:56] [Client thread/ERROR] [FML]: Exception loading model for variant pm:chair#facing=west,type=clean for blockstate "pm:chair[facing=west,type=clean]" net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model pm:chair#facing=west,type=clean 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:241) ~[ModelLoader.class:?] at net.minecraft.client.renderer.block.model.ModelBakery.loadBlock(ModelBakery.java:145) ~[ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.loadBlocks(ModelLoader.java:229) ~[ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:146) ~[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:122) [simpleReloadableResourceManager.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:540) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:386) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_102] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_102] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_102] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_102] 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_102] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_102] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_102] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_102] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?] at GradleStart.main(GradleStart.java:26) [start/:?] Caused by: net.minecraft.client.renderer.block.model.ModelBlockDefinition$MissingVariantException at net.minecraft.client.renderer.block.model.ModelBlockDefinition.getVariant(ModelBlockDefinition.java:78) ~[ModelBlockDefinition.class:?] at net.minecraftforge.client.model.ModelLoader$VariantLoader.loadModel(ModelLoader.java:1184) ~[ModelLoader$VariantLoader.class:?] at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:149) ~[ModelLoaderRegistry.class:?] ... 21 more [14:51:56] [Client thread/ERROR] [FML]: Exception loading model for variant pm:chair#facing=east,type=dirty for blockstate "pm:chair[facing=east,type=dirty]" net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model pm:chair#facing=east,type=dirty 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:241) ~[ModelLoader.class:?] at net.minecraft.client.renderer.block.model.ModelBakery.loadBlock(ModelBakery.java:145) ~[ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.loadBlocks(ModelLoader.java:229) ~[ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:146) ~[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:122) [simpleReloadableResourceManager.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:540) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:386) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_102] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_102] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_102] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_102] 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_102] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_102] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_102] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_102] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?] at GradleStart.main(GradleStart.java:26) [start/:?] Caused by: net.minecraft.client.renderer.block.model.ModelBlockDefinition$MissingVariantException at net.minecraft.client.renderer.block.model.ModelBlockDefinition.getVariant(ModelBlockDefinition.java:78) ~[ModelBlockDefinition.class:?] at net.minecraftforge.client.model.ModelLoader$VariantLoader.loadModel(ModelLoader.java:1184) ~[ModelLoader$VariantLoader.class:?] at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:149) ~[ModelLoaderRegistry.class:?] ... 21 more [14:51:56] [Client thread/ERROR] [FML]: Exception loading model for variant pm:chair#facing=west,type=dirty for blockstate "pm:chair[facing=west,type=dirty]" net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model pm:chair#facing=west,type=dirty 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:241) ~[ModelLoader.class:?] at net.minecraft.client.renderer.block.model.ModelBakery.loadBlock(ModelBakery.java:145) ~[ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.loadBlocks(ModelLoader.java:229) ~[ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:146) ~[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:122) [simpleReloadableResourceManager.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:540) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:386) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_102] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_102] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_102] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_102] 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_102] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_102] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_102] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_102] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?] at GradleStart.main(GradleStart.java:26) [start/:?] Caused by: net.minecraft.client.renderer.block.model.ModelBlockDefinition$MissingVariantException at net.minecraft.client.renderer.block.model.ModelBlockDefinition.getVariant(ModelBlockDefinition.java:78) ~[ModelBlockDefinition.class:?] at net.minecraftforge.client.model.ModelLoader$VariantLoader.loadModel(ModelLoader.java:1184) ~[ModelLoader$VariantLoader.class:?] at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:149) ~[ModelLoaderRegistry.class:?] ... 21 more [14:51:56] [Client thread/ERROR] [FML]: Exception loading model for variant pm:chair#facing=north,type=dirty for blockstate "pm:chair[facing=north,type=dirty]" net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model pm:chair#facing=north,type=dirty 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:241) ~[ModelLoader.class:?] at net.minecraft.client.renderer.block.model.ModelBakery.loadBlock(ModelBakery.java:145) ~[ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.loadBlocks(ModelLoader.java:229) ~[ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:146) ~[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:122) [simpleReloadableResourceManager.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:540) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:386) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_102] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_102] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_102] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_102] 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_102] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_102] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_102] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_102] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?] at GradleStart.main(GradleStart.java:26) [start/:?] Caused by: net.minecraft.client.renderer.block.model.ModelBlockDefinition$MissingVariantException at net.minecraft.client.renderer.block.model.ModelBlockDefinition.getVariant(ModelBlockDefinition.java:78) ~[ModelBlockDefinition.class:?] at net.minecraftforge.client.model.ModelLoader$VariantLoader.loadModel(ModelLoader.java:1184) ~[ModelLoader$VariantLoader.class:?] at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:149) ~[ModelLoaderRegistry.class:?] ... 21 more [14:51:56] [Client thread/ERROR] [FML]: Suppressed additional 4 model loading errors for domain pm [14:51:57] [Client thread/INFO] [sTDOUT]: [com.julesmaster7.pishmod.PishMod:init:43]: Init [14:51:57] [Client thread/INFO] [FML]: Injecting itemstacks [14:51:57] [Client thread/INFO] [FML]: Itemstack injection complete [14:51:57] [Client thread/INFO] [sTDOUT]: [com.julesmaster7.pishmod.PishMod:postInit:49]: Post Init [14:51:57] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods [14:51:57] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Pish Mod [14:52:02] [Client thread/INFO]: SoundSystem shutting down... [14:52:02] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com [14:52:02] [sound Library Loader/INFO]: Starting up SoundSystem... [14:52:02] [Thread-10/INFO]: Initializing LWJGL OpenAL [14:52:02] [Thread-10/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [14:52:02] [Thread-10/INFO]: OpenAL initialized. [14:52:03] [sound Library Loader/INFO]: Sound engine started [14:52:09] [Client thread/INFO] [FML]: Max texture size: 16384 [14:52:09] [Client thread/INFO]: Created: 1024x512 textures-atlas [14:52:11] [Client thread/ERROR] [FML]: Exception loading model for variant pm:chair#facing=west,type=clean for blockstate "pm:chair[facing=west,type=clean]" net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model pm:chair#facing=west,type=clean 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:241) ~[ModelLoader.class:?] at net.minecraft.client.renderer.block.model.ModelBakery.loadBlock(ModelBakery.java:145) ~[ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.loadBlocks(ModelLoader.java:229) ~[ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:146) ~[ModelLoader.class:?] at net.minecraft.client.renderer.block.model.ModelManager.onResourceManagerReload(ModelManager.java:28) [ModelManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:132) [simpleReloadableResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SimpleReloadableResourceManager.java:113) [simpleReloadableResourceManager.class:?] at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:799) [Minecraft.class:?] at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:340) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:561) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:386) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_102] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_102] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_102] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_102] 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_102] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_102] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_102] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_102] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?] at GradleStart.main(GradleStart.java:26) [start/:?] Caused by: net.minecraft.client.renderer.block.model.ModelBlockDefinition$MissingVariantException at net.minecraft.client.renderer.block.model.ModelBlockDefinition.getVariant(ModelBlockDefinition.java:78) ~[ModelBlockDefinition.class:?] at net.minecraftforge.client.model.ModelLoader$VariantLoader.loadModel(ModelLoader.java:1184) ~[ModelLoader$VariantLoader.class:?] at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:149) ~[ModelLoaderRegistry.class:?] ... 24 more [14:52:11] [Client thread/ERROR] [FML]: Exception loading model for variant pm:chair#facing=east,type=dirty for blockstate "pm:chair[facing=east,type=dirty]" net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model pm:chair#facing=east,type=dirty 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:241) ~[ModelLoader.class:?] at net.minecraft.client.renderer.block.model.ModelBakery.loadBlock(ModelBakery.java:145) ~[ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.loadBlocks(ModelLoader.java:229) ~[ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:146) ~[ModelLoader.class:?] at net.minecraft.client.renderer.block.model.ModelManager.onResourceManagerReload(ModelManager.java:28) [ModelManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:132) [simpleReloadableResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SimpleReloadableResourceManager.java:113) [simpleReloadableResourceManager.class:?] at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:799) [Minecraft.class:?] at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:340) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:561) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:386) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_102] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_102] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_102] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_102] 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_102] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_102] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_102] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_102] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?] at GradleStart.main(GradleStart.java:26) [start/:?] Caused by: net.minecraft.client.renderer.block.model.ModelBlockDefinition$MissingVariantException at net.minecraft.client.renderer.block.model.ModelBlockDefinition.getVariant(ModelBlockDefinition.java:78) ~[ModelBlockDefinition.class:?] at net.minecraftforge.client.model.ModelLoader$VariantLoader.loadModel(ModelLoader.java:1184) ~[ModelLoader$VariantLoader.class:?] at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:149) ~[ModelLoaderRegistry.class:?] ... 24 more [14:52:11] [Client thread/ERROR] [FML]: Exception loading model for variant pm:chair#facing=west,type=dirty for blockstate "pm:chair[facing=west,type=dirty]" net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model pm:chair#facing=west,type=dirty 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:241) ~[ModelLoader.class:?] at net.minecraft.client.renderer.block.model.ModelBakery.loadBlock(ModelBakery.java:145) ~[ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.loadBlocks(ModelLoader.java:229) ~[ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:146) ~[ModelLoader.class:?] at net.minecraft.client.renderer.block.model.ModelManager.onResourceManagerReload(ModelManager.java:28) [ModelManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:132) [simpleReloadableResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SimpleReloadableResourceManager.java:113) [simpleReloadableResourceManager.class:?] at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:799) [Minecraft.class:?] at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:340) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:561) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:386) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_102] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_102] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_102] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_102] 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_102] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_102] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_102] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_102] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?] at GradleStart.main(GradleStart.java:26) [start/:?] Caused by: net.minecraft.client.renderer.block.model.ModelBlockDefinition$MissingVariantException at net.minecraft.client.renderer.block.model.ModelBlockDefinition.getVariant(ModelBlockDefinition.java:78) ~[ModelBlockDefinition.class:?] at net.minecraftforge.client.model.ModelLoader$VariantLoader.loadModel(ModelLoader.java:1184) ~[ModelLoader$VariantLoader.class:?] at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:149) ~[ModelLoaderRegistry.class:?] ... 24 more [14:52:11] [Client thread/ERROR] [FML]: Exception loading model for variant pm:chair#facing=north,type=dirty for blockstate "pm:chair[facing=north,type=dirty]" net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model pm:chair#facing=north,type=dirty 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:241) ~[ModelLoader.class:?] at net.minecraft.client.renderer.block.model.ModelBakery.loadBlock(ModelBakery.java:145) ~[ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.loadBlocks(ModelLoader.java:229) ~[ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:146) ~[ModelLoader.class:?] at net.minecraft.client.renderer.block.model.ModelManager.onResourceManagerReload(ModelManager.java:28) [ModelManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:132) [simpleReloadableResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SimpleReloadableResourceManager.java:113) [simpleReloadableResourceManager.class:?] at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:799) [Minecraft.class:?] at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:340) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:561) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:386) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_102] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_102] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_102] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_102] 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_102] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_102] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_102] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_102] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?] at GradleStart.main(GradleStart.java:26) [start/:?] Caused by: net.minecraft.client.renderer.block.model.ModelBlockDefinition$MissingVariantException at net.minecraft.client.renderer.block.model.ModelBlockDefinition.getVariant(ModelBlockDefinition.java:78) ~[ModelBlockDefinition.class:?] at net.minecraftforge.client.model.ModelLoader$VariantLoader.loadModel(ModelLoader.java:1184) ~[ModelLoader$VariantLoader.class:?] at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:149) ~[ModelLoaderRegistry.class:?] ... 24 more Block file: package com.julesmaster7.pishmod.block; import java.util.List; import org.lwjgl.input.Keyboard; import com.julesmaster7.pishmod.PishMod; import com.julesmaster7.pishmod.Reference; import com.julesmaster7.pishmod.Reference.ChairTypes; import com.julesmaster7.pishmod.block.item.IMetaBlockName; import com.julesmaster7.pishmod.init.PishBlocks; import net.minecraft.block.Block; import net.minecraft.block.BlockPistonBase; import net.minecraft.block.material.Material; import net.minecraft.block.properties.IProperty; import net.minecraft.block.properties.PropertyDirection; import net.minecraft.block.properties.PropertyEnum; import net.minecraft.block.state.BlockStateContainer; import net.minecraft.block.state.IBlockState; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.Item; import net.minecraft.item.ItemBlock; import net.minecraft.item.ItemStack; import net.minecraft.util.EnumFacing; import net.minecraft.util.EnumHand; import net.minecraft.util.IStringSerializable; import net.minecraft.util.math.AxisAlignedBB; import net.minecraft.util.math.BlockPos; import net.minecraft.util.math.RayTraceResult; import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; public class BlockChair extends Block implements IMetaBlockName { public static final PropertyEnum TYPE = PropertyEnum.create("type", ChairTypes.class); public static final PropertyDirection FACING = PropertyDirection.create("facing", EnumFacing.Plane.HORIZONTAL); public static final AxisAlignedBB BOUNDING_BOX = new AxisAlignedBB(0.0, 0.0, 0.0, 1.0, 2.0, 1.0); public static final AxisAlignedBB COLLISION_BOX = new AxisAlignedBB(0.0, 0.0, 0.0, 1.0, 2.0, 1.0); public BlockChair() { super(Material.WOOD); this.setUnlocalizedName(Reference.PishBlocks.CHAIR.getUnlocalizedName()); this.setRegistryName(Reference.PishBlocks.CHAIR.getRegistryName()); this.setCreativeTab(PishMod.tabPish); this.setDefaultState(this.blockState.getBaseState().withProperty(TYPE, ChairTypes.CLEAN).withProperty(FACING, EnumFacing.NORTH)); this.setHardness(1.0F); } @Override public IBlockState onBlockPlaced(World worldIn, BlockPos pos, EnumFacing facing, float hitX, float hitY, float hitZ, int meta, EntityLivingBase placer) { return super.onBlockPlaced(worldIn, pos, BlockPistonBase.getFacingFromEntity(pos, placer), hitX, hitY, hitZ, meta, placer); } @Override public void onBlockPlacedBy(World worldIn, BlockPos pos, IBlockState state, EntityLivingBase placer, ItemStack stack) { worldIn.setBlockState(pos, state.withProperty(FACING, BlockPistonBase.getFacingFromEntity(pos, placer)), 2); } @Override public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, EntityPlayer player, EnumHand hand, ItemStack heldItem, EnumFacing side, float hitX, float hitY, float hitZ) { if (Keyboard.isKeyDown(Keyboard.KEY_RSHIFT) || Keyboard.isKeyDown(Keyboard.KEY_LSHIFT)) { if (!world.isRemote) { this.breakBlock(world, pos, state); world.setBlockState(pos, this.getStateFromMeta(1)); return true; } return false; } return false; } @Override public boolean isFullCube(IBlockState state) { return false; } @Override public boolean isOpaqueCube(IBlockState state) { return false; } @Override public AxisAlignedBB getBoundingBox(IBlockState state, IBlockAccess source, BlockPos pos) { return BOUNDING_BOX; } @Override protected BlockStateContainer createBlockState() { return new BlockStateContainer(this, new IProperty[] {TYPE, FACING}); } @Override public IBlockState getStateFromMeta(int meta) { return getDefaultState().withProperty(TYPE, ChairTypes.values()[meta]); } @Override public int getMetaFromState(IBlockState state) { ChairTypes type = (ChairTypes) state.getValue(TYPE); return type.getID(); } @Override public int damageDropped(IBlockState state) { return getMetaFromState(state); } @Override public void getSubBlocks(Item item, CreativeTabs tab, List<ItemStack> list) { for (int i = 0; i < ChairTypes.values().length; i++) { list.add(new ItemStack(item, 1, i)); } } @Override public String getSpecialName(ItemStack stack) { return ChairTypes.values()[stack.getItemDamage()].getName(); } @Override public ItemStack getPickBlock(IBlockState state, RayTraceResult target, World world, BlockPos pos, EntityPlayer player) { return new ItemStack(Item.getItemFromBlock(this), 1, this.getMetaFromState(world.getBlockState(pos))); } } Block init file: package com.julesmaster7.pishmod.init; import com.julesmaster7.pishmod.Reference; import com.julesmaster7.pishmod.Reference.ChairTypes; import com.julesmaster7.pishmod.block.BlockChair; import com.julesmaster7.pishmod.block.BlockPoo; import com.julesmaster7.pishmod.block.item.ItemBlockEnumProperty; import net.minecraft.block.Block; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.block.model.ModelResourceLocation; import net.minecraft.item.Item; import net.minecraft.item.ItemBlock; import net.minecraft.util.ResourceLocation; import net.minecraftforge.client.model.ModelLoader; import net.minecraftforge.fml.common.registry.GameRegistry; public class PishBlocks { public static Block poo; public static Block chair; public static void init() { poo = new BlockPoo(); chair = new BlockChair(); } public static void register() { registerBlock(poo); registerBlock(chair, new ItemBlockEnumProperty(chair)); } public static void registerRenders() { registerRender(poo); for (int i = 0; i < ChairTypes.values().length; i++) { registerRender(chair, i, "chair_" + ChairTypes.values()[i].getName()); } } private static void registerBlock(Block block) { GameRegistry.register(block); ItemBlock item = new ItemBlock(block); item.setRegistryName(block.getRegistryName()); GameRegistry.register(item); } private static void registerBlock(Block block, ItemBlock itemBlock) { GameRegistry.register(block); itemBlock.setRegistryName(block.getRegistryName()); GameRegistry.register(itemBlock); } private static void registerRender(Block block) { //Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(Item.getItemFromBlock(block), 0, new ModelResourceLocation(block.getRegistryName(), "inventory")); ModelLoader.setCustomModelResourceLocation(Item.getItemFromBlock(block), 0, new ModelResourceLocation(block.getRegistryName(), "inventory")); } private static void registerRender(Block block, int meta, String fileName) { //Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(Item.getItemFromBlock(block), 0, new ModelResourceLocation(block.getRegistryName(), "inventory")); ModelLoader.setCustomModelResourceLocation(Item.getItemFromBlock(block), meta, new ModelResourceLocation(new ResourceLocation(Reference.MOD_ID, fileName), "inventory")); } } Blockstate file: { "variants": { "facing=north, type=clean": {"model": "pm:chair_clean", "y": 180}, "facing=south, type=clean": {"model": "pm:chair_clean"}, "facing=east, type=clean": {"model": "pm:chair_clean", "y": 270}, "facing=west, type=clean": {"model": "pm:chair_clean", "y": 90}, "facing=north, type=dirty": {"model": "pm:chair_dirty", "y": 180}, "facing=south, type=dirty": {"model": "pm:chair_dirty"}, "facing=east, type=dirty": {"model": "pm:chair_dirty", "y": 270}, "facing=west, type=dirty": {"model": "pm:chair_dirty", "y": 90} } } Model file for type=clean: { "__comment": "Model generated using MrCrayfish's Model Creator (http://mrcrayfish.com/modelcreator/)", "textures": { "particle": "blocks/planks_oak", "0": "blocks/planks_oak", "1": "blocks/log_oak_top", "2": "blocks/cake_top" }, "elements": [ { "name": "leg1", "from": [ 4.0, 0.0, 4.0 ], "to": [ 5.0, 5.0, 5.0 ], "faces": { "north": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 5.0 ] }, "east": { "texture": "#0", "uv": [ 1.0, 0.0, 2.0, 5.0 ] }, "south": { "texture": "#0", "uv": [ 2.0, 0.0, 3.0, 5.0 ] }, "west": { "texture": "#0", "uv": [ 3.0, 0.0, 4.0, 5.0 ] }, "up": { "texture": "#0", "uv": [ 0.0, 3.0, 1.0, 4.0 ] }, "down": { "texture": "#0", "uv": [ 0.0, 3.0, 1.0, 4.0 ] } } }, { "name": "leg2", "from": [ 4.0, 0.0, 11.0 ], "to": [ 5.0, 5.0, 12.0 ], "faces": { "north": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 5.0 ] }, "east": { "texture": "#0", "uv": [ 1.0, 0.0, 2.0, 5.0 ] }, "south": { "texture": "#0", "uv": [ 2.0, 0.0, 3.0, 5.0 ] }, "west": { "texture": "#0", "uv": [ 3.0, 0.0, 4.0, 5.0 ] }, "up": { "texture": "#0", "uv": [ 0.0, 3.0, 1.0, 4.0 ] }, "down": { "texture": "#0", "uv": [ 0.0, 3.0, 1.0, 4.0 ] } } }, { "name": "leg3", "from": [ 11.0, 0.0, 11.0 ], "to": [ 12.0, 5.0, 12.0 ], "faces": { "north": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 5.0 ] }, "east": { "texture": "#0", "uv": [ 1.0, 0.0, 2.0, 5.0 ] }, "south": { "texture": "#0", "uv": [ 2.0, 0.0, 3.0, 5.0 ] }, "west": { "texture": "#0", "uv": [ 3.0, 0.0, 4.0, 5.0 ] }, "up": { "texture": "#0", "uv": [ 0.0, 3.0, 1.0, 4.0 ] }, "down": { "texture": "#0", "uv": [ 0.0, 3.0, 1.0, 4.0 ] } } }, { "name": "leg4", "from": [ 11.0, 0.0, 4.0 ], "to": [ 12.0, 5.0, 5.0 ], "faces": { "north": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 5.0 ] }, "east": { "texture": "#0", "uv": [ 1.0, 0.0, 2.0, 5.0 ] }, "south": { "texture": "#0", "uv": [ 2.0, 0.0, 3.0, 5.0 ] }, "west": { "texture": "#0", "uv": [ 3.0, 0.0, 4.0, 5.0 ] }, "up": { "texture": "#0", "uv": [ 0.0, 3.0, 1.0, 4.0 ] }, "down": { "texture": "#0", "uv": [ 0.0, 3.0, 1.0, 4.0 ] } } }, { "name": "seat", "from": [ 4.0, 5.0, 4.0 ], "to": [ 12.0, 7.0, 12.0 ], "faces": { "north": { "texture": "#1", "uv": [ 1.0, 1.0, 9.0, 3.0 ] }, "east": { "texture": "#1", "uv": [ 1.0, 3.0, 9.0, 5.0 ] }, "south": { "texture": "#1", "uv": [ 1.0, 5.0, 9.0, 7.0 ] }, "west": { "texture": "#1", "uv": [ 1.0, 7.0, 9.0, 9.0 ] }, "up": { "texture": "#1", "uv": [ 4.0, 4.0, 12.0, 12.0 ] }, "down": { "texture": "#1", "uv": [ 4.0, 4.0, 12.0, 12.0 ] } } }, { "name": "back", "from": [ 4.0, 7.0, 4.0 ], "to": [ 12.0, 16.0, 5.0 ], "faces": { "north": { "texture": "#0", "uv": [ 3.0, 4.0, 11.0, 13.0 ] }, "east": { "texture": "#0", "uv": [ 0.0, 4.0, 1.0, 13.0 ] }, "south": { "texture": "#0", "uv": [ 3.0, 4.0, 11.0, 13.0 ] }, "west": { "texture": "#0", "uv": [ 0.0, 4.0, 1.0, 13.0 ] }, "up": { "texture": "#0", "uv": [ 3.0, 3.0, 11.0, 4.0 ] }, "down": { "texture": "#0", "uv": [ 3.0, 3.0, 11.0, 4.0 ] } } }, { "name": "cushion", "from": [ 5.0, 7.0, 5.0 ], "to": [ 11.0, 8.0, 11.0 ], "faces": { "north": { "texture": "#2", "uv": [ 0.0, 0.0, 6.0, 1.0 ] }, "east": { "texture": "#2", "uv": [ 0.0, 0.0, 6.0, 1.0 ] }, "south": { "texture": "#2", "uv": [ 0.0, 0.0, 6.0, 1.0 ] }, "west": { "texture": "#2", "uv": [ 0.0, 0.0, 6.0, 1.0 ] }, "up": { "texture": "#2", "uv": [ 1.0, 1.0, 15.0, 15.0 ] }, "down": { "texture": "#2", "uv": [ 1.0, 1.0, 15.0, 15.0 ] } } } ] } Model for dirty: { "__comment": "Model generated using MrCrayfish's Model Creator (http://mrcrayfish.com/modelcreator/)", "textures": { "particle": "blocks/planks_big_oak", "0": "blocks/planks_big_oak", "1": "blocks/log_big_oak_top" }, "elements": [ { "name": "leg1", "from": [ 4.0, 0.0, 4.0 ], "to": [ 5.0, 5.0, 5.0 ], "faces": { "north": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 5.0 ] }, "east": { "texture": "#0", "uv": [ 1.0, 0.0, 2.0, 5.0 ] }, "south": { "texture": "#0", "uv": [ 2.0, 0.0, 3.0, 5.0 ] }, "west": { "texture": "#0", "uv": [ 3.0, 0.0, 4.0, 5.0 ] }, "up": { "texture": "#0", "uv": [ 0.0, 3.0, 1.0, 4.0 ] }, "down": { "texture": "#0", "uv": [ 0.0, 3.0, 1.0, 4.0 ] } } }, { "name": "leg2", "from": [ 4.0, 0.0, 11.0 ], "to": [ 5.0, 5.0, 12.0 ], "faces": { "north": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 5.0 ] }, "east": { "texture": "#0", "uv": [ 1.0, 0.0, 2.0, 5.0 ] }, "south": { "texture": "#0", "uv": [ 2.0, 0.0, 3.0, 5.0 ] }, "west": { "texture": "#0", "uv": [ 3.0, 0.0, 4.0, 5.0 ] }, "up": { "texture": "#0", "uv": [ 0.0, 3.0, 1.0, 4.0 ] }, "down": { "texture": "#0", "uv": [ 0.0, 3.0, 1.0, 4.0 ] } } }, { "name": "leg3", "from": [ 11.0, 0.0, 11.0 ], "to": [ 12.0, 5.0, 12.0 ], "faces": { "north": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 5.0 ] }, "east": { "texture": "#0", "uv": [ 1.0, 0.0, 2.0, 5.0 ] }, "south": { "texture": "#0", "uv": [ 2.0, 0.0, 3.0, 5.0 ] }, "west": { "texture": "#0", "uv": [ 3.0, 0.0, 4.0, 5.0 ] }, "up": { "texture": "#0", "uv": [ 0.0, 3.0, 1.0, 4.0 ] }, "down": { "texture": "#0", "uv": [ 0.0, 3.0, 1.0, 4.0 ] } } }, { "name": "leg4", "from": [ 11.0, 0.0, 4.0 ], "to": [ 12.0, 5.0, 5.0 ], "faces": { "north": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 5.0 ] }, "east": { "texture": "#0", "uv": [ 1.0, 0.0, 2.0, 5.0 ] }, "south": { "texture": "#0", "uv": [ 2.0, 0.0, 3.0, 5.0 ] }, "west": { "texture": "#0", "uv": [ 3.0, 0.0, -14.0, 4.0 ] }, "up": { "texture": "#0", "uv": [ 0.0, 3.0, 1.0, 4.0 ] }, "down": { "texture": "#0", "uv": [ 0.0, 3.0, 1.0, 4.0 ] } } }, { "name": "seat", "from": [ 4.0, 5.0, 4.0 ], "to": [ 12.0, 7.0, 12.0 ], "faces": { "north": { "texture": "#1", "uv": [ 1.0, 1.0, 9.0, 3.0 ] }, "east": { "texture": "#1", "uv": [ 1.0, 7.0, 9.0, 9.0 ] }, "south": { "texture": "#1", "uv": [ 1.0, 1.0, 9.0, 3.0 ] }, "west": { "texture": "#1", "uv": [ 1.0, 7.0, 9.0, 9.0 ] }, "up": { "texture": "#1", "uv": [ 4.0, 4.0, 12.0, 12.0 ] }, "down": { "texture": "#1", "uv": [ 4.0, 4.0, 12.0, 12.0 ] } } }, { "name": "back", "from": [ 4.0, 7.0, 4.0 ], "to": [ 12.0, 16.0, 5.0 ], "faces": { "north": { "texture": "#0", "uv": [ 3.0, 4.0, 11.0, 13.0 ] }, "east": { "texture": "#0", "uv": [ 0.0, 4.0, 1.0, 13.0 ] }, "south": { "texture": "#0", "uv": [ 3.0, 4.0, 11.0, 13.0 ] }, "west": { "texture": "#0", "uv": [ 0.0, 4.0, 1.0, 13.0 ] }, "up": { "texture": "#0", "uv": [ 3.0, 3.0, 11.0, 4.0 ] }, "down": { "texture": "#0", "uv": [ 3.0, 3.0, 11.0, 4.0 ] } } } ] } Thanks!
  2. Instead of having the code for the effect in onItemRightClicked have it in onPlayerStoppedUsing (i believe it was that name may have changed). For an example of this look at ItemBow. That method gets called after you release the right button. in the case of the bow it releases the arrow. I want to know how to set a cooldown for onItemRightClick.
  3. Thank you guys! One extra thing: how do I set a cooldown for my onItemRightClick.
  4. Hi there, I was trying to make my item get all the entitys within a 10 block radius and take away 2 health + if it is a player play a sound. All on right click. Here is my right click method: @Override public ActionResult<ItemStack> onItemRightClick(ItemStack itemStackIn, World worldIn, EntityPlayer playerIn, EnumHand hand) { AxisAlignedBB bb = new AxisAlignedBB(10, 10, 10, 10, 10, 10); worldIn.getEntitiesWithinAABB(EntityLiving.class, bb); return super.onItemRightClick(itemStackIn, worldIn, playerIn, hand); } I can't figure out how to hurt the entitys that it finds.
  5. Hi there, I am adding a mob to the game in forge 1.8 and my model is all gliched up in the game. There is transparent bits, bits in the wrong spot and more! I used Techne to create my model and this is the model file: package com.julesmaster7.awesomemod.entity.passive; import net.minecraft.client.model.ModelBase; import net.minecraft.client.model.ModelRenderer; import net.minecraft.client.renderer.GlStateManager; import net.minecraft.entity.Entity; import net.minecraft.util.MathHelper; public class ModelAwesomeMob extends ModelBase { ModelRenderer leg1; ModelRenderer leg2; ModelRenderer body; ModelRenderer arm1; ModelRenderer arm2; ModelRenderer head; ModelRenderer hair1; ModelRenderer hair2; ModelRenderer hair3; ModelRenderer ear1; ModelRenderer ear2; ModelRenderer eye1; ModelRenderer eye2; ModelRenderer nose; ModelRenderer mouth; public ModelAwesomeMob() { int textureWidth = 64; int textureHeight = 64; leg1 = new ModelRenderer(this, 24, 25); leg1.addBox(0F, 0F, 0F, 2, 8, 2); leg1.setRotationPoint(-1F, 16F, -4F); leg1.setTextureSize(64, 64); leg1.mirror = true; setRotation(leg1, 0F, 0F, 0F); leg2 = new ModelRenderer(this, 33, 25); leg2.addBox(0F, 0F, 0F, 2, 8, 2); leg2.setRotationPoint(-1F, 16F, 2F); leg2.setTextureSize(64, 64); leg2.mirror = true; setRotation(leg2, 0F, 0F, 0F); body = new ModelRenderer(this, 0, 0); body.addBox(0F, 0F, 0F, 8, 15, 10); body.setRotationPoint(-4F, 2F, -5F); body.setTextureSize(64, 64); body.mirror = true; setRotation(body, 0F, 0F, 0F); arm1 = new ModelRenderer(this, 36, 12); arm1.addBox(0F, 0F, 0F, 2, 10, 2); arm1.setRotationPoint(0F, 5F, 4F); arm1.setTextureSize(64, 64); arm1.mirror = true; setRotation(arm1, 0.2602503F, 0F, 0F); arm2 = new ModelRenderer(this, 36, 0); arm2.addBox(0F, 0F, 0F, 2, 10, 2); arm2.setRotationPoint(0F, 4F, -6F); arm2.setTextureSize(64, 64); arm2.mirror = true; setRotation(arm2, -0.2602503F, 0F, 0F); head = new ModelRenderer(this, 0, 25); head.addBox(0F, 0F, 0F, 6, 7, 6); head.setRotationPoint(-3F, -4F, -3F); head.setTextureSize(64, 64); head.mirror = true; setRotation(head, 0F, 0F, 0F); hair1 = new ModelRenderer(this, 0, 38); hair1.addBox(0F, 0F, 0F, 7, 1, 4); hair1.setRotationPoint(-3.5F, -4.5F, -1F); hair1.setTextureSize(64, 64); hair1.mirror = true; setRotation(hair1, 0F, 0F, 0F); hair2 = new ModelRenderer(this, 24, 39); hair2.addBox(0F, 0F, 0F, 7, 1, 2); hair2.setRotationPoint(-3.5F, -3.5F, -4.5F); hair2.setTextureSize(64, 64); hair2.mirror = true; setRotation(hair2, 0.5948578F, 0F, 0F); hair3 = new ModelRenderer(this, 24, 35); hair3.addBox(0F, 0F, 0F, 7, 1, 2); hair3.setRotationPoint(-3.5F, -4.5F, 2.5F); hair3.setTextureSize(64, 64); hair3.mirror = true; setRotation(hair3, -0.5948606F, 0F, 0F); ear1 = new ModelRenderer(this, 26, 0); ear1.addBox(0F, 0F, 0F, 2, 2, 1); ear1.setRotationPoint(-1F, -2F, 2.5F); ear1.setTextureSize(64, 64); ear1.mirror = true; setRotation(ear1, 0F, 0F, 0F); ear2 = new ModelRenderer(this, 26, 4); ear2.addBox(0F, 0F, 0F, 2, 2, 1); ear2.setRotationPoint(-1F, -2F, -3.5F); ear2.setTextureSize(64, 64); ear2.mirror = true; setRotation(ear2, 0F, 0F, 0F); eye1 = new ModelRenderer(this, 0, 25); eye1.addBox(0F, 0F, 0F, 1, 1, 1); eye1.setRotationPoint(2.5F, -2F, 1F); eye1.setTextureSize(64, 64); eye1.mirror = true; setRotation(eye1, 0F, 0F, 0F); eye2 = new ModelRenderer(this, 0, 27); eye2.addBox(0F, 0F, 0F, 1, 1, 1); eye2.setRotationPoint(2.5F, -2F, -2F); eye2.setTextureSize(64, 64); eye2.mirror = true; setRotation(eye2, 0F, 0F, 0F); nose = new ModelRenderer(this, 18, 25); nose.addBox(0F, 0F, 0F, 1, 1, 1); nose.setRotationPoint(2.5F, -1F, -0.5F); nose.setTextureSize(64, 64); nose.mirror = true; setRotation(nose, 0F, 0F, 0F); mouth = new ModelRenderer(this, 0, 0); mouth.addBox(0F, 0F, 0F, 1, 1, 4); mouth.setRotationPoint(2.5F, 0.5F, -2F); mouth.setTextureSize(64, 64); mouth.mirror = true; setRotation(mouth, 0F, 0F, 0F); } public void render(Entity entity, float time, float limbSwingDistance, float f2, float headYRotation, float headXRotation, float Ytranslation) { super.render(entity, time, limbSwingDistance, f2, headYRotation, headXRotation, Ytranslation); setRotationAngles(time, limbSwingDistance, f2, headYRotation, headXRotation, Ytranslation, entity); if (this.isChild) { float div = 2.0F; GlStateManager.pushMatrix(); GlStateManager.scale(1.0F / div, 1.0F / div, 1.0F / div); GlStateManager.translate(0.0F, 24.0F * Ytranslation, 0.0F); leg1.render(Ytranslation); leg2.render(Ytranslation); body.render(Ytranslation); arm1.render(Ytranslation); arm2.render(Ytranslation); head.render(Ytranslation); hair1.render(Ytranslation); hair2.render(Ytranslation); hair3.render(Ytranslation); ear1.render(Ytranslation); ear2.render(Ytranslation); eye1.render(Ytranslation); eye2.render(Ytranslation); nose.render(Ytranslation); mouth.render(Ytranslation); GlStateManager.popMatrix(); } else { leg1.render(Ytranslation); leg2.render(Ytranslation); body.render(Ytranslation); arm1.render(Ytranslation); arm2.render(Ytranslation); head.render(Ytranslation); hair1.render(Ytranslation); hair2.render(Ytranslation); hair3.render(Ytranslation); ear1.render(Ytranslation); ear2.render(Ytranslation); eye1.render(Ytranslation); eye2.render(Ytranslation); nose.render(Ytranslation); mouth.render(Ytranslation); } } private void setRotation(ModelRenderer model, float x, float y, float z) { model.rotateAngleX = x; model.rotateAngleY = y; model.rotateAngleZ = z; } public void setRotationAngles(float time, float limbSwingDistance, float f2, float headYRotation, float headXRotation, float f5, Entity entity) { super.setRotationAngles(time, limbSwingDistance, f2, headYRotation, headXRotation, f5, entity); this.head.rotateAngleX = headXRotation / (180F / (float)Math.PI); this.head.rotateAngleY = headYRotation / (180F / (float)Math.PI); this.body.rotateAngleX = ((float)Math.PI / 2F); this.leg1.rotateAngleX = MathHelper.cos(time * 0.6662F) * 1.4F * limbSwingDistance; //this.leg2.rotateAngleX = Math this.arm1.rotateAngleX = MathHelper.cos(time * 0.6662F) * 1.4F * limbSwingDistance; this.arm2.rotateAngleX = MathHelper.cos(time * 0.6662F + (float)Math.PI) * 1.4F * limbSwingDistance; this.arm1.rotateAngleZ = 0.0F; this.arm2.rotateAngleZ = 0.0F; this.leg1.rotateAngleX = MathHelper.cos(time * 0.6662F) * 1.4F * limbSwingDistance; this.leg2.rotateAngleX = MathHelper.cos(time * 0.6662F + (float)Math.PI) * 1.4F * limbSwingDistance; this.leg1.rotateAngleY = 0.0F; this.leg2.rotateAngleY = 0.0F; } } Here is the Entity class: package com.julesmaster7.awesomemod.entity.passive; import com.julesmaster7.awesomemod.init.AwesomeItems; import net.minecraft.entity.EntityAgeable; import net.minecraft.entity.SharedMonsterAttributes; import net.minecraft.entity.ai.EntityAIFollowParent; import net.minecraft.entity.ai.EntityAILookIdle; import net.minecraft.entity.ai.EntityAIMate; import net.minecraft.entity.ai.EntityAIPanic; import net.minecraft.entity.ai.EntityAISwimming; import net.minecraft.entity.ai.EntityAITempt; import net.minecraft.entity.ai.EntityAIWander; import net.minecraft.entity.ai.EntityAIWatchClosest; import net.minecraft.entity.monster.EntityMob; import net.minecraft.entity.passive.EntityAnimal; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemStack; import net.minecraft.pathfinding.PathNavigateGround; import net.minecraft.world.World; public class EntityAwesomeMob extends EntityAnimal { public EntityAwesomeMob(World worldIn) { super(worldIn); this.setSize(0.7F, 2.0F); ((PathNavigateGround)this.getNavigator()).setAvoidsWater(true); this.tasks.addTask(0, new EntityAISwimming(this)); this.tasks.addTask(1, new EntityAIPanic(this, 1.5D)); this.tasks.addTask(2, new EntityAIMate(this, 1.0D)); this.tasks.addTask(3, new EntityAITempt(this, 1.5D, AwesomeItems.itemCandy, false)); this.tasks.addTask(3, new EntityAITempt(this, 1.5D, AwesomeItems.itemChewyCandy, false)); this.tasks.addTask(4, new EntityAIFollowParent(this, 1.5D)); this.tasks.addTask(5, new EntityAIWander(this, 1.0D)); this.tasks.addTask(6, new EntityAIWatchClosest(this, EntityPlayer.class, 6.0F)); this.tasks.addTask(7, new EntityAILookIdle(this)); } public boolean isAIEnabled() { return true; } protected void applyEntityAttributes() { super.applyEntityAttributes(); this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setBaseValue(10.0D); this.getEntityAttribute(SharedMonsterAttributes.movementSpeed).setBaseValue(0.20000000298023224D); } public boolean isBreedingItem(ItemStack itemstack) { return itemstack == null ? false :itemstack.getItem() == AwesomeItems.itemCandy || itemstack.getItem() == AwesomeItems.itemChewyCandy; } public EntityAwesomeMob createChild(EntityAgeable ageable) { return new EntityAwesomeMob(worldObj); } } Here is the Render Class that I made: package com.julesmaster7.awesomemod.entity.passive; import com.julesmaster7.awesomemod.Reference; import net.minecraft.client.Minecraft; import net.minecraft.client.model.ModelBase; import net.minecraft.client.model.ModelBiped; import net.minecraft.client.renderer.entity.RenderBiped; import net.minecraft.client.renderer.entity.RenderLiving; import net.minecraft.client.renderer.entity.RenderManager; import net.minecraft.entity.Entity; import net.minecraft.util.ResourceLocation; public class RenderBipedAwesome extends RenderLiving { private String mobTextures; public RenderBipedAwesome(ModelBase modelBipedIn, float shadowSizeIn, String mobTextures) { super(Minecraft.getMinecraft().getRenderManager(), modelBipedIn, shadowSizeIn); this.mobTextures = mobTextures; } protected ResourceLocation getEntityTexture(Entity entity) { return new ResourceLocation(Reference.MOD_ID, mobTextures); } /*protected ResourceLocation getEntityTexture(Entity entity) { return this.getEntityTexture((EntityAwesomeMob)entity); }*/ } And lastly here is my client proxy class: package com.julesmaster7.awesomemod.proxy; import com.julesmaster7.awesomemod.entity.passive.ModelAwesomeMob; import com.julesmaster7.awesomemod.entity.EntityAwesome; import com.julesmaster7.awesomemod.entity.passive.EntityAwesomeMob; import com.julesmaster7.awesomemod.entity.passive.RenderBipedAwesome; import com.julesmaster7.awesomemod.init.AwesomeBlocks; import com.julesmaster7.awesomemod.init.AwesomeItems; import com.julesmaster7.awesomemod.tileentity.TileEntityAwesomeJar; import com.julesmaster7.awesomemod.tileentity.render.RendererAwesomeJar; import net.minecraft.client.Minecraft; import net.minecraftforge.fml.client.registry.ClientRegistry; import net.minecraftforge.fml.client.registry.RenderingRegistry; public class ClientProxy extends CommonProxy { @Override public void init() { AwesomeBlocks.registerRenders(); AwesomeItems.registerRenders(); EntityAwesome.mainRegistry(); ClientRegistry.bindTileEntitySpecialRenderer(TileEntityAwesomeJar.class, new RendererAwesomeJar()); RenderingRegistry.registerEntityRenderingHandler(EntityAwesomeMob.class, new RenderBipedAwesome(new ModelAwesomeMob(), 0.4F, "textures/entity/awesome_mob.png")); } @Override public void preInit() { } } This is what it is supposed to look like: This is what it looks like in game: Thanks, JulesMaster7
  6. Thanks, Just one last thing - in the World class in 1.9.4 there is a method called notifyBlockUpdate() . What is the equivelent in 1.8.9?
  7. Hi there, I am wondering what the 1.8 equivelent of 1.9 and up's getUpdateTag() Thanks
  8. I don't really know how to null cast.
  9. No, I don't think that I am. Is this right GameRegistry.registerBlock(candyPlant, null); because it is telling me that: The method registerBlock(Block, String) is ambiguous for the type GameRegistry
  10. Hi there, I am making a minecraft mod for 1.8.9 and I'm getting these two wierd errors when I start up the game. Error 1 happens on start up: [17:46:23] [Client thread/WARN] [FML]: ============================================================= [17:46:23] [Client thread/WARN] [FML]: MOD HAS DIRECT REFERENCE System.exit() THIS IS NOT ALLOWED REROUTING TO FML! [17:46:23] [Client thread/WARN] [FML]: Offendor: com/sun/jna/Native.main([Ljava/lang/String;)V [17:46:23] [Client thread/WARN] [FML]: Use FMLCommonHandler.exitJava instead [17:46:23] [Client thread/WARN] [FML]: ============================================================= [17:46:24] [Client thread/INFO] [sTDOUT]: [net.minecraftforge.fml.client.SplashProgress:start:246]: ---- Minecraft Crash Report ---- Error 2 happens when i load up the world: [17:51:08] [pool-2-thread-1/WARN]: Couldn't look up profile properties for com.mojang.authlib.GameProfile@634605ca[id=4de10e95-2f24-3513-b65d-4a73193172f6,name=Player802,properties={},legacy=false] com.mojang.authlib.exceptions.AuthenticationException: The client has sent too many requests within a certain amount of time at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.makeRequest(YggdrasilAuthenticationService.java:65) ~[YggdrasilAuthenticationService.class:?] at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillGameProfile(YggdrasilMinecraftSessionService.java:175) [YggdrasilMinecraftSessionService.class:?] at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:59) [YggdrasilMinecraftSessionService$1.class:?] at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:56) [YggdrasilMinecraftSessionService$1.class:?] at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3524) [guava-17.0.jar:?] at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2317) [guava-17.0.jar:?] at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2280) [guava-17.0.jar:?] at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2195) [guava-17.0.jar:?] at com.google.common.cache.LocalCache.get(LocalCache.java:3934) [guava-17.0.jar:?] at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3938) [guava-17.0.jar:?] at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4821) [guava-17.0.jar:?] at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:4827) [guava-17.0.jar:?] at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillProfileProperties(YggdrasilMinecraftSessionService.java:165) [YggdrasilMinecraftSessionService.class:?] at net.minecraft.client.Minecraft.func_181037_M(Minecraft.java:2915) [Minecraft.class:?] at net.minecraft.client.resources.SkinManager$3.run(SkinManager.java:130) [skinManager$3.class:?] at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_74] at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_74] at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_74] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_74] at java.lang.Thread.run(Unknown Source) [?:1.8.0_74] Also one quick question about crops: How can I make my crop plant not show up in the give command - just like wheat does it? Thanks, JulesMaster7
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.