
MindHalfFull
Members-
Posts
3 -
Joined
-
Last visited
Everything posted by MindHalfFull
-
1.12.2 Issues with rendering a placed block
MindHalfFull replied to MindHalfFull's topic in Modder Support
Christ, ok. Welp, from the ground up it is, I guess. Thanks for your help Cadiboo -
1.12.2 Issues with rendering a placed block
MindHalfFull replied to MindHalfFull's topic in Modder Support
Here's by BlockBase code: public class BlockBase extends Block implements IHasModel { public BlockBase(String name, Material material) { super(material); setUnlocalizedName(name); setRegistryName(name); setCreativeTab(CreativeTabs.DECORATIONS); BlockInit.BLOCKS.add(this); ItemInit.ITEMS.add(new ItemBlock(this).setRegistryName(this.getRegistryName())); } @Override public void registerModels() { Main.proxy.registerItemRenderer(Item.getItemFromBlock(this), 0, "inventory"); } } my ClientProxy code: public class ClientProxy extends CommonProxy { public void registerItemRenderer(Item item, int meta, String id) { ModelLoader.setCustomModelResourceLocation(item, meta, new ModelResourceLocation(item.getRegistryName(), id)); } } and my latest log: [22:42:38] [main/INFO] [GradleStart]: Extra: [] [22:42:38] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/Joshua/.gradle/caches/minecraft/assets, --assetIndex, 1.12, --accessToken{REDACTED}, --version, 1.12.2, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker] [22:42:38] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [22:42:38] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [22:42:38] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker [22:42:38] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker [22:42:38] [main/INFO] [FML]: Forge Mod Loader version 14.23.5.2768 for Minecraft 1.12.2 loading [22:42:38] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_192, running on Windows 10:amd64:10.0, installed at C:\Program Files\Java\jre1.8.0_192 [22:42:38] [main/ERROR] [FML]: Apache Maven library folder was not in the format expected. Using default libraries directory. [22:42:38] [main/ERROR] [FML]: Full: C:\Users\Joshua\.gradle\caches\modules-2\files-2.1\org.apache.maven\maven-artifact\3.5.3\7dc72b6d6d8a6dced3d294ed54c2cc3515ade9f4\maven-artifact-3.5.3.jar [22:42:38] [main/ERROR] [FML]: Trimmed: c:/users/joshua/.gradle/caches/modules-2/files-2.1/org.apache.maven/maven-artifact/3.5.3/ [22:42:38] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [22:42:38] [main/INFO] [FML]: Detected deobfuscated environment, loading log configs for colored console logs. [22:42:39] [main/INFO] [FML]: Ignoring missing certificate for coremod FMLCorePlugin (net.minecraftforge.fml.relauncher.FMLCorePlugin), we are in deobf and it's a forge core plugin [22:42:39] [main/INFO] [FML]: Ignoring missing certificate for coremod FMLForgePlugin (net.minecraftforge.classloading.FMLForgePlugin), we are in deobf and it's a forge core plugin [22:42:39] [main/INFO] [FML]: Searching C:\Users\Joshua\Desktop\Minecraft Modding\DungeonMod\run\.\mods for mods [22:42:39] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker [22:42:39] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin [22:42:39] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin [22:42:39] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [22:42:39] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [22:42:39] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [22:42:39] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [22:42:39] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [22:42:39] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [22:42:41] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [22:42:41] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [22:42:41] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [22:42:41] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [22:42:41] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker [22:42:41] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker [22:42:41] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} [22:42:41] [main/INFO] [net.minecraft.client.Minecraft]: Setting user: Player252 [22:42:43] [main/WARN] [net.minecraft.client.settings.GameSettings]: Skipping bad option: lastServer: [22:42:43] [main/INFO] [net.minecraft.client.Minecraft]: LWJGL Version: 2.9.4 [22:42:44] [main/INFO] [FML]: -- System Details -- Details: Minecraft Version: 1.12.2 Operating System: Windows 10 (amd64) version 10.0 Java Version: 1.8.0_192, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 854827704 bytes (815 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: Loaded coremods (and transformers): GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.6.0 NVIDIA 417.22' Renderer: 'GeForce GTX 1060 6GB/PCIe/SSE2' [22:42:44] [main/INFO] [FML]: MinecraftForge v14.23.5.2768 Initialized [22:42:44] [main/INFO] [FML]: Starts to replace vanilla recipe ingredients with ore ingredients. [22:42:44] [main/INFO] [FML]: Replaced 1036 ore ingredients [22:42:44] [main/INFO] [FML]: Searching C:\Users\Joshua\Desktop\Minecraft Modding\DungeonMod\run\.\mods for mods [22:42:45] [main/INFO] [FML]: Forge Mod Loader has identified 5 mods to load [22:42:46] [main/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, dunm] at CLIENT [22:42:46] [main/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, dunm] at SERVER [22:42:46] [main/INFO] [net.minecraft.client.resources.SimpleReloadableResourceManager]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Dungeon Mod [22:42:46] [main/INFO] [FML]: Processing ObjectHolder annotations [22:42:46] [main/INFO] [FML]: Found 1168 ObjectHolder annotations [22:42:46] [main/INFO] [FML]: Identifying ItemStackHolder annotations [22:42:46] [main/INFO] [FML]: Found 0 ItemStackHolder annotations [22:42:46] [main/INFO] [FML]: Configured a dormant chunk cache size of 0 [22:42:46] [Forge Version Check/INFO] [forge.VersionCheck]: [forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json [22:42:46] [main/INFO] [FML]: Applying holder lookups [22:42:46] [main/INFO] [FML]: Holder lookups applied [22:42:46] [main/INFO] [FML]: Applying holder lookups [22:42:46] [main/INFO] [FML]: Holder lookups applied [22:42:46] [main/INFO] [FML]: Applying holder lookups [22:42:46] [main/INFO] [FML]: Holder lookups applied [22:42:46] [main/INFO] [FML]: Applying holder lookups [22:42:46] [main/INFO] [FML]: Holder lookups applied [22:42:46] [main/INFO] [FML]: Injecting itemstacks [22:42:46] [main/INFO] [FML]: Itemstack injection complete [22:42:46] [Thread-3/INFO] [FML]: Using sync timing. 200 frames of Display.update took 76136335 nanos [22:42:47] [Forge Version Check/INFO] [forge.VersionCheck]: [forge] Found status: UP_TO_DATE Target: null [22:42:49] [Sound Library Loader/INFO] [net.minecraft.client.audio.SoundManager]: Starting up SoundSystem... [22:42:50] [Thread-5/INFO] [net.minecraft.client.audio.SoundManager]: Initializing LWJGL OpenAL [22:42:50] [Thread-5/INFO] [net.minecraft.client.audio.SoundManager]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [22:42:50] [Thread-5/INFO] [net.minecraft.client.audio.SoundManager]: OpenAL initialized. [22:42:50] [Sound Library Loader/INFO] [net.minecraft.client.audio.SoundManager]: Sound engine started [22:42:54] [main/INFO] [FML]: Max texture size: 16384 [22:42:54] [main/INFO] [net.minecraft.client.renderer.texture.TextureMap]: Created: 512x512 textures-atlas [22:42:55] [main/ERROR] [FML]: Exception loading model for variant dunm:jail_door#facing=north,open=false for blockstate "dunm:jail_door[facing=north,open=false]" net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model dunm:jail_door#facing=north,open=false with loader VariantLoader.INSTANCE, skipping at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:161) ~[ModelLoaderRegistry.class:?] at net.minecraftforge.client.model.ModelLoader.registerVariant(ModelLoader.java:235) ~[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:223) ~[ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:150) ~[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_192] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_192] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_192] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_192] 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_192] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_192] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_192] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_192] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?] at GradleStart.main(GradleStart.java:25) [start/:?] Caused by: net.minecraft.client.renderer.block.model.ModelBlockDefinition$MissingVariantException at net.minecraft.client.renderer.block.model.ModelBlockDefinition.getVariant(ModelBlockDefinition.java:83) ~[ModelBlockDefinition.class:?] at net.minecraftforge.client.model.ModelLoader$VariantLoader.loadModel(ModelLoader.java:1175) ~[ModelLoader$VariantLoader.class:?] at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:157) ~[ModelLoaderRegistry.class:?] ... 21 more [22:42:55] [main/ERROR] [FML]: Exception loading model for variant dunm:jail_door#facing=south,open=true for blockstate "dunm:jail_door[facing=south,open=true]" net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model dunm:jail_door#facing=south,open=true with loader VariantLoader.INSTANCE, skipping at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:161) ~[ModelLoaderRegistry.class:?] at net.minecraftforge.client.model.ModelLoader.registerVariant(ModelLoader.java:235) ~[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:223) ~[ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:150) ~[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_192] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_192] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_192] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_192] 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_192] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_192] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_192] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_192] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?] at GradleStart.main(GradleStart.java:25) [start/:?] Caused by: net.minecraft.client.renderer.block.model.ModelBlockDefinition$MissingVariantException at net.minecraft.client.renderer.block.model.ModelBlockDefinition.getVariant(ModelBlockDefinition.java:83) ~[ModelBlockDefinition.class:?] at net.minecraftforge.client.model.ModelLoader$VariantLoader.loadModel(ModelLoader.java:1175) ~[ModelLoader$VariantLoader.class:?] at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:157) ~[ModelLoaderRegistry.class:?] ... 21 more [22:42:55] [main/ERROR] [FML]: Exception loading model for variant dunm:jail_door#facing=north,open=true for blockstate "dunm:jail_door[facing=north,open=true]" net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model dunm:jail_door#facing=north,open=true with loader VariantLoader.INSTANCE, skipping at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:161) ~[ModelLoaderRegistry.class:?] at net.minecraftforge.client.model.ModelLoader.registerVariant(ModelLoader.java:235) ~[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:223) ~[ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:150) ~[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_192] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_192] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_192] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_192] 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_192] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_192] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_192] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_192] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?] at GradleStart.main(GradleStart.java:25) [start/:?] Caused by: net.minecraft.client.renderer.block.model.ModelBlockDefinition$MissingVariantException at net.minecraft.client.renderer.block.model.ModelBlockDefinition.getVariant(ModelBlockDefinition.java:83) ~[ModelBlockDefinition.class:?] at net.minecraftforge.client.model.ModelLoader$VariantLoader.loadModel(ModelLoader.java:1175) ~[ModelLoader$VariantLoader.class:?] at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:157) ~[ModelLoaderRegistry.class:?] ... 21 more [22:42:55] [main/ERROR] [FML]: Exception loading model for variant dunm:jail_door#facing=west,open=true for blockstate "dunm:jail_door[facing=west,open=true]" net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model dunm:jail_door#facing=west,open=true with loader VariantLoader.INSTANCE, skipping at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:161) ~[ModelLoaderRegistry.class:?] at net.minecraftforge.client.model.ModelLoader.registerVariant(ModelLoader.java:235) ~[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:223) ~[ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:150) ~[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_192] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_192] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_192] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_192] 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_192] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_192] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_192] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_192] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?] at GradleStart.main(GradleStart.java:25) [start/:?] Caused by: net.minecraft.client.renderer.block.model.ModelBlockDefinition$MissingVariantException at net.minecraft.client.renderer.block.model.ModelBlockDefinition.getVariant(ModelBlockDefinition.java:83) ~[ModelBlockDefinition.class:?] at net.minecraftforge.client.model.ModelLoader$VariantLoader.loadModel(ModelLoader.java:1175) ~[ModelLoader$VariantLoader.class:?] at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:157) ~[ModelLoaderRegistry.class:?] ... 21 more [22:42:55] [main/FATAL] [FML]: Suppressed additional 3 model loading errors for domain dunm [22:42:55] [main/INFO] [FML]: Applying holder lookups [22:42:55] [main/INFO] [FML]: Holder lookups applied [22:42:55] [main/INFO] [FML]: Injecting itemstacks [22:42:55] [main/INFO] [FML]: Itemstack injection complete [22:42:56] [main/INFO] [FML]: Forge Mod Loader has successfully loaded 5 mods [22:42:56] [main/WARN] [net.minecraft.client.settings.GameSettings]: Skipping bad option: lastServer: [22:42:56] [main/INFO] [com.mojang.text2speech.NarratorWindows]: Narrator library for x64 successfully loaded [22:42:57] [Realms Notification Availability checker #1/INFO] [com.mojang.realmsclient.client.RealmsClient]: Could not authorize you against Realms server: Invalid session id [22:42:59] [Server thread/INFO] [net.minecraft.server.integrated.IntegratedServer]: Starting integrated minecraft server version 1.12.2 [22:42:59] [Server thread/INFO] [net.minecraft.server.integrated.IntegratedServer]: Generating keypair [22:43:00] [Server thread/INFO] [FML]: Injecting existing registry data into this server instance [22:43:00] [Server thread/INFO] [FML]: Applying holder lookups [22:43:00] [Server thread/INFO] [FML]: Holder lookups applied [22:43:00] [Server thread/INFO] [FML]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@3f238301) [22:43:00] [Server thread/INFO] [net.minecraft.advancements.AdvancementList]: Loaded 488 advancements [22:43:00] [Server thread/INFO] [FML]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@3f238301) [22:43:00] [Server thread/INFO] [FML]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@3f238301) [22:43:00] [Server thread/INFO] [net.minecraft.server.MinecraftServer]: Preparing start region for level 0 [22:43:01] [Server thread/INFO] [FML]: Unloading dimension -1 [22:43:01] [Server thread/INFO] [FML]: Unloading dimension 1 [22:43:01] [Server thread/INFO] [net.minecraft.server.integrated.IntegratedServer]: Changing view distance to 12, from 10 [22:43:03] [Netty Local Client IO #0/INFO] [FML]: Server protocol version 2 [22:43:03] [Netty Server IO #1/INFO] [FML]: Client protocol version 2 [22:43:03] [Netty Server IO #1/INFO] [FML]: Client attempting to join with 5 mods : [email protected],[email protected],[email protected],[email protected],[email protected] [22:43:03] [Netty Local Client IO #0/INFO] [FML]: [Netty Local Client IO #0] Client side modded connection established [22:43:03] [Server thread/INFO] [FML]: [Server thread] Server side modded connection established [22:43:03] [Server thread/INFO] [net.minecraft.server.management.PlayerList]: Player252[local:E:061c427d] logged in with entity id 69 at (-835.749423730148, 4.0, 305.4631655071164) [22:43:03] [Server thread/INFO] [net.minecraft.server.MinecraftServer]: Player252 joined the game [22:43:03] [Server thread/INFO] [net.minecraft.server.MinecraftServer]: Player252 has made the advancement [Stone Age] [22:43:03] [Server thread/INFO] [net.minecraft.server.integrated.IntegratedServer]: Saving and pausing game... [22:43:03] [Server thread/INFO] [net.minecraft.server.MinecraftServer]: Saving chunks for level 'New World'/overworld [22:43:03] [main/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] Player252 has made the advancement [Stone Age] [22:43:03] [main/INFO] [net.minecraft.advancements.AdvancementList]: Loaded 17 advancements [22:43:04] [pool-2-thread-1/WARN] [com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService]: Couldn't look up profile properties for com.mojang.authlib.GameProfile@333050ba[id=ca1bc45b-4820-318c-8fd3-5eba4f447561,name=Player252,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:79) ~[YggdrasilAuthenticationService.class:?] at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillGameProfile(YggdrasilMinecraftSessionService.java:180) [YggdrasilMinecraftSessionService.class:?] at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:60) [YggdrasilMinecraftSessionService$1.class:?] at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:57) [YggdrasilMinecraftSessionService$1.class:?] at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3716) [guava-21.0.jar:?] at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2424) [guava-21.0.jar:?] at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2298) [guava-21.0.jar:?] at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2211) [guava-21.0.jar:?] at com.google.common.cache.LocalCache.get(LocalCache.java:4154) [guava-21.0.jar:?] at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4158) [guava-21.0.jar:?] at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:5147) [guava-21.0.jar:?] at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:5153) [guava-21.0.jar:?] at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillProfileProperties(YggdrasilMinecraftSessionService.java:170) [YggdrasilMinecraftSessionService.class:?] at net.minecraft.client.Minecraft.getProfileProperties(Minecraft.java:3181) [Minecraft.class:?] at net.minecraft.client.resources.SkinManager$3.run(SkinManager.java:138) [SkinManager$3.class:?] at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_192] at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_192] at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_192] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_192] at java.lang.Thread.run(Unknown Source) [?:1.8.0_192] [22:43:20] [Server thread/INFO] [net.minecraft.server.integrated.IntegratedServer]: Saving and pausing game... [22:43:20] [Server thread/INFO] [net.minecraft.server.MinecraftServer]: Saving chunks for level 'New World'/overworld [22:43:20] [Server thread/INFO] [net.minecraft.server.MinecraftServer]: Stopping server [22:43:20] [Server thread/INFO] [net.minecraft.server.MinecraftServer]: Saving players [22:43:20] [Server thread/INFO] [net.minecraft.network.NetHandlerPlayServer]: Player252 lost connection: Disconnected [22:43:20] [Server thread/INFO] [net.minecraft.server.MinecraftServer]: Player252 left the game [22:43:20] [Server thread/INFO] [net.minecraft.network.NetHandlerPlayServer]: Stopping singleplayer server as player logged out [22:43:20] [Server thread/INFO] [net.minecraft.server.MinecraftServer]: Saving worlds [22:43:20] [Server thread/INFO] [net.minecraft.server.MinecraftServer]: Saving chunks for level 'New World'/overworld [22:43:20] [Server thread/INFO] [FML]: Unloading dimension 0 [22:43:21] [Server thread/INFO] [FML]: Applying holder lookups [22:43:21] [Server thread/INFO] [FML]: Holder lookups applied [22:43:21] [main/INFO] [net.minecraft.client.Minecraft]: Stopping! [22:43:21] [main/INFO] [net.minecraft.client.audio.SoundManager]: SoundSystem shutting down... [22:43:22] [main/WARN] [net.minecraft.client.audio.SoundManager]: Author: Paul Lamb, www.paulscode.com My IHasModel interface only has: public interface IHasModel { public void registerModels(); } I hope this helps -
I'm trying to add this block to my mod and when I hold it in my inventory it renders fine, but once it's placed it doesn't render at all. I've spent ages searching for my mistake and have tried everything I've seen suggested but nothing's working. I'm new to java so I apologise if this issue is a bit nooby. My code for the block: public class BlockJailDoor extends BlockBase implements IHasModel { public static final PropertyDirection FACING = BlockHorizontal.FACING; public static final PropertyBool OPEN = PropertyBool.create("open"); public static final AxisAlignedBB JAIL_DOOR_SOUTH = new AxisAlignedBB(0.125D, 0, 0, 0.875D, 1.375D, 0.625D); public static final AxisAlignedBB JAIL_DOOR_NORTH = new AxisAlignedBB(0.125D, 0, 0.375D, 0.875D, 1.375D, 1D); public static final AxisAlignedBB JAIL_DOOR_EAST = new AxisAlignedBB(0, 0, 0.125D, 0.625D, 1.375D, 0.875D); public static final AxisAlignedBB JAIL_DOOR_WEST = new AxisAlignedBB(0.375D, 0, 0.125D, 1D, 1.375D, 0.875D); public static final AxisAlignedBB JAIL_DOOR_NORTH_OPEN = new AxisAlignedBB(0.125D, 0, 0, 0.875D, 1.375D, 0.625D); public static final AxisAlignedBB JAIL_DOOR_SOUTH_OPEN = new AxisAlignedBB(0.125D, 0, 0.375D, 0.875D, 1.375D, 1D); public static final AxisAlignedBB JAIL_DOOR_EAST_OPEN = new AxisAlignedBB(0, 0, 0.125D, 0.625D, 1.375D, 0.875D); public static final AxisAlignedBB JAIL_DOOR_WEST_OPEN = new AxisAlignedBB(0.375D, 0, 0.125D, 1D, 1.375D, 0.875D); public BlockJailDoor(String name) { super(name, Material.IRON); this.setDefaultState(this.blockState.getBaseState().withProperty(FACING, EnumFacing.NORTH).withProperty(OPEN, false)); setSoundType(SoundType.METAL); setHardness(5.0F); setResistance(25.0F); setHarvestLevel("pickaxe", 0); setLightOpacity(1); } public Item getItemDropped(IBlockState state, java.util.Random rand, int fortune) { return Item.getItemFromBlock(BlockInit.JAIL_DOOR); } @Override public ItemStack getItem(World worldIn, BlockPos pos, IBlockState state) { return new ItemStack(BlockInit.JAIL_DOOR); } @Override public void onBlockAdded(World worldIn, BlockPos pos, IBlockState state) { if (!worldIn.isRemote) { IBlockState north = worldIn.getBlockState(pos.north()); IBlockState south = worldIn.getBlockState(pos.south()); IBlockState west = worldIn.getBlockState(pos.west()); IBlockState east = worldIn.getBlockState(pos.east()); EnumFacing face = (EnumFacing)state.getValue(FACING); if (face == EnumFacing.NORTH && north.isFullBlock() && !south.isFullBlock()) face = EnumFacing.SOUTH; else if (face == EnumFacing.SOUTH && south.isFullBlock() && !north.isFullBlock()) face = EnumFacing.NORTH; else if (face == EnumFacing.EAST && east.isFullBlock() && !west.isFullBlock()) face = EnumFacing.WEST; else if (face == EnumFacing.WEST && west.isFullBlock() && !east.isFullBlock()) face = EnumFacing.EAST; worldIn.setBlockState(pos, state.withProperty(FACING, face), 2); } } public static void setState(boolean active, World worldIn, BlockPos pos) { IBlockState state = worldIn.getBlockState(pos); if(active) worldIn.setBlockState(pos, BlockInit.JAIL_DOOR.getDefaultState().withProperty(FACING, state.getValue(FACING)).withProperty(OPEN, true), 3); else worldIn.setBlockState(pos, BlockInit.JAIL_DOOR.getDefaultState().withProperty(FACING, state.getValue(FACING)).withProperty(OPEN, false), 3); } @Override public IBlockState getStateForPlacement(World world, BlockPos pos, EnumFacing facing, float hitX, float hitY, float hitZ, int meta, EntityLivingBase placer, EnumHand hand) { return this.getDefaultState().withProperty(FACING, placer.getHorizontalFacing().getOpposite()); } @Override public void onBlockPlacedBy(World worldIn, BlockPos pos, IBlockState state, EntityLivingBase placer, ItemStack stack) { worldIn.setBlockState(pos, this.getDefaultState().withProperty(FACING, placer.getHorizontalFacing().getOpposite()), 2); } @Override public EnumBlockRenderType getRenderType(IBlockState state) { return EnumBlockRenderType.MODEL; } @Override public IBlockState withRotation(IBlockState state, Rotation rot) { return state.withProperty(FACING, rot.rotate((EnumFacing)state.getValue(FACING))); } @Override public IBlockState withMirror(IBlockState state, Mirror mirrorIn) { return state.withRotation(mirrorIn.toRotation((EnumFacing)state.getValue(FACING))); } @Override protected BlockStateContainer createBlockState() { return new BlockStateContainer(this, new IProperty[] {OPEN,FACING}); } @Override public IBlockState getStateFromMeta(int meta) { EnumFacing facing = EnumFacing.getFront(meta); if(facing.getAxis() == EnumFacing.Axis.Y) facing = EnumFacing.NORTH; return this.getDefaultState().withProperty(FACING, facing); } @Override public int getMetaFromState(IBlockState state) { return ((EnumFacing)state.getValue(FACING)).getIndex(); } @Override public boolean isOpaqueCube(IBlockState state) { return false; } @Override public boolean isFullCube(IBlockState state) { return false; } @Override public AxisAlignedBB getBoundingBox(IBlockState state, IBlockAccess source, BlockPos pos) { if(state.getValue(FACING) == EnumFacing.SOUTH) {return JAIL_DOOR_SOUTH;} if(state.getValue(FACING) == EnumFacing.NORTH) {return JAIL_DOOR_NORTH;} if(state.getValue(FACING) == EnumFacing.EAST) {return JAIL_DOOR_EAST;} if(state.getValue(FACING) == EnumFacing.WEST) {return JAIL_DOOR_WEST;} else{return JAIL_DOOR_SOUTH;} } } My block's blockstate json: { "variants": { "open=false,facing=north": { "model": "dunm:jail_door", "y": 180 }, "open=false,facing=east": { "model": "dunm:jail_door", "y": 270 }, "open=false,facing=south": { "model": "dunm:jail_door", "y": 0 }, "open=false,facing=west": { "model": "dunm:jail_door", "y": 90 }, "open=true,facing=north": { "model": "dunm:jail_door", "y": 180 }, "open=true,facing=east": { "model": "dunm:jail_door", "y": 270 }, "open=true,facing=south": { "model": "dunm:jail_door", "y": 0 }, "open=true,facing=west": { "model": "dunm:jail_door", "y": 90 } } } My block's model json: { "parent": "block/block", "textures": { "particle": "blocks/iron_bars", "0": "blocks/iron_bars" }, "display": { "head": { "rotation": [ 0, 180, 0 ], "translation": [ 0, 0, 0 ], "scale": [ 1, 1, 1 ] }, "firstperson_righthand": { "rotation": [ 0, 315, 0 ], "translation": [ 0, 2.5, 0 ], "scale": [ 0.4, 0.4, 0.4 ] }, "thirdperson_lefthand": { "rotation": [ 75, 45, 0 ], "translation": [ 0, 2.5, 0 ], "scale": [ 0.375, 0.375, 0.375 ] }, "firstperson_lefthand": { "rotation": [ 0, 0, 45 ], "translation": [ 0, 2.5, 0 ], "scale": [ 0.4, 0.4, 0.4 ] }, "gui": { "rotation": [ 30, 45, 0 ], "translation": [ 0, 0, 0 ], "scale": [ 0.625, 0.625, 0.625 ] }, "ground": { "rotation": [ 0, 0, 0 ], "translation": [ 0, 3, 0 ], "scale": [ 0.25, 0.25, 0.25 ] }, "fixed": { "rotation": [ 0, 180, 0 ], "translation": [ 0, 0, 0 ], "scale": [ 1, 1, 1 ] }, "thirdperson_righthand": { "rotation": [ 75, 315, 0 ], "translation": [ 0, 2.5, 0 ], "scale": [ 0.375, 0.375, 0.375 ] } }, "elements": [ { "name": "iron_bar_bottom", "from": [ -16, 0, 7 ], "to": [ 0, 0, 9 ], "faces": { "north": { "texture": "#-1", "uv": [ 0, 0, 16, 0 ] }, "south": { "texture": "#-1", "uv": [ 0, 0, 16, 0 ] }, "west": { "texture": "#-1", "uv": [ 0, 0, 2, 0 ] }, "up": { "texture": "#0", "uv": [ 7, 0, 9, 16 ], "rotation": 90 }, "down": { "texture": "#0", "uv": [ 7, 0, 9, 16 ], "rotation": 90 } } }, { "name": "iron_bar_middle", "from": [ -16, 16, 7 ], "to": [ 0, 16, 9 ], "faces": { "north": { "texture": "#-1", "uv": [ 0, 0, 16, 0 ] }, "south": { "texture": "#-1", "uv": [ 0, 0, 16, 0 ] }, "west": { "texture": "#-1", "uv": [ 0, 0, 2, 0 ] }, "up": { "texture": "#0", "uv": [ 7, 0, 9, 16 ], "rotation": 90 }, "down": { "texture": "#0", "uv": [ 7, 0, 9, 16 ], "rotation": 90 } } }, { "name": "iron_bar_top", "from": [ -16, 32, 7 ], "to": [ 0, 32, 9 ], "faces": { "north": { "texture": "#-1", "uv": [ 0, 0, 16, 0 ] }, "south": { "texture": "#-1", "uv": [ 0, 0, 16, 0 ] }, "west": { "texture": "#-1", "uv": [ 0, 0, 2, 0 ] }, "up": { "texture": "#0", "uv": [ 7, 0, 9, 16 ], "rotation": 90 }, "down": { "texture": "#0", "uv": [ 7, 0, 9, 16 ], "rotation": 90 } } }, { "name": "iron_bar1", "from": [ -16, 0, 8 ], "to": [ 0, 16, 8 ], "faces": { "north": { "texture": "#0", "uv": [ 0, 0, 16, 16 ] }, "south": { "texture": "#0", "uv": [ 0, 0, 16, 16 ] }, "west": { "texture": "#-1", "uv": [ 0, 0, -3, 13 ] } } }, { "name": "iron_bar2", "from": [ -16, 16, 8 ], "to": [ 0, 32, 8 ], "faces": { "north": { "texture": "#0", "uv": [ 0, 0, 16, 16 ] }, "south": { "texture": "#0", "uv": [ 0, 0, 16, 16 ] }, "west": { "texture": "#-1", "uv": [ 0, 0, -12, 16 ] } } }, { "name": "iron_bar_side1", "from": [ 0, 0, 7 ], "to": [ 0, 16, 9 ], "faces": { "north": { "texture": "#-1", "uv": [ 0, 0, 0, 16 ] }, "east": { "texture": "#0", "uv": [ 7, 0, 9, 16 ] }, "west": { "texture": "#0", "uv": [ 7, 0, 9, 16 ] } } }, { "name": "iron_bar_side2", "from": [ 0, 16, 7 ], "to": [ 0, 32, 9 ], "faces": { "north": { "texture": "#-1", "uv": [ 0, 0, 0, 16 ] }, "east": { "texture": "#0", "uv": [ 7, 0, 9, 16 ] }, "west": { "texture": "#0", "uv": [ 7, 0, 9, 16 ] } } }, { "name": "door_bottom", "from": [ 0, 0, 9 ], "to": [ 16, 0, 11 ], "faces": { "north": { "texture": "#-1", "uv": [ 0, 0, 16, 0 ] }, "south": { "texture": "#-1", "uv": [ 0, 0, 16, 0 ] }, "up": { "texture": "#0", "uv": [ 7, 0, 9, 16 ], "rotation": 90 }, "down": { "texture": "#0", "uv": [ 7, 0, 9, 16 ], "rotation": 90 } } }, { "name": "door_top", "from": [ 0, 32, 9 ], "to": [ 16, 32, 11 ], "faces": { "north": { "texture": "#-1", "uv": [ 0, 0, 16, 0 ] }, "south": { "texture": "#-1", "uv": [ 0, 0, 16, 0 ] }, "up": { "texture": "#0", "uv": [ 7, 0, 9, 16 ], "rotation": 90 }, "down": { "texture": "#0", "uv": [ 7, 0, 9, 16 ], "rotation": 90 } } }, { "name": "door_left1", "from": [ 0, 0, 9 ], "to": [ 0, 16, 11 ], "faces": { "east": { "texture": "#0", "uv": [ 7, 0, 9, 16 ] }, "south": { "texture": "#-1", "uv": [ 0, 0, 0, 16 ] }, "west": { "texture": "#0", "uv": [ 7, 0, 9, 16 ] } } }, { "name": "door_left2", "from": [ 0, 16, 9 ], "to": [ 0, 32, 11 ], "faces": { "east": { "texture": "#0", "uv": [ 7, 0, 9, 16 ] }, "south": { "texture": "#-1", "uv": [ 0, 0, 0, 16 ] }, "west": { "texture": "#0", "uv": [ 7, 0, 9, 16 ] } } }, { "name": "door_right1", "from": [ 16, 0, 9 ], "to": [ 16, 16, 11 ], "faces": { "north": { "texture": "#-1", "uv": [ 0, 0, 0, 16 ] }, "east": { "texture": "#0", "uv": [ 7, 0, 9, 16 ] }, "south": { "texture": "#-1", "uv": [ 0, 0, 0, 16 ] }, "west": { "texture": "#0", "uv": [ 7, 0, 9, 16 ] } } }, { "name": "door_right2", "from": [ 16, 16, 9 ], "to": [ 16, 32, 11 ], "faces": { "north": { "texture": "#-1", "uv": [ 0, 0, 0, 16 ] }, "east": { "texture": "#0", "uv": [ 7, 0, 9, 16 ] }, "south": { "texture": "#-1", "uv": [ 0, 0, 0, 16 ] }, "west": { "texture": "#0", "uv": [ 7, 0, 9, 16 ] } } }, { "name": "door1", "from": [ 0, 0, 10 ], "to": [ 16, 16, 10 ], "faces": { "north": { "texture": "#0", "uv": [ 0, 0, 16, 16 ] }, "south": { "texture": "#0", "uv": [ 0, 0, 16, 16 ] } } }, { "name": "door2", "from": [ 0, 16, 10 ], "to": [ 16, 32, 10 ], "faces": { "north": { "texture": "#0", "uv": [ 0, 0, 16, 16 ] }, "south": { "texture": "#0", "uv": [ 0, 0, 16, 16 ] } } }, { "name": "lock1", "from": [ 12, 16, 9 ], "to": [ 16, 18, 11 ], "faces": { "north": { "texture": "#0", "uv": [ 2, 2, 6, 4 ] }, "south": { "texture": "#0", "uv": [ 6, 2, 2, 4 ], "cullface": "south" }, "west": { "texture": "#0", "uv": [ 12, 2, 14, 4 ] }, "up": { "texture": "#0", "uv": [ 7, 6, 9, 10 ], "rotation": 90 } } }, { "name": "lock2", "from": [ 12, 14, 9 ], "to": [ 16, 16, 11 ], "faces": { "north": { "texture": "#0", "uv": [ 13, 14, 9, 12 ] }, "south": { "texture": "#0", "uv": [ 9, 14, 13, 12 ], "cullface": "south" }, "west": { "texture": "#0", "uv": [ 12, 4, 14, 6 ] }, "down": { "texture": "#0", "uv": [ 7, 6, 9, 10 ], "rotation": 90 } } } ] }