
ThatCreepyUncle
Members-
Posts
27 -
Joined
-
Last visited
Everything posted by ThatCreepyUncle
-
THANK YOU SO MUCH!!!! IT FINALLY WORKED!
-
1) I moved it to the LoadMeta Items to the preInit() method 2) I added super.preInit() to the init method in my client proxy! 3) I dont get the because, am I wrong but don't I need those to registry the models of my Items? So if I didn't have them would it not register the Item model? Do I remove them or change them, I am confused.
-
Sorry, didn't see the second page, so I thought they were not posting
-
Oh sorry: ModItems: package com.thatcreepyuncle.logicalTech.core; import java.util.ArrayList; import com.thatcreepyuncle.logicalTech.item.Circuit; import com.thatcreepyuncle.logicalTech.item.RemoteEnderporter; import com.thatcreepyuncle.logicalTech.item.RemoteSwitch; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.block.model.ModelResourceLocation; import net.minecraft.item.Item; import net.minecraftforge.fml.common.registry.GameRegistry; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; public class ModItems { public static ArrayList<Item> items; public static Item circuit; public static Item remote_switch; public static Item remote_enderporter; public static void preInit() { items = new ArrayList<Item>(); circuit = new Circuit(); GameRegistry.register(circuit); remote_switch = new RemoteSwitch(); GameRegistry.register(remote_switch); remote_enderporter = new RemoteEnderporter(); items.add(remote_enderporter); for (Item item : items) { GameRegistry.register(item); } } @SideOnly(Side.CLIENT) public static void init() { registerItemRenderer(circuit, 0, "toolCircuit"); registerItemRenderer(circuit, 1, "redstoneCircuit"); registerItemRenderer(circuit, 2, "motherboardCircuit"); registerItemRenderer(remote_switch, 0, "remote_switch"); registerItemRenderer(remote_switch, 1, "remote_switch_activated"); for (Item item : items) { registerItemRenderer(item); } } public static void registerItemRenderer(Item item) { Minecraft.getMinecraft().getRenderItem().getItemModelMesher() .register(item, 0, new ModelResourceLocation(item.getRegistryName(), "inventory")); } public static void registerItemRenderer(Item item, int meta, String fileName) { Minecraft.getMinecraft().getRenderItem().getItemModelMesher() .register(item, meta, new ModelResourceLocation((fileName), "inventory")); } }
-
Sorry I didn't post sooner but here is the new code. Client Proxy package com.thatcreepyuncle.logicalTech.core; import net.minecraft.client.renderer.block.model.ModelBakery; import net.minecraft.client.renderer.block.model.ModelResourceLocation; import net.minecraft.util.ResourceLocation; import net.minecraftforge.client.model.ModelLoader; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; public class ClientProxy extends CommonProxy{ @Override public void init() { ModItems.init(); loadMetaItems(); } @Override public void preInit() { ModBlocks.preInit(); ModItems.preInit(); } @Override public void loadMetaItems() { System.out.println("Loading Meta Items"); ModelLoader.setCustomModelResourceLocation(ModItems.circuit, 0, new ModelResourceLocation("ltech:toolCircuit")); ModelLoader.setCustomModelResourceLocation(ModItems.circuit, 1, new ModelResourceLocation("ltech:redstoneCircuit")); ModelLoader.setCustomModelResourceLocation(ModItems.circuit, 2, new ModelResourceLocation("ltech:motherboardCircuit")); ModelLoader.setCustomModelResourceLocation(ModItems.remote_switch, 0, new ModelResourceLocation("ltech:remote_switch")); ModelLoader.setCustomModelResourceLocation(ModItems.remote_switch, 1, new ModelResourceLocation("ltech:remote_switch_activated")); } } Common Proxy: package com.thatcreepyuncle.logicalTech.core; import com.thatcreepyuncle.logicalTech.LogicalTech; import com.thatcreepyuncle.logicalTech.tileEntity.TileEntityCircuitWorkbench; import com.thatcreepyuncle.logicalTech.tileEntity.TileEntityComputer; import net.minecraft.client.renderer.block.model.ModelBakery; import net.minecraft.util.ResourceLocation; import net.minecraftforge.fml.common.network.NetworkRegistry; import net.minecraftforge.fml.common.registry.GameRegistry; public class CommonProxy { public void preInit() { ModBlocks.preInit(); ModItems.preInit(); } public void init() { GameRegistry.registerTileEntity(TileEntityComputer.class, "computer"); GameRegistry.registerTileEntity(TileEntityCircuitWorkbench.class, "Circuit_Workbench"); NetworkRegistry.INSTANCE.registerGuiHandler(LogicalTech.instance, new GuiHandler()); } public static void postInit() { } public void loadMetaItems() { } } Mod Class package com.thatcreepyuncle.logicalTech; import com.thatcreepyuncle.logicalTech.core.CommonProxy; import com.thatcreepyuncle.logicalTech.network.CraftingMessage; import com.thatcreepyuncle.logicalTech.util.ModCreativeTabs; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.Mod.EventHandler; import net.minecraftforge.fml.common.Mod.Instance; import net.minecraftforge.fml.common.SidedProxy; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; import net.minecraftforge.fml.common.network.NetworkRegistry; import net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper; import net.minecraftforge.fml.relauncher.Side; @Mod(modid = LogicalTech.MODID, version = LogicalTech.VERSION) public class LogicalTech { public static final String MODID = "ltech"; public static final String VERSION = "1.0"; @Instance(MODID) public static LogicalTech instance; @SidedProxy(clientSide="com.thatcreepyuncle.logicalTech.core.ClientProxy", serverSide="com.thatcreepyuncle.logicalTech.core.ServerProxy") public static CommonProxy proxy; @EventHandler public void preInit(FMLPreInitializationEvent e) { ModCreativeTabs tabs = new ModCreativeTabs(); proxy.preInit(); } @EventHandler public void init(FMLInitializationEvent e) { proxy.init(); } @EventHandler public void postInit(FMLPostInitializationEvent e) { proxy.postInit(); } } Item Class: package com.thatcreepyuncle.logicalTech.item; import java.util.List; import com.thatcreepyuncle.logicalTech.util.ModCreativeTabs; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; public class Circuit extends Item{ public Circuit() { super(); this.setHasSubtypes(true); this.setRegistryName("circuit"); this.setCreativeTab(ModCreativeTabs.GENERAL); this.setUnlocalizedName("circuit"); } @Override public String getUnlocalizedName(ItemStack stack) { String name = EnumCircuit.values()[stack.getItemDamage()].getUnlocalizedName(); return "circuit_" + name; } @Override public void getSubItems(Item itemIn, CreativeTabs tab, List subItems) { for (int i = 0; i < 3; i++) { subItems.add(new ItemStack(itemIn, 1, i)); } } } Log: 2016-07-12 16:52:16,122 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream 2016-07-12 16:52:16,127 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream [16:52:16] [main/INFO] [GradleStart]: Extra: [] [16:52:16] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/Bob/.gradle/caches/minecraft/assets, --assetIndex, 1.9, --accessToken{REDACTED}, --version, 1.9.4, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker] [16:52:16] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [16:52:16] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [16:52:16] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker [16:52:16] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker [16:52:16] [main/INFO] [FML]: Forge Mod Loader version 12.17.0.1976 for Minecraft 1.9.4 loading [16:52:16] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_65, running on Windows 10:amd64:10.0, installed at C:\Program Files\Java\jdk1.8.0_66\jre [16:52:16] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [16:52:16] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker [16:52:16] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin [16:52:16] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin [16:52:16] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [16:52:16] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [16:52:16] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [16:52:16] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [16:52:16] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [16:52:16] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [16:52:16] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work! [16:52:19] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [16:52:19] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [16:52:19] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [16:52:22] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [16:52:22] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker [16:52:22] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker [16:52:22] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} 2016-07-12 16:52:23,944 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream 2016-07-12 16:52:24,008 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream 2016-07-12 16:52:24,013 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream [16:52:24] [Client thread/INFO]: Setting user: Player391 [16:52:32] [Client thread/INFO]: LWJGL Version: 2.9.4 [16:52:34] [Client thread/INFO] [sTDOUT]: [net.minecraftforge.fml.client.SplashProgress:start:202]: ---- Minecraft Crash Report ---- // I'm sorry, Dave. Time: 7/12/16 4:52 PM Description: Loading screen debug info This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details: Minecraft Version: 1.9.4 Operating System: Windows 10 (amd64) version 10.0 Java Version: 1.8.0_65, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 865528912 bytes (825 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 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: 'ATI Technologies Inc.' Version: '4.5.13416 Compatibility Profile Context 15.300.1025.1001' Renderer: 'AMD Radeon R7 200 Series' [16:52:34] [Client thread/INFO] [FML]: MinecraftForge v12.17.0.1976 Initialized [16:52:34] [Client thread/INFO] [FML]: Replaced 232 ore recipes [16:52:35] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer [16:52:35] [Client thread/INFO] [FML]: Searching C:\Users\Bob\Desktop\LogicalTech 1.9.4\run\mods for mods [16:52:35] [Client thread/INFO] [ltech]: Mod ltech is missing the required element 'name'. Substituting ltech [16:52:37] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load [16:52:38] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, ltech] at CLIENT [16:52:38] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, ltech] at SERVER [16:52:39] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:ltech [16:52:39] [Client thread/INFO] [FML]: Processing ObjectHolder annotations [16:52:39] [Client thread/INFO] [FML]: Found 418 ObjectHolder annotations [16:52:39] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations [16:52:39] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations [16:52:39] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0 [16:52:39] [Forge Version Check/INFO] [ForgeVersionCheck]: [Forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json [16:52:39] [Client thread/INFO] [sTDOUT]: [com.thatcreepyuncle.logicalTech.core.ClientProxy:loadMetaItems:26]: Loading Meta Items [16:52:39] [Client thread/INFO] [FML]: Applying holder lookups [16:52:40] [Client thread/INFO] [FML]: Holder lookups applied [16:52:40] [Client thread/INFO] [FML]: Injecting itemstacks [16:52:40] [Client thread/INFO] [FML]: Itemstack injection complete [16:52:40] [Forge Version Check/INFO] [ForgeVersionCheck]: [Forge] Found status: UP_TO_DATE Target: null [16:52:46] [sound Library Loader/INFO]: Starting up SoundSystem... [16:52:46] [Thread-8/INFO]: Initializing LWJGL OpenAL [16:52:46] [Thread-8/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [16:52:47] [Thread-8/INFO]: OpenAL initialized. [16:52:47] [sound Library Loader/INFO]: Sound engine started [16:52:56] [Client thread/INFO] [FML]: Max texture size: 16384 [16:52:56] [Client thread/INFO]: Created: 16x16 textures-atlas [16:52:59] [Client thread/INFO] [FML]: Injecting itemstacks [16:52:59] [Client thread/INFO] [FML]: Itemstack injection complete [16:52:59] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods [16:52:59] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:ltech [16:53:04] [Client thread/INFO]: SoundSystem shutting down... [16:53:05] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com [16:53:05] [sound Library Loader/INFO]: Starting up SoundSystem... [16:53:05] [Thread-10/INFO]: Initializing LWJGL OpenAL [16:53:05] [Thread-10/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [16:53:05] [Thread-10/INFO]: OpenAL initialized. [16:53:05] [sound Library Loader/INFO]: Sound engine started [16:53:12] [Client thread/INFO] [FML]: Max texture size: 16384 [16:53:13] [Client thread/INFO]: Created: 1024x512 textures-atlas [16:53:16] [Realms Notification Availability checker #1/INFO]: Could not authorize you against Realms server: Invalid session id [16:53:21] [server thread/INFO]: Starting integrated minecraft server version 1.9.4 [16:53:21] [server thread/INFO]: Generating keypair [16:53:21] [server thread/INFO] [FML]: Injecting existing block and item data into this server instance [16:53:21] [server thread/INFO] [FML]: Applying holder lookups [16:53:21] [server thread/INFO] [FML]: Holder lookups applied [16:53:22] [server thread/INFO] [FML]: Loading dimension 0 (World) (net.minecraft.server.integrated.IntegratedServer@3a4379a2) [16:53:22] [server thread/INFO] [FML]: Loading dimension 1 (World) (net.minecraft.server.integrated.IntegratedServer@3a4379a2) [16:53:22] [server thread/INFO] [FML]: Loading dimension -1 (World) (net.minecraft.server.integrated.IntegratedServer@3a4379a2) [16:53:22] [server thread/INFO]: Preparing start region for level 0 [16:53:23] [server thread/INFO]: Preparing spawn area: 48% [16:53:24] [server thread/INFO]: Changing view distance to 2, from 10 [16:53:27] [Netty Local Client IO #0/INFO] [FML]: Server protocol version 2 [16:53:27] [Netty Server IO #1/INFO] [FML]: Client protocol version 2 [16:53:27] [Netty Server IO #1/INFO] [FML]: Client attempting to join with 4 mods : [email protected],[email protected],[email protected],[email protected] [16:53:27] [Netty Local Client IO #0/INFO] [FML]: [Netty Local Client IO #0] Client side modded connection established [16:53:27] [server thread/INFO] [FML]: [server thread] Server side modded connection established [16:53:27] [server thread/INFO]: Player391[local:E:3fc8612c] logged in with entity id 447 at (269.4931499573029, 68.0, 219.54516940443818) [16:53:27] [server thread/INFO]: Player391 joined the game [16:53:28] [server thread/INFO]: Saving and pausing game... [16:53:28] [server thread/INFO]: Saving chunks for level 'World'/Overworld [16:53:28] [pool-2-thread-1/WARN]: Couldn't look up profile properties for com.mojang.authlib.GameProfile@68af052c[id=e879cd92-2843-3668-b364-5d9cff074bc0,name=Player391,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.getProfileProperties(Minecraft.java:3043) [Minecraft.class:?] at net.minecraft.client.resources.SkinManager$3.run(SkinManager.java:131) [skinManager$3.class:?] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_65] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_65] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_65] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_65] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_65] [16:53:28] [server thread/INFO]: Saving chunks for level 'World'/Nether [16:53:28] [server thread/INFO]: Saving chunks for level 'World'/The End [16:53:29] [server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 2175ms behind, skipping 43 tick(s) [16:53:32] [server thread/INFO]: Player391 has just earned the achievement [Taking Inventory] [16:53:32] [Client thread/INFO]: [CHAT] Player391 has just earned the achievement [Taking Inventory]
-
I removed It ,but it still Doesn't Work. The textures are black and purple still. Log(If it helps): 2016-07-10 12:28:37,998 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream 2016-07-10 12:28:38,000 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream [12:28:38] [main/INFO] [GradleStart]: Extra: [] [12:28:38] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/Bob/.gradle/caches/minecraft/assets, --assetIndex, 1.9, --accessToken{REDACTED}, --version, 1.9.4, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker] [12:28:38] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [12:28:38] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [12:28:38] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker [12:28:38] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker [12:28:38] [main/INFO] [FML]: Forge Mod Loader version 12.17.0.1976 for Minecraft 1.9.4 loading [12:28:38] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_65, running on Windows 10:amd64:10.0, installed at C:\Program Files\Java\jdk1.8.0_66\jre [12:28:38] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [12:28:38] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker [12:28:38] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin [12:28:38] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin [12:28:38] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [12:28:38] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [12:28:38] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [12:28:38] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [12:28:38] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [12:28:38] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [12:28:38] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work! [12:28:41] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [12:28:41] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [12:28:41] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [12:28:43] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [12:28:43] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker [12:28:43] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker [12:28:43] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} 2016-07-10 12:28:44,026 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream 2016-07-10 12:28:44,094 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream 2016-07-10 12:28:44,102 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream [12:28:44] [Client thread/INFO]: Setting user: Player512 [12:28:50] [Client thread/INFO]: LWJGL Version: 2.9.4 [12:28:53] [Client thread/INFO] [sTDOUT]: [net.minecraftforge.fml.client.SplashProgress:start:202]: ---- Minecraft Crash Report ---- // Hi. I'm Minecraft, and I'm a crashaholic. Time: 7/10/16 12:28 PM Description: Loading screen debug info This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details: Minecraft Version: 1.9.4 Operating System: Windows 10 (amd64) version 10.0 Java Version: 1.8.0_65, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 772421544 bytes (736 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 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: 'ATI Technologies Inc.' Version: '4.5.13416 Compatibility Profile Context 15.300.1025.1001' Renderer: 'AMD Radeon R7 200 Series' [12:28:53] [Client thread/INFO] [FML]: MinecraftForge v12.17.0.1976 Initialized [12:28:53] [Client thread/INFO] [FML]: Replaced 232 ore recipes [12:28:54] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer [12:28:54] [Client thread/INFO] [FML]: Searching C:\Users\Bob\Desktop\LogicalTech 1.9.4\run\mods for mods [12:28:54] [Client thread/INFO] [ltech]: Mod ltech is missing the required element 'name'. Substituting ltech [12:28:55] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load [12:28:55] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, ltech] at CLIENT [12:28:55] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, ltech] at SERVER [12:28:57] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:ltech [12:28:57] [Client thread/INFO] [FML]: Processing ObjectHolder annotations [12:28:57] [Client thread/INFO] [FML]: Found 418 ObjectHolder annotations [12:28:57] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations [12:28:57] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations [12:28:57] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0 [12:28:57] [Forge Version Check/INFO] [ForgeVersionCheck]: [Forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json [12:28:57] [Forge Version Check/INFO] [ForgeVersionCheck]: [Forge] Found status: UP_TO_DATE Target: null [12:28:57] [Client thread/INFO] [FML]: Applying holder lookups [12:28:57] [Client thread/INFO] [FML]: Holder lookups applied [12:28:57] [Client thread/INFO] [FML]: Injecting itemstacks [12:28:57] [Client thread/INFO] [FML]: Itemstack injection complete [12:29:03] [sound Library Loader/INFO]: Starting up SoundSystem... [12:29:03] [Thread-8/INFO]: Initializing LWJGL OpenAL [12:29:03] [Thread-8/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [12:29:03] [Thread-8/INFO]: OpenAL initialized. [12:29:03] [sound Library Loader/INFO]: Sound engine started [12:29:10] [Client thread/INFO] [FML]: Max texture size: 16384 [12:29:10] [Client thread/INFO]: Created: 16x16 textures-atlas [12:29:13] [Client thread/INFO] [FML]: Injecting itemstacks [12:29:13] [Client thread/INFO] [FML]: Itemstack injection complete [12:29:13] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods [12:29:13] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:ltech [12:29:18] [Client thread/INFO]: SoundSystem shutting down... [12:29:19] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com [12:29:19] [sound Library Loader/INFO]: Starting up SoundSystem... [12:29:19] [Thread-10/INFO]: Initializing LWJGL OpenAL [12:29:19] [Thread-10/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [12:29:19] [Thread-10/INFO]: OpenAL initialized. [12:29:19] [sound Library Loader/INFO]: Sound engine started [12:29:25] [Client thread/INFO] [FML]: Max texture size: 16384 [12:29:25] [Client thread/INFO]: Created: 1024x512 textures-atlas [12:29:27] [Realms Notification Availability checker #1/INFO]: Could not authorize you against Realms server: Invalid session id [12:30:16] [server thread/INFO]: Starting integrated minecraft server version 1.9.4 [12:30:16] [server thread/INFO]: Generating keypair [12:30:16] [server thread/INFO] [FML]: Injecting existing block and item data into this server instance [12:30:16] [server thread/INFO] [FML]: Applying holder lookups [12:30:16] [server thread/INFO] [FML]: Holder lookups applied [12:30:16] [server thread/INFO] [FML]: Loading dimension 0 (World) (net.minecraft.server.integrated.IntegratedServer@7023b082) [12:30:17] [server thread/INFO] [FML]: Loading dimension 1 (World) (net.minecraft.server.integrated.IntegratedServer@7023b082) [12:30:17] [server thread/INFO] [FML]: Loading dimension -1 (World) (net.minecraft.server.integrated.IntegratedServer@7023b082) [12:30:17] [server thread/INFO]: Preparing start region for level 0 [12:30:18] [server thread/INFO]: Preparing spawn area: 58% [12:30:19] [server thread/INFO]: Changing view distance to 2, from 10 [12:30:21] [Netty Local Client IO #0/INFO] [FML]: Server protocol version 2 [12:30:21] [Netty Server IO #1/INFO] [FML]: Client protocol version 2 [12:30:21] [Netty Server IO #1/INFO] [FML]: Client attempting to join with 4 mods : [email protected],[email protected],[email protected],[email protected] [12:30:21] [Netty Local Client IO #0/INFO] [FML]: [Netty Local Client IO #0] Client side modded connection established [12:30:21] [server thread/INFO] [FML]: [server thread] Server side modded connection established [12:30:21] [server thread/INFO]: Player512[local:E:0a945a5e] logged in with entity id 454 at (267.02422565986575, 67.0, 219.49761608486688) [12:30:21] [server thread/INFO]: Player512 joined the game [12:30:22] [server thread/INFO]: Saving and pausing game... [12:30:22] [server thread/INFO]: Saving chunks for level 'World'/Overworld [12:30:23] [server thread/INFO]: Saving chunks for level 'World'/Nether [12:30:23] [server thread/INFO]: Saving chunks for level 'World'/The End [12:30:23] [pool-2-thread-1/WARN]: Couldn't look up profile properties for com.mojang.authlib.GameProfile@7f6f03fe[id=4296a45d-fd1d-3a8b-9f25-0f078d10cc6b,name=Player512,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.getProfileProperties(Minecraft.java:3043) [Minecraft.class:?] at net.minecraft.client.resources.SkinManager$3.run(SkinManager.java:131) [skinManager$3.class:?] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_65] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_65] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_65] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_65] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_65] [12:30:26] [server thread/INFO]: Player512 has just earned the achievement [Taking Inventory] [12:30:26] [Client thread/INFO]: [CHAT] Player512 has just earned the achievement [Taking Inventory] Is there any other code you want?
-
package com.thatcreepyuncle.logicalTech.core; import net.minecraft.client.renderer.block.model.ModelBakery; import net.minecraft.client.renderer.block.model.ModelResourceLocation; import net.minecraft.util.ResourceLocation; import net.minecraftforge.client.model.ModelLoader; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; public class ClientProxy extends CommonProxy{ @Override public void init() { loadMetaItems(); ModItems.init(); } @Override public void preInit() { super.preInit(); loadMetaItems(); } @Override public void loadMetaItems() { ModelLoader.setCustomModelResourceLocation(ModItems.circuit, 0, new ModelResourceLocation("ltech:toolCircuit")); ModelLoader.setCustomModelResourceLocation(ModItems.circuit, 1, new ModelResourceLocation("ltech:redstoneCircuit")); ModelLoader.setCustomModelResourceLocation(ModItems.circuit, 2, new ModelResourceLocation("ltech:motherboardCircuit")); ModelLoader.setCustomModelResourceLocation(ModItems.remote_switch, 0, new ModelResourceLocation("ltech:remote_switch")); ModelLoader.setCustomModelResourceLocation(ModItems.remote_switch, 1, new ModelResourceLocation("ltech:remote_switch_activated")); } }
-
Doesn't Work, Still no errors
-
Updated Client Proxy: package com.thatcreepyuncle.logicalTech.core; import net.minecraft.client.renderer.block.model.ModelBakery; import net.minecraft.client.renderer.block.model.ModelResourceLocation; import net.minecraft.util.ResourceLocation; import net.minecraftforge.client.model.ModelLoader; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; public class ClientProxy extends CommonProxy{ @Override public void init() { loadMetaItems(); ModItems.init(); } @Override public void preInit() { super.preInit(); } @Override public void loadMetaItems() { ModelLoader.setCustomModelResourceLocation(ModItems.circuit, 0, new ModelResourceLocation("ltech:toolCircuit")); ModelLoader.setCustomModelResourceLocation(ModItems.circuit, 1, new ModelResourceLocation("ltech:redstoneCircuit")); ModelLoader.setCustomModelResourceLocation(ModItems.circuit, 2, new ModelResourceLocation("ltech:motherboardCircuit")); ModelLoader.setCustomModelResourceLocation(ModItems.remote_switch, 0, new ModelResourceLocation("ltech:remote_switch")); ModelLoader.setCustomModelResourceLocation(ModItems.remote_switch, 1, new ModelResourceLocation("ltech:remote_switch_activated")); } } Updated Mod Items: package com.thatcreepyuncle.logicalTech.core; import java.util.ArrayList; import com.thatcreepyuncle.logicalTech.item.Circuit; import com.thatcreepyuncle.logicalTech.item.RemoteSwitch; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.block.model.ModelResourceLocation; import net.minecraft.item.Item; import net.minecraftforge.fml.common.registry.GameRegistry; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; public class ModItems { public static ArrayList<Item> items; public static Item circuit; public static Item remote_switch; public static void preInit() { items = new ArrayList<Item>(); circuit = new Circuit(); GameRegistry.register(circuit); remote_switch = new RemoteSwitch(); GameRegistry.register(remote_switch); for (Item item : items) { GameRegistry.register(item); } } @SideOnly(Side.CLIENT) public static void init() { registerItemRenderer(circuit, 0, "toolCircuit"); registerItemRenderer(circuit, 1, "redstoneCircuit"); registerItemRenderer(circuit, 2, "motherboardCircuit"); registerItemRenderer(remote_switch, 0, "remote_switch"); registerItemRenderer(remote_switch, 1, "remote_switch_activated"); for (Item item : items) { registerItemRenderer(item); } } public static void registerItemRenderer(Item item) { Minecraft.getMinecraft().getRenderItem().getItemModelMesher() .register(item, 0, new ModelResourceLocation(item.getRegistryName(), "inventory")); } public static void registerItemRenderer(Item item, int meta, String fileName) { Minecraft.getMinecraft().getRenderItem().getItemModelMesher() .register(item, meta, new ModelResourceLocation((fileName), "inventory")); } } Item Class package com.thatcreepyuncle.logicalTech.item; import java.util.List; import com.thatcreepyuncle.logicalTech.util.ModCreativeTabs; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; public class Circuit extends Item{ public Circuit() { super(); this.setHasSubtypes(true); this.setRegistryName("circuit"); this.setCreativeTab(ModCreativeTabs.GENERAL); this.setUnlocalizedName("circuit"); } @Override public String getUnlocalizedName(ItemStack stack) { String name = EnumCircuit.values()[stack.getItemDamage()].getUnlocalizedName(); return "circuit_" + name; } @Override public void getSubItems(Item itemIn, CreativeTabs tab, List subItems) { for (int i = 0; i < 3; i++) { subItems.add(new ItemStack(itemIn, 1, i)); } } }
-
I have moved all of the methods into my Client Proxy, but the textures still don't show, and there isn't an error. BTW, I did Change it to ModelLoader.setCustomModelResourceLocation.
-
I am confused, but in the code above I put it in the Client Proxy? Am I wrong?
-
That still doesn't work: New Client Proxy Code: package com.thatcreepyuncle.logicalTech.core; import net.minecraft.client.renderer.block.model.ModelBakery; import net.minecraft.util.ResourceLocation; public class ClientProxy extends CommonProxy{ @Override public void init() { loadMetaItems(); ModItems.init(); } @Override public void preInit() { super.preInit(); } @Override public void loadMetaItems() { ModelBakery.registerItemVariants(ModItems.circuit, new ResourceLocation("ltech:toolCircuit"), new ResourceLocation("ltech:redstoneCircuit"), new ResourceLocation("ltech:motherboardCircuit")); ModelBakery.registerItemVariants(ModItems.remote_switch, new ResourceLocation("ltech:remote_switch"), new ResourceLocation("ltech:remote_switch_activated")); } }
-
Currently I am trying to add circuits, however the textures are not showing and I can't find a error in the log. LOG 2016-07-07 18:48:29,080 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream 2016-07-07 18:48:29,083 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream [18:48:29] [main/INFO] [GradleStart]: Extra: [] [18:48:29] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/Bob/.gradle/caches/minecraft/assets, --assetIndex, 1.9, --accessToken{REDACTED}, --version, 1.9.4, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker] [18:48:29] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [18:48:29] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [18:48:29] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker [18:48:29] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker [18:48:29] [main/INFO] [FML]: Forge Mod Loader version 12.17.0.1976 for Minecraft 1.9.4 loading [18:48:29] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_65, running on Windows 10:amd64:10.0, installed at C:\Program Files\Java\jdk1.8.0_66\jre [18:48:29] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [18:48:29] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker [18:48:29] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin [18:48:29] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin [18:48:29] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [18:48:29] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [18:48:29] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [18:48:29] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [18:48:29] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [18:48:29] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [18:48:29] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work! [18:48:31] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [18:48:31] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [18:48:31] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [18:48:33] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [18:48:33] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker [18:48:33] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker [18:48:33] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} 2016-07-07 18:48:34,174 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream 2016-07-07 18:48:34,214 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream 2016-07-07 18:48:34,218 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream [18:48:34] [Client thread/INFO]: Setting user: Player503 [18:48:39] [Client thread/INFO]: LWJGL Version: 2.9.4 [18:48:41] [Client thread/INFO] [sTDOUT]: [net.minecraftforge.fml.client.SplashProgress:start:202]: ---- Minecraft Crash Report ---- // I'm sorry, Dave. Time: 7/7/16 6:48 PM Description: Loading screen debug info This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details: Minecraft Version: 1.9.4 Operating System: Windows 10 (amd64) version 10.0 Java Version: 1.8.0_65, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 896680584 bytes (855 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 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: 'ATI Technologies Inc.' Version: '4.5.13416 Compatibility Profile Context 15.300.1025.1001' Renderer: 'AMD Radeon R7 200 Series' [18:48:41] [Client thread/INFO] [FML]: MinecraftForge v12.17.0.1976 Initialized [18:48:41] [Client thread/INFO] [FML]: Replaced 232 ore recipes [18:48:41] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer [18:48:41] [Client thread/INFO] [FML]: Searching C:\Users\Bob\Desktop\LogicalTech 1.9.4\run\mods for mods [18:48:41] [Client thread/INFO] [ltech]: Mod ltech is missing the required element 'name'. Substituting ltech [18:48:43] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load [18:48:43] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, ltech] at CLIENT [18:48:43] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, ltech] at SERVER [18:48:44] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:ltech [18:48:44] [Client thread/INFO] [FML]: Processing ObjectHolder annotations [18:48:44] [Client thread/INFO] [FML]: Found 418 ObjectHolder annotations [18:48:44] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations [18:48:44] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations [18:48:44] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0 [18:48:44] [Forge Version Check/INFO] [ForgeVersionCheck]: [Forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json [18:48:45] [Client thread/INFO] [FML]: Applying holder lookups [18:48:45] [Forge Version Check/INFO] [ForgeVersionCheck]: [Forge] Found status: UP_TO_DATE Target: null [18:48:45] [Client thread/INFO] [FML]: Holder lookups applied [18:48:45] [Client thread/INFO] [FML]: Injecting itemstacks [18:48:45] [Client thread/INFO] [FML]: Itemstack injection complete [18:48:49] [sound Library Loader/INFO]: Starting up SoundSystem... [18:48:49] [Thread-8/INFO]: Initializing LWJGL OpenAL [18:48:49] [Thread-8/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [18:48:49] [Thread-8/INFO]: OpenAL initialized. [18:48:50] [sound Library Loader/INFO]: Sound engine started [18:48:56] [Client thread/INFO] [FML]: Max texture size: 16384 [18:48:56] [Client thread/INFO]: Created: 16x16 textures-atlas [18:48:58] [Client thread/INFO] [FML]: Injecting itemstacks [18:48:58] [Client thread/INFO] [FML]: Itemstack injection complete [18:48:58] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods [18:48:58] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:ltech [18:49:02] [Client thread/INFO]: SoundSystem shutting down... [18:49:02] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com [18:49:02] [sound Library Loader/INFO]: Starting up SoundSystem... [18:49:02] [Thread-10/INFO]: Initializing LWJGL OpenAL [18:49:02] [Thread-10/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [18:49:02] [Thread-10/INFO]: OpenAL initialized. [18:49:03] [sound Library Loader/INFO]: Sound engine started [18:49:07] [Client thread/INFO] [FML]: Max texture size: 16384 [18:49:08] [Client thread/INFO]: Created: 1024x512 textures-atlas [18:49:10] [Realms Notification Availability checker #1/INFO]: Could not authorize you against Realms server: Invalid session id [18:50:17] [server thread/INFO]: Starting integrated minecraft server version 1.9.4 [18:50:17] [server thread/INFO]: Generating keypair [18:50:17] [server thread/INFO] [FML]: Injecting existing block and item data into this server instance [18:50:17] [server thread/INFO] [FML]: Applying holder lookups [18:50:17] [server thread/INFO] [FML]: Holder lookups applied [18:50:17] [server thread/INFO] [FML]: Loading dimension 0 (Dev World) (net.minecraft.server.integrated.IntegratedServer@3e33e4ba) [18:50:18] [server thread/INFO] [FML]: Loading dimension 1 (Dev World) (net.minecraft.server.integrated.IntegratedServer@3e33e4ba) [18:50:18] [server thread/INFO] [FML]: Loading dimension -1 (Dev World) (net.minecraft.server.integrated.IntegratedServer@3e33e4ba) [18:50:18] [server thread/INFO]: Preparing start region for level 0 [18:50:20] [Netty Local Client IO #0/INFO] [FML]: Server protocol version 2 [18:50:20] [Netty Server IO #1/INFO] [FML]: Client protocol version 2 [18:50:20] [Netty Server IO #1/INFO] [FML]: Client attempting to join with 4 mods : [email protected],[email protected],[email protected],[email protected] [18:50:20] [Netty Local Client IO #0/INFO] [FML]: [Netty Local Client IO #0] Client side modded connection established [18:50:20] [server thread/INFO] [FML]: [server thread] Server side modded connection established [18:50:20] [server thread/INFO]: Player503[local:E:6a2fdb05] logged in with entity id 1253 at (19.42612807298208, -120.6795103751531, -4.886012161662722) [18:50:20] [server thread/INFO]: Player503 joined the game [18:50:21] [server thread/INFO]: Saving and pausing game... [18:50:21] [server thread/INFO]: Saving chunks for level 'Dev World'/Overworld [18:50:21] [server thread/INFO]: Saving chunks for level 'Dev World'/Nether [18:50:21] [server thread/INFO]: Saving chunks for level 'Dev World'/The End [18:50:21] [pool-2-thread-1/WARN]: Couldn't look up profile properties for com.mojang.authlib.GameProfile@3c394e9e[id=6b7bc9c9-e7da-3a47-9bb3-2051e22e10b9,name=Player503,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.getProfileProperties(Minecraft.java:3043) [Minecraft.class:?] at net.minecraft.client.resources.SkinManager$3.run(SkinManager.java:131) [skinManager$3.class:?] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_65] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_65] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_65] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_65] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_65] [18:50:26] [server thread/INFO]: Player503 has just earned the achievement [Taking Inventory] [18:50:26] [Client thread/INFO]: [CHAT] Player503 has just earned the achievement [Taking Inventory] ModItems Class package com.thatcreepyuncle.logicalTech.core; import java.util.ArrayList; import com.thatcreepyuncle.logicalTech.item.Circuit; import com.thatcreepyuncle.logicalTech.item.RemoteSwitch; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.block.model.ModelResourceLocation; import net.minecraft.item.Item; import net.minecraftforge.fml.common.registry.GameRegistry; public class ModItems { public static ArrayList<Item> items; public static Item circuit; public static Item remote_switch; public static void preInit() { items = new ArrayList<Item>(); circuit = new Circuit(); GameRegistry.register(circuit); remote_switch = new RemoteSwitch(); GameRegistry.register(remote_switch); for (Item item : items) { GameRegistry.register(item); } } public static void init() { registerItemRenderer(circuit, 0, "toolCircuit"); registerItemRenderer(circuit, 1, "redstoneCircuit"); registerItemRenderer(circuit, 2, "motherboardCircuit"); registerItemRenderer(remote_switch, 0, "remote_switch"); registerItemRenderer(remote_switch, 1, "remote_switch_activated"); for (Item item : items) { registerItemRenderer(item); } } public static void registerItemRenderer(Item item) { Minecraft.getMinecraft().getRenderItem().getItemModelMesher() .register(item, 0, new ModelResourceLocation(item.getRegistryName(), "inventory")); } public static void registerItemRenderer(Item item, int meta, String fileName) { Minecraft.getMinecraft().getRenderItem().getItemModelMesher() .register(item, meta, new ModelResourceLocation((fileName), "inventory")); } } Item Class: package com.thatcreepyuncle.logicalTech.item; import java.util.List; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; public class Circuit extends Item{ public Circuit() { super(); this.setHasSubtypes(true); this.setRegistryName("circuit"); this.setCreativeTab(CreativeTabs.REDSTONE); this.setUnlocalizedName("circuit"); } @Override public String getUnlocalizedName(ItemStack stack) { String name = EnumCircuit.values()[stack.getItemDamage()].getUnlocalizedName(); if(name == null){ name = ""; } return "circuit_" + name; } @Override public void getSubItems(Item itemIn, CreativeTabs tab, List subItems) { for (int i = 0; i < 3; i++) { subItems.add(new ItemStack(itemIn, 1, i)); } } } Client Proxy: package com.thatcreepyuncle.logicalTech.core; import net.minecraft.client.renderer.block.model.ModelBakery; import net.minecraft.util.ResourceLocation; public class ClientProxy extends CommonProxy{ @Override public void init() { ModItems.init(); } @Override public void loadMetaItems() { ModelBakery.registerItemVariants(ModItems.circuit, new ResourceLocation("ltech:toolCircuit"), new ResourceLocation("ltech:redstoneCircuit"), new ResourceLocation("ltech:motherboardCircuit")); ModelBakery.registerItemVariants(ModItems.remote_switch, new ResourceLocation("ltech:remote_switch"), new ResourceLocation("ltech:remote_switch_activated")); } }
-
ItemRenderer NullPointerException[SOLVED]
ThatCreepyUncle replied to ThatCreepyUncle's topic in Modder Support
Thanks -
So I am messing around with forge 1.9, and a machine. It will craft circuits in a crafting table kind of thing. However, whenever I create a new ItemStack in the output slot, I get an error. TileEntity Class: package com.thatcreepyuncle.logicalTech.tileEntity; import com.thatcreepyuncle.logicalTech.crafting.CircuitWorkbenchCraftingManager; import io.netty.util.internal.SystemPropertyUtil; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.inventory.ISidedInventory; import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.nbt.NBTTagList; import net.minecraft.network.NetworkManager; import net.minecraft.network.Packet; import net.minecraft.network.play.server.SPacketUpdateTileEntity; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.EnumFacing; import net.minecraft.util.ITickable; import net.minecraft.util.text.ITextComponent; import net.minecraft.util.text.TextComponentString; public class TileEntityCircuitWorkbench extends TileEntity implements ITickable, ISidedInventory { private static final int[] slots = new int[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; public ItemStack[] inventory = new ItemStack[11]; private String customName = "circuit_workbench"; public CircuitWorkbenchCraftingManager manager; public TileEntityCircuitWorkbench() { manager = new CircuitWorkbenchCraftingManager(this); System.out.println("Google"); } @Override public void update() { manager.update(); } public int getSizeInventory() { return 11; } @Override public ItemStack getStackInSlot(int par1) { return this.inventory[par1]; } @Override public ItemStack decrStackSize(int par1, int par2) { if (this.inventory[par1] != null) { ItemStack var3; if (this.inventory[par1].stackSize <= par2) { var3 = this.inventory[par1]; this.inventory[par1] = null; this.markDirty(); return var3; } var3 = this.inventory[par1].splitStack(par2); if (this.inventory[par1].stackSize == 0) { this.inventory[par1] = null; } this.markDirty(); return var3; } return null; } @Override public ItemStack removeStackFromSlot(int par1) { if (this.inventory[par1] != null) { ItemStack var2 = this.inventory[par1]; this.inventory[par1] = null; return var2; } return null; } @Override public void setInventorySlotContents(int index, ItemStack stack) { this.inventory[index] = stack; if (stack != null && stack.stackSize > this.getInventoryStackLimit()) { stack.stackSize = this.getInventoryStackLimit(); } this.markDirty(); } /** * Reads a tile entity from NBT. */ public void readFromNBT(NBTTagCompound tagCompound) { super.readFromNBT(tagCompound); NBTTagList tagList = (NBTTagList) tagCompound.getTag("Items"); this.inventory = new ItemStack[this.getSizeInventory()]; for (int count = 0; count < tagList.tagCount(); ++count) { NBTTagCompound nbt = (NBTTagCompound) tagList.getCompoundTagAt(count); int slot = nbt.getByte("Slot") & 255; if (slot >= 0 && slot < this.inventory.length) { this.inventory[slot] = ItemStack.loadItemStackFromNBT(nbt); } } if (tagCompound.hasKey("CustomName", ) { this.customName = tagCompound.getString("CustomName"); } inventory[0] = null; } @Override public void writeToNBT(NBTTagCompound par1NBTTagCompound) { super.writeToNBT(par1NBTTagCompound); NBTTagList var2 = new NBTTagList(); for (int var3 = 0; var3 < this.inventory.length; ++var3) { if (this.inventory[var3] != null) { NBTTagCompound var4 = new NBTTagCompound(); var4.setByte("Slot", (byte) var3); this.inventory[var3].writeToNBT(var4); var2.appendTag(var4); } } par1NBTTagCompound.setTag("Items", var2); } @Override public void onDataPacket(NetworkManager net, SPacketUpdateTileEntity pkt) { NBTTagCompound tagCom = pkt.getNbtCompound(); this.readFromNBT(tagCom); } @Override public Packet getDescriptionPacket() { NBTTagCompound tagCom = new NBTTagCompound(); this.writeToNBT(tagCom); return new SPacketUpdateTileEntity(pos, getBlockMetadata(), tagCom); } @Override public int getInventoryStackLimit() { return 64; } @Override public boolean isUseableByPlayer(EntityPlayer par1EntityPlayer) { return this.worldObj.getTileEntity(pos) != this ? false : par1EntityPlayer.getDistanceSq(this.pos.getX() + 0.5D, this.pos.getY() + 0.5D, this.pos.getZ() + 0.5D) <= 64.0D; } @Override public void invalidate() { this.updateContainingBlockInfo(); super.invalidate(); } @Override public boolean isItemValidForSlot(int par1, ItemStack par2ItemStack) { return true; } @Override public String getName() { return this.hasCustomName() ? this.customName : "container.compacter"; } @Override public boolean hasCustomName() { return this.customName != null && this.customName.length() > 0; } @Override public ITextComponent getDisplayName() { return new TextComponentString(getName()); } @Override public void openInventory(EntityPlayer playerIn) { } @Override public void closeInventory(EntityPlayer playerIn) { } @Override public int getField(int id) { return 0; } @Override public void setField(int id, int value) { } @Override public int getFieldCount() { return 0; } @Override public void clear() { for (int i = 0; i < inventory.length; i++) { inventory[i] = null; } } @Override public int[] getSlotsForFace(EnumFacing side) { return slots; } @Override public boolean canInsertItem(int index, ItemStack stack, EnumFacing direction) { return true; } @Override public boolean canExtractItem(int index, ItemStack stack, EnumFacing direction) { return false; } } Crafting Manager: package com.thatcreepyuncle.logicalTech.crafting; import com.thatcreepyuncle.logicalTech.tileEntity.TileEntityCircuitWorkbench; import com.thatcreepyuncle.logicalTech.util.FuelHandler; import net.minecraft.client.Minecraft; import net.minecraft.init.Blocks; import net.minecraft.init.Items; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; public class CircuitWorkbenchCraftingManager { // Blocks to Items! private final Item redstoneBlock = Item.getItemFromBlock(Blocks.redstone_block); private final Item ironBlock = Item.getItemFromBlock(Blocks.iron_block); /* * CRAFTING RECIPES */ private final Item[] toolsCircuitInput = new Item[] { redstoneBlock, Items.golden_pickaxe, redstoneBlock, Items.golden_axe, ironBlock, Items.golden_sword, redstoneBlock, Items.golden_shovel, redstoneBlock, Items.diamond }; /* * END OF CRAFTING RECIPES */ private TileEntityCircuitWorkbench tile; public boolean crafting = false; private Item itemCrafting; public int cookTime = 0; public int fuelTime; public CircuitWorkbenchCraftingManager(TileEntityCircuitWorkbench t) { tile = t; } // 2-11 = Input, 0 = Fuel, 1 = output public void update() { if (!crafting) { checkCraft(); } else { System.out.println(this.cookTime); handleFuel(); handleCraft(); } for (int i = 0; i < this.tile.inventory.length; i++) { if (this.tile.inventory[i] != null) if (this.tile.inventory[i].stackSize <= 0) { this.tile.inventory[i] = null; } } } private void handleFuel() { if(fuelTime <= 0 && tile.inventory[1] != null){ if(FuelHandler.isFuel(this.tile.inventory[1].getItem())){ fuelTime = FuelHandler.calcFuel(this.tile.inventory[1]); } } } private void startCraft(Item[] recipe, ItemStack[] input){ crafting = true; for (int i = 0; i < input.length; i++) { input[i].stackSize--; } cookTime = 1000; } private void handleCraft() { if(fuelTime > 0){ if(cookTime > 0){ cookTime--; fuelTime--; }else{ craft(); crafting = false; } } } private void checkCraft() { Item[] input = new Item[9]; ItemStack[] inputStacks = new ItemStack[9]; for (int i = 0; i < 9; i++) { if (tile.inventory[i + 2] == null) { break; } inputStacks[i] = tile.inventory[i + 2]; input[i] = tile.inventory[i + 2].getItem(); } if (canCraft(input, this.toolsCircuitInput)) { startCraft(this.toolsCircuitInput, inputStacks); } } private void craft() { System.out.println("Crafting:"); if (this.tile.inventory[0] == null) { System.out.println("Inventory[0]"); this.tile.inventory[0] = new ItemStack(itemCrafting); } else { System.out.println("Googles"); this.tile.inventory[0].stackSize++; } } private boolean canCraft(Item[] input, Item[] recipe) { if (tile.inventory[0] != null) { if (tile.inventory[0].getItem() == recipe[9] && tile.inventory[0].stackSize < 64) { for (int i = 0; i < input.length; i++) { if (input[i] != recipe[i]) { return false; } } return true; } } else { for (int i = 0; i < input.length; i++) { if (input[i] != recipe[i]) { return false; } } return true; } return false; } } Crash Log: A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Stacktrace: at net.minecraft.client.renderer.RenderItem.renderItemOverlayIntoGUI(RenderItem.java:428) at net.minecraft.client.gui.inventory.GuiContainer.drawSlot(GuiContainer.java:319) at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:118) at net.minecraftforge.client.ForgeHooksClient.drawScreen(ForgeHooksClient.java:353) -- Screen render details -- Details: Screen name: com.thatcreepyuncle.logicalTech.gui.CircuitWorkbenchGui Mouse location: Scaled: (403, 214). Absolute: (806, 51) Screen size: Scaled: (427, 240). Absolute: (854, 480). Scale factor of 2 -- Affected level -- Details: Level name: MpServer All players: 1 total; [EntityPlayerSP['Player962'/0, l='MpServer', x=8.20, y=4.00, z=4.30]] Chunk stats: MultiplayerChunkCache: 289, 289 Level seed: 0 Level generator: ID 01 - flat, ver 0. Features enabled: false Level generator options: Level spawn location: World: (8,4,, Chunk: (at 8,0,8 in 0,0; contains blocks 0,0,0 to 15,255,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511) Level time: 122022 game time, 1304 day time Level dimension: 0 Level storage version: 0x00000 - Unknown? Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false) Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false Forced entities: 1 total; [EntityPlayerSP['Player962'/0, l='MpServer', x=8.20, y=4.00, z=4.30]] Retry entities: 0 total; [] Server brand: fml,forge Server type: Integrated singleplayer server Stacktrace: at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:445) at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2766) at net.minecraft.client.Minecraft.run(Minecraft.java:422) at net.minecraft.client.main.Main.main(Main.java:118) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) at GradleStart.main(GradleStart.java:26) -- System Details -- Details: Minecraft Version: 1.9 Operating System: Windows 10 (amd64) version 10.0 Java Version: 1.8.0_65, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 551814400 bytes (526 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP 9.23 Powered by Forge 12.16.1.1887 4 mods loaded, 4 mods active States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored UCHIJAAAA mcp{9.19} [Minecraft Coder Pack] (minecraft.jar) UCHIJAAAA FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.9-12.16.1.1887.jar) UCHIJAAAA Forge{12.16.1.1887} [Minecraft Forge] (forgeSrc-1.9-12.16.1.1887.jar) UCHIJAAAA ltech{1.0} [ltech] (bin) Loaded coremods (and transformers): GL info: ' Vendor: 'ATI Technologies Inc.' Version: '4.5.13416 Compatibility Profile Context 15.300.1025.1001' Renderer: 'AMD Radeon R7 200 Series' Launched Version: 1.9 LWJGL: 2.9.4 OpenGL: AMD Radeon R7 200 Series GL version 4.5.13416 Compatibility Profile Context 15.300.1025.1001, ATI Technologies Inc. GL Caps: Using GL 1.3 multitexturing. Using GL 1.3 texture combiners. Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported. Shaders are available because OpenGL 2.1 is supported. VBOs are available because OpenGL 1.5 is supported. Using VBOs: No Is Modded: Definitely; Client brand changed to 'fml,forge' Type: Client (map_client.txt) Resource Packs: Current Language: English (US) Profiler Position: N/A (disabled) CPU: 4x AMD FX(tm)-4300 Quad-Core Processor [10:45:17] [Client thread/INFO] [sTDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:646]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\Noah\Desktop\Computer Mod 1.9\run\.\crash-reports\crash-2016-07-05_10.45.17-client.txt AL lib: (EE) alc_cleanup: 1 device not closed Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
-
Item Disappears When Clicked In Inventory[solved]
ThatCreepyUncle replied to ThatCreepyUncle's topic in Modder Support
So I set up Packet Handling, but I get an DecoderException! Error [15:33:09] [Netty Server IO #1/ERROR] [FML]: FMLIndexedMessageCodec exception caught io.netty.handler.codec.DecoderException: java.lang.InstantiationException: com.thatcreepyuncle.moreElementsMod.network.NetworkMessages$BACCraftingMessage at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:99) ~[MessageToMessageDecoder.class:4.0.23.Final] at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) ~[MessageToMessageCodec.class:4.0.23.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333) [AbstractChannelHandlerContext.class:4.0.23.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319) [AbstractChannelHandlerContext.class:4.0.23.Final] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:787) [DefaultChannelPipeline.class:4.0.23.Final] at io.netty.channel.embedded.EmbeddedChannel.writeInbound(EmbeddedChannel.java:169) [EmbeddedChannel.class:4.0.23.Final] at net.minecraftforge.fml.common.network.internal.FMLProxyPacket.processPacket(FMLProxyPacket.java:90) [FMLProxyPacket.class:?] at net.minecraft.network.NetworkManager.channelRead0(NetworkManager.java:155) [NetworkManager.class:?] at net.minecraft.network.NetworkManager.channelRead0(NetworkManager.java:50) [NetworkManager.class:?] at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105) [simpleChannelInboundHandler.class:4.0.23.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333) [AbstractChannelHandlerContext.class:4.0.23.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319) [AbstractChannelHandlerContext.class:4.0.23.Final] at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher.handleServerSideCustomPacket(NetworkDispatcher.java:429) [NetworkDispatcher.class:?] at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher.channelRead0(NetworkDispatcher.java:252) [NetworkDispatcher.class:?] at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher.channelRead0(NetworkDispatcher.java:53) [NetworkDispatcher.class:?] at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105) [simpleChannelInboundHandler.class:4.0.23.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333) [AbstractChannelHandlerContext.class:4.0.23.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319) [AbstractChannelHandlerContext.class:4.0.23.Final] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:787) [DefaultChannelPipeline.class:4.0.23.Final] at io.netty.channel.local.LocalChannel.finishPeerRead(LocalChannel.java:326) [LocalChannel.class:4.0.23.Final] at io.netty.channel.local.LocalChannel.access$400(LocalChannel.java:45) [LocalChannel.class:4.0.23.Final] at io.netty.channel.local.LocalChannel$5.run(LocalChannel.java:312) [LocalChannel$5.class:4.0.23.Final] at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:380) [singleThreadEventExecutor.class:4.0.23.Final] at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:357) [NioEventLoop.class:4.0.23.Final] at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116) [singleThreadEventExecutor$2.class:4.0.23.Final] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_65] Caused by: java.lang.InstantiationException: com.thatcreepyuncle.moreElementsMod.network.NetworkMessages$BACCraftingMessage at java.lang.Class.newInstance(Class.java:427) ~[?:1.8.0_65] at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.decode(FMLIndexedMessageToMessageCodec.java:82) ~[FMLIndexedMessageToMessageCodec.class:?] at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.decode(FMLIndexedMessageToMessageCodec.java:21) ~[FMLIndexedMessageToMessageCodec.class:?] at io.netty.handler.codec.MessageToMessageCodec$2.decode(MessageToMessageCodec.java:81) ~[MessageToMessageCodec$2.class:4.0.23.Final] at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:89) ~[MessageToMessageDecoder.class:4.0.23.Final] ... 25 more Caused by: java.lang.NoSuchMethodException: com.thatcreepyuncle.moreElementsMod.network.NetworkMessages$BACCraftingMessage.<init>() at java.lang.Class.getConstructor0(Class.java:3082) ~[?:1.8.0_65] at java.lang.Class.newInstance(Class.java:412) ~[?:1.8.0_65] at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.decode(FMLIndexedMessageToMessageCodec.java:82) ~[FMLIndexedMessageToMessageCodec.class:?] at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.decode(FMLIndexedMessageToMessageCodec.java:21) ~[FMLIndexedMessageToMessageCodec.class:?] at io.netty.handler.codec.MessageToMessageCodec$2.decode(MessageToMessageCodec.java:81) ~[MessageToMessageCodec$2.class:4.0.23.Final] at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:89) ~[MessageToMessageDecoder.class:4.0.23.Final] ... 25 more [15:33:09] [Netty Server IO #1/ERROR] [FML]: SimpleChannelHandlerWrapper exception io.netty.handler.codec.DecoderException: java.lang.InstantiationException: com.thatcreepyuncle.moreElementsMod.network.NetworkMessages$BACCraftingMessage at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:99) ~[MessageToMessageDecoder.class:4.0.23.Final] at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) ~[MessageToMessageCodec.class:4.0.23.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333) [AbstractChannelHandlerContext.class:4.0.23.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319) [AbstractChannelHandlerContext.class:4.0.23.Final] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:787) [DefaultChannelPipeline.class:4.0.23.Final] at io.netty.channel.embedded.EmbeddedChannel.writeInbound(EmbeddedChannel.java:169) [EmbeddedChannel.class:4.0.23.Final] at net.minecraftforge.fml.common.network.internal.FMLProxyPacket.processPacket(FMLProxyPacket.java:90) [FMLProxyPacket.class:?] at net.minecraft.network.NetworkManager.channelRead0(NetworkManager.java:155) [NetworkManager.class:?] at net.minecraft.network.NetworkManager.channelRead0(NetworkManager.java:50) [NetworkManager.class:?] at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105) [simpleChannelInboundHandler.class:4.0.23.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333) [AbstractChannelHandlerContext.class:4.0.23.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319) [AbstractChannelHandlerContext.class:4.0.23.Final] at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher.handleServerSideCustomPacket(NetworkDispatcher.java:429) [NetworkDispatcher.class:?] at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher.channelRead0(NetworkDispatcher.java:252) [NetworkDispatcher.class:?] at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher.channelRead0(NetworkDispatcher.java:53) [NetworkDispatcher.class:?] at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105) [simpleChannelInboundHandler.class:4.0.23.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333) [AbstractChannelHandlerContext.class:4.0.23.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319) [AbstractChannelHandlerContext.class:4.0.23.Final] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:787) [DefaultChannelPipeline.class:4.0.23.Final] at io.netty.channel.local.LocalChannel.finishPeerRead(LocalChannel.java:326) [LocalChannel.class:4.0.23.Final] at io.netty.channel.local.LocalChannel.access$400(LocalChannel.java:45) [LocalChannel.class:4.0.23.Final] at io.netty.channel.local.LocalChannel$5.run(LocalChannel.java:312) [LocalChannel$5.class:4.0.23.Final] at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:380) [singleThreadEventExecutor.class:4.0.23.Final] at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:357) [NioEventLoop.class:4.0.23.Final] at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116) [singleThreadEventExecutor$2.class:4.0.23.Final] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_65] Caused by: java.lang.InstantiationException: com.thatcreepyuncle.moreElementsMod.network.NetworkMessages$BACCraftingMessage at java.lang.Class.newInstance(Class.java:427) ~[?:1.8.0_65] at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.decode(FMLIndexedMessageToMessageCodec.java:82) ~[FMLIndexedMessageToMessageCodec.class:?] at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.decode(FMLIndexedMessageToMessageCodec.java:21) ~[FMLIndexedMessageToMessageCodec.class:?] at io.netty.handler.codec.MessageToMessageCodec$2.decode(MessageToMessageCodec.java:81) ~[MessageToMessageCodec$2.class:4.0.23.Final] at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:89) ~[MessageToMessageDecoder.class:4.0.23.Final] ... 25 more Caused by: java.lang.NoSuchMethodException: com.thatcreepyuncle.moreElementsMod.network.NetworkMessages$BACCraftingMessage.<init>() at java.lang.Class.getConstructor0(Class.java:3082) ~[?:1.8.0_65] at java.lang.Class.newInstance(Class.java:412) ~[?:1.8.0_65] at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.decode(FMLIndexedMessageToMessageCodec.java:82) ~[FMLIndexedMessageToMessageCodec.class:?] at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.decode(FMLIndexedMessageToMessageCodec.java:21) ~[FMLIndexedMessageToMessageCodec.class:?] at io.netty.handler.codec.MessageToMessageCodec$2.decode(MessageToMessageCodec.java:81) ~[MessageToMessageCodec$2.class:4.0.23.Final] at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:89) ~[MessageToMessageDecoder.class:4.0.23.Final] ... 25 more [15:33:09] [Netty Server IO #1/ERROR] [FML]: There was a critical exception handling a packet on channel MyChannel io.netty.handler.codec.DecoderException: java.lang.InstantiationException: com.thatcreepyuncle.moreElementsMod.network.NetworkMessages$BACCraftingMessage at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:99) ~[MessageToMessageDecoder.class:4.0.23.Final] at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) ~[MessageToMessageCodec.class:4.0.23.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333) ~[AbstractChannelHandlerContext.class:4.0.23.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319) ~[AbstractChannelHandlerContext.class:4.0.23.Final] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:787) ~[DefaultChannelPipeline.class:4.0.23.Final] at io.netty.channel.embedded.EmbeddedChannel.writeInbound(EmbeddedChannel.java:169) ~[EmbeddedChannel.class:4.0.23.Final] at net.minecraftforge.fml.common.network.internal.FMLProxyPacket.processPacket(FMLProxyPacket.java:90) [FMLProxyPacket.class:?] at net.minecraft.network.NetworkManager.channelRead0(NetworkManager.java:155) [NetworkManager.class:?] at net.minecraft.network.NetworkManager.channelRead0(NetworkManager.java:50) [NetworkManager.class:?] at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105) [simpleChannelInboundHandler.class:4.0.23.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333) [AbstractChannelHandlerContext.class:4.0.23.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319) [AbstractChannelHandlerContext.class:4.0.23.Final] at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher.handleServerSideCustomPacket(NetworkDispatcher.java:429) [NetworkDispatcher.class:?] at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher.channelRead0(NetworkDispatcher.java:252) [NetworkDispatcher.class:?] at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher.channelRead0(NetworkDispatcher.java:53) [NetworkDispatcher.class:?] at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105) [simpleChannelInboundHandler.class:4.0.23.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333) [AbstractChannelHandlerContext.class:4.0.23.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319) [AbstractChannelHandlerContext.class:4.0.23.Final] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:787) [DefaultChannelPipeline.class:4.0.23.Final] at io.netty.channel.local.LocalChannel.finishPeerRead(LocalChannel.java:326) [LocalChannel.class:4.0.23.Final] at io.netty.channel.local.LocalChannel.access$400(LocalChannel.java:45) [LocalChannel.class:4.0.23.Final] at io.netty.channel.local.LocalChannel$5.run(LocalChannel.java:312) [LocalChannel$5.class:4.0.23.Final] at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:380) [singleThreadEventExecutor.class:4.0.23.Final] at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:357) [NioEventLoop.class:4.0.23.Final] at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116) [singleThreadEventExecutor$2.class:4.0.23.Final] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_65] Caused by: java.lang.InstantiationException: com.thatcreepyuncle.moreElementsMod.network.NetworkMessages$BACCraftingMessage at java.lang.Class.newInstance(Class.java:427) ~[?:1.8.0_65] at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.decode(FMLIndexedMessageToMessageCodec.java:82) ~[FMLIndexedMessageToMessageCodec.class:?] at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.decode(FMLIndexedMessageToMessageCodec.java:21) ~[FMLIndexedMessageToMessageCodec.class:?] at io.netty.handler.codec.MessageToMessageCodec$2.decode(MessageToMessageCodec.java:81) ~[MessageToMessageCodec$2.class:4.0.23.Final] at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:89) ~[MessageToMessageDecoder.class:4.0.23.Final] ... 25 more Caused by: java.lang.NoSuchMethodException: com.thatcreepyuncle.moreElementsMod.network.NetworkMessages$BACCraftingMessage.<init>() at java.lang.Class.getConstructor0(Class.java:3082) ~[?:1.8.0_65] at java.lang.Class.newInstance(Class.java:412) ~[?:1.8.0_65] at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.decode(FMLIndexedMessageToMessageCodec.java:82) ~[FMLIndexedMessageToMessageCodec.class:?] at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.decode(FMLIndexedMessageToMessageCodec.java:21) ~[FMLIndexedMessageToMessageCodec.class:?] at io.netty.handler.codec.MessageToMessageCodec$2.decode(MessageToMessageCodec.java:81) ~[MessageToMessageCodec$2.class:4.0.23.Final] at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:89) ~[MessageToMessageDecoder.class:4.0.23.Final] ... 25 more [15:33:09] [server thread/INFO]: Player986 lost connection: TextComponent{text='A fatal error has occurred, this connection is terminated', siblings=[], style=Style{hasParent=false, color=null, bold=null, italic=null, underlined=null, obfuscated=null, clickEvent=null, hoverEvent=null, insertion=null}} [15:33:09] [server thread/INFO]: Player986 left the game Message: public class BACCraftingMessage implements IMessage { public int x, y, z; public BACCraftingMessage(BlockPos pos) { this.x = pos.getX(); this.y = pos.getY(); this.z = pos.getZ(); } //Read @Override public void fromBytes(ByteBuf buf) { System.out.println("Reading from bytes"); NBTTagCompound nbt = ByteBufUtils.readTag(buf); this.x = nbt.getInteger("X"); this.y = nbt.getInteger("Y"); this.z = nbt.getInteger("Z"); System.out.println("Finished Reading"); } //Write @Override public void toBytes(ByteBuf buf) { System.out.println("Coding Message to Bytes"); NBTTagCompound nbt = new NBTTagCompound(); nbt.setInteger("X", this.x); nbt.setInteger("Y", this.y); nbt.setInteger("Z", this.z); ByteBufUtils.writeTag(buf, nbt); System.out.println("Finished Writing!"); } } Handler public static class BACInventoryHandler implements IMessageHandler<BACCraftingMessage, IMessage> { // or in 1.8: @Override public IMessage onMessage(final BACCraftingMessage message, final MessageContext ctx) { IThreadListener mainThread = (WorldServer) ctx.getServerHandler().playerEntity.worldObj; mainThread.addScheduledTask(new Runnable() { @Override public void run() { System.out.println("Running Task"); TileEntity t = ctx.getServerHandler().playerEntity.worldObj.getTileEntity(new BlockPos(message.x, message.y, message.z)); if(t instanceof TileEntityBAC){ System.out.println("Running Fill Gas Container"); ((TileEntityBAC) t).fillGasContainer(); } } }); return null; } } -
Item Disappears When Clicked In Inventory[solved]
ThatCreepyUncle replied to ThatCreepyUncle's topic in Modder Support
Update: Nothing works now, after adding in the if(worldobj.isRemote){return;}! None of the variables work after that phrase, but they work in GUI Class! Please help -
Item Disappears When Clicked In Inventory[solved]
ThatCreepyUncle replied to ThatCreepyUncle's topic in Modder Support
I added the method after the collecting/burning like in TileEntityFurnace, but now it won't automatically place the full gas container. How do I make it tick the part after (worldobj.isRemote) -
Hi! I am creating a Block (Basic Air Collector) that creates gas and then places the gas into a gas tank. However whenever I try to remove the filled container it disappears. Thanks for all of the help! Tile Entity package com.thatcreepyuncle.moreElementsMod.gui.collectors; import com.thatcreepyuncle.moreElementsMod.items.ModItems; import net.minecraft.block.state.IBlockState; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.InventoryPlayer; import net.minecraft.init.Items; import net.minecraft.inventory.Container; import net.minecraft.inventory.IInventory; import net.minecraft.inventory.ISidedInventory; import net.minecraft.item.ItemFood; import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.nbt.NBTTagList; import net.minecraft.network.NetworkManager; import net.minecraft.network.Packet; import net.minecraft.network.play.server.SPacketUpdateTileEntity; import net.minecraft.tileentity.TileEntity; import net.minecraft.tileentity.TileEntityLockable; import net.minecraft.util.EnumFacing; import net.minecraft.util.ITickable; import net.minecraft.util.math.BlockPos; import net.minecraft.util.text.ITextComponent; import net.minecraft.util.text.TextComponentString; import net.minecraft.world.World; public class TileEntityBAC extends TileEntity implements ISidedInventory, ITickable { private static final int[] slots = new int[] { 0, 1, 2}; private ItemStack[] inventory = new ItemStack[slots.length];// 0 = Input, 1 // = Output, 2 = // Fuel private String customName; public boolean isCollecting = false; public double gasAmount = 0; public int storageLimit = 49; public int powerLeftInCoal = 0; public boolean createdItem = false; @Override public void update() { if (isCollecting) { gasAmount += 0.5; powerLeftInCoal--; } if (isCollecting && gasAmount >= storageLimit) { isCollecting = false; } if(createdItem && inventory[1] == null){ System.out.print(""); } if (isCollecting && powerLeftInCoal <= 0 && inventory[2] != null) { if (inventory[2].getItem() == Items.coal && inventory[2].stackSize > 1) { inventory[2] = new ItemStack(inventory[2].getItem(), --inventory[2].stackSize); powerLeftInCoal = 1000; } else if (inventory[2].getItem() == Items.coal && inventory[2].stackSize == 1) { inventory[2] = null; powerLeftInCoal = 1000; } } if (isCollecting && powerLeftInCoal <= 0) { isCollecting = false; powerLeftInCoal = 0; } if (inventory[0] != null) { if (inventory[0].getItem() == ModItems.empty_gas_container && gasAmount >= storageLimit - 1) { if (inventory[1] == null) { gasAmount = 0; inventory[0] = new ItemStack(inventory[0].getItem(), --inventory[0].stackSize); inventory[1] = new ItemStack(ModItems.foroxide_gas_container); inventory[0].stackSize = inventory[0].stackSize; this.createdItem = true; }else if(inventory[1].getItem() == ModItems.foroxide_gas_container && inventory[1].stackSize < 64){ gasAmount = 0; inventory[0] = new ItemStack(inventory[0].getItem(), --inventory[0].stackSize); inventory[1].stackSize = inventory[1].stackSize + 1; inventory[0].stackSize = inventory[0].stackSize; this.createdItem = true; } } } } public void start() { isCollecting = true; if (isCollecting && powerLeftInCoal >= 0 && inventory[2] != null) { if (inventory[2].getItem() == Items.coal && inventory[2].stackSize >= 1) { inventory[2].stackSize--; powerLeftInCoal = 1000; } } } public int getSizeInventory() { return 3; } @Override public ItemStack getStackInSlot(int par1) { return this.inventory[par1]; } @Override public ItemStack decrStackSize(int par1, int par2) { if (this.inventory[par1] != null) { ItemStack var3; if (this.inventory[par1].stackSize <= par2) { var3 = this.inventory[par1]; this.inventory[par1] = null; this.markDirty(); return var3; } var3 = this.inventory[par1].splitStack(par2); if (this.inventory[par1].stackSize == 0) { this.inventory[par1] = null; } this.markDirty(); return var3; } return null; } @Override public ItemStack removeStackFromSlot(int slot) { System.out.println("Removing from slot: "+slot); if (this.inventory[slot] != null) { ItemStack var2 = this.inventory[slot]; this.inventory[slot] = null; return var2; } return null; } @Override public void setInventorySlotContents(int index, ItemStack stack) { this.inventory[index] = stack; if (stack != null && stack.stackSize > this.getInventoryStackLimit()) { stack.stackSize = this.getInventoryStackLimit(); } this.markDirty(); } /** * Reads a tile entity from NBT. */ public void readFromNBT(NBTTagCompound tagCompound) { super.readFromNBT(tagCompound); NBTTagList tagList = (NBTTagList) tagCompound.getTag("Items"); this.inventory = new ItemStack[this.getSizeInventory()]; for (int count = 0; count < tagList.tagCount(); ++count) { NBTTagCompound nbt = (NBTTagCompound) tagList.getCompoundTagAt(count); int slot = nbt.getByte("Slot") & 255; if (slot >= 0 && slot < this.inventory.length) { this.inventory[slot] = ItemStack.loadItemStackFromNBT(nbt); } } if (tagCompound.hasKey("CustomName", ) { this.customName = tagCompound.getString("CustomName"); } } @Override public void writeToNBT(NBTTagCompound compound) { super.writeToNBT(compound); NBTTagList nbtTabList = new NBTTagList(); for (int i = 0; i < this.inventory.length; ++i) { if (this.inventory[i] != null) { NBTTagCompound var4 = new NBTTagCompound(); var4.setByte("Slot", (byte) i); this.inventory[i].writeToNBT(var4); nbtTabList.appendTag(var4); } } compound.setTag("Items", nbtTabList); } @Override public void onDataPacket(NetworkManager net, SPacketUpdateTileEntity pkt) { NBTTagCompound tagCom = pkt.getNbtCompound(); this.readFromNBT(tagCom); } @Override public Packet getDescriptionPacket() { NBTTagCompound tagCom = new NBTTagCompound(); this.writeToNBT(tagCom); return new SPacketUpdateTileEntity(pos, getBlockMetadata(), tagCom); } @Override public int getInventoryStackLimit() { return 64; } @Override public boolean isUseableByPlayer(EntityPlayer par1EntityPlayer) { return this.worldObj.getTileEntity(pos) != this ? false : par1EntityPlayer.getDistanceSq(this.pos.getX() + 0.5D, this.pos.getY() + 0.5D, this.pos.getZ() + 0.5D) <= 64.0D; } @Override public void invalidate() { this.updateContainingBlockInfo(); super.invalidate(); } @Override public boolean isItemValidForSlot(int par1, ItemStack par2ItemStack) { return true; } @Override public String getName() { return this.hasCustomName() ? this.customName : "container.basic_air_container"; } @Override public boolean hasCustomName() { return this.customName != null && this.customName.length() > 0; } @Override public ITextComponent getDisplayName() { return new TextComponentString(getName()); } @Override public void openInventory(EntityPlayer playerIn) { } @Override public void closeInventory(EntityPlayer playerIn) { } @Override public int getField(int id) { return 0; } @Override public void setField(int id, int value) { } @Override public int getFieldCount() { return 0; } @Override public void clear() { for (int i = 0; i < inventory.length; i++) { inventory[i] = null; } } @Override public int[] getSlotsForFace(EnumFacing side) { return slots; } @Override public boolean canInsertItem(int index, ItemStack stack, EnumFacing direction) { if (index == 0 && direction == EnumFacing.UP) { return true; }else if(index == 2){ switch(direction){ case NORTH: case EAST: case SOUTH: case WEST: return true; default: return false; } } return false; } @Override public boolean canExtractItem(int index, ItemStack stack, EnumFacing direction) { if (index == 1){ System.out.println("Extracting from 1"); return true; } if(stack.getItem() == ModItems.foroxide_gas_container){ return true; } //System.out.println("Index: " + index); return false; } } Container: package com.thatcreepyuncle.moreElementsMod.gui.collectors; import com.thatcreepyuncle.moreElementsMod.items.ModItems; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.inventory.Container; import net.minecraft.inventory.ICrafting; import net.minecraft.inventory.IInventory; import net.minecraft.inventory.Slot; import net.minecraft.item.ItemFood; import net.minecraft.item.ItemStack; public class BasicAirCollectorContainer extends Container { private IInventory lowerChestInventory; private int numRows; public BasicAirCollectorContainer(IInventory playerInventory, IInventory inventory) { this.lowerChestInventory = playerInventory; inventory.openInventory(null); int var4, var5; System.out.println("Google"); this.addSlotToContainer(new Slot(inventory, 0, 8, 61));// Input this.addSlotToContainer(new Slot(inventory, 1, 31, 61));// Output this.addSlotToContainer(new Slot(inventory, 2, 231, 143)); // Fuel for (int i = 0; i < 3; i++) { for (int j = 0; j < 9; ++j) { this.addSlotToContainer(new Slot(playerInventory, j + i * 9 + 9, j * 18 + 8, i * 18 + 85)); } } for (int i = 0; i < 9; i++) { this.addSlotToContainer(new Slot(playerInventory, i, i * 18 + 8, 143)); } } public boolean canInteractWith(EntityPlayer par1EntityPlayer) { return this.lowerChestInventory.isUseableByPlayer(par1EntityPlayer); } @Override public ItemStack transferStackInSlot(EntityPlayer playerIn, int fromSlot) { ItemStack previous = null; Slot slot = (Slot) this.inventorySlots.get(fromSlot); if (slot != null && slot.getHasStack()) { ItemStack current = slot.getStack(); previous = current.copy(); if (fromSlot <= 3) { // From TE Inventory to Player Inventory if (!this.mergeItemStack(current, 3, 38, true)) return null; } else { // From Player Inventory to TE Inventory if (!this.mergeItemStack(current, 0, 2, false)) return null; } if (current.stackSize == 0) slot.putStack((ItemStack) null); else slot.onSlotChanged(); if (current.stackSize == previous.stackSize) return null; slot.onPickupFromSlot(playerIn, current); } return previous; } /** * Callback for when the crafting gui is closed. */ public void onContainerClosed(EntityPlayer par1EntityPlayer) { super.onContainerClosed(par1EntityPlayer); this.lowerChestInventory.closeInventory(par1EntityPlayer); } public IInventory func_85151_d() { return this.lowerChestInventory; } @Override public boolean canMergeSlot(ItemStack stack, Slot slotIn) { return super.canMergeSlot(stack, slotIn); } }
-
Player.setDead() makes the screen shake[SOLVED]
ThatCreepyUncle replied to ThatCreepyUncle's topic in Modder Support
Yes that has worked. Thank you so much -
I am making a mod called Medicraft. One feature is if you fall, you might break your leg(and get slowness). However if you fall and leg is already broken you have a chance of dying. However when I say player.setDead() the screen shakes until I do /kill in game! What do I do to stop this? Thanks for the help!
-
Player.openGUI() not calling the GuiHandler
ThatCreepyUncle replied to ThatCreepyUncle's topic in Modder Support
Thanks! -
I am working on a mod called StorageSolutions and I have 3 basic GUIs already working. However my 4th is not working. For some reason the player.openGUI() isn't opening the GUI. I do not see any errors in log, and I don't know what to do. BTW: when I was trying to figure it out, I added some prints to the console, mainly in the GUI Handler and Block class. Block Class: package com.thatcreepyuncle.storagesolutions.blocks; import java.util.Random; import com.thatcreepyuncle.storagesolutions.StorageSolutions; import com.thatcreepyuncle.storagesolutions.core.ModCreativeTabs; import com.thatcreepyuncle.storagesolutions.tileEntity.TileEntityCabinet; import com.thatcreepyuncle.storagesolutions.tileEntity.TileEntitySafe; import net.minecraft.block.Block; import net.minecraft.block.BlockContainer; import net.minecraft.block.material.Material; import net.minecraft.block.properties.PropertyDirection; import net.minecraft.block.state.BlockStateContainer; import net.minecraft.block.state.IBlockState; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.EnumBlockRenderType; import net.minecraft.util.EnumFacing; import net.minecraft.util.EnumHand; import net.minecraft.util.math.BlockPos; import net.minecraft.world.World; public class Safe extends BlockContainer { public static final PropertyDirection FACING = PropertyDirection.create("facing", EnumFacing.Plane.HORIZONTAL); private static String registryName = "safe"; public Safe() { super(Material.anvil); this.setRegistryName(registryName); System.out.println(registryName); this.setHardness(10); this.setUnlocalizedName(StorageSolutions.MODID + ":" + registryName); this.setCreativeTab(ModCreativeTabs.tabStorageSolutions); this.setDefaultState(blockState.getBaseState().withProperty(FACING, EnumFacing.NORTH)); } @Override public void onBlockAdded(World world, BlockPos pos, IBlockState state) { if (!world.isRemote) { Block blockNorth = world.getBlockState(pos.north()).getBlock(); Block blockSouth = world.getBlockState(pos.south()).getBlock(); Block blockWest = world.getBlockState(pos.west()).getBlock(); Block blockEast = world.getBlockState(pos.east()).getBlock(); EnumFacing facing = state.getValue(FACING); if (facing == EnumFacing.NORTH && blockNorth.isFullBlock(state) && !blockSouth.isFullBlock(state)) facing = EnumFacing.SOUTH; if (facing == EnumFacing.SOUTH && blockSouth.isFullBlock(state) && !blockNorth.isFullBlock(state)) facing = EnumFacing.NORTH; if (facing == EnumFacing.WEST && blockWest.isFullBlock(state) && !blockEast.isFullBlock(state)) facing = EnumFacing.EAST; if (facing == EnumFacing.EAST && blockEast.isFullBlock(state) && !blockWest.isFullBlock(state)) facing = EnumFacing.WEST; world.setBlockState(pos, state.withProperty(FACING, facing), 2); } } @Override public IBlockState onBlockPlaced(World world, BlockPos pos, EnumFacing facing, float hitX, float hitY, float hitZ, int meta, EntityLivingBase placer) { return getDefaultState().withProperty(FACING, placer.getHorizontalFacing().getOpposite()); } @Override public EnumBlockRenderType getRenderType(IBlockState state) { return EnumBlockRenderType.MODEL; } @Override public Item getItemDropped(IBlockState state, Random rand, int fortune) { return Item.getItemFromBlock(this); } @Override protected BlockStateContainer createBlockState() { return new BlockStateContainer(this, FACING); } @Override public IBlockState getStateFromMeta(int meta) { EnumFacing facing = EnumFacing.getFront(meta); if (facing.getAxis() == EnumFacing.Axis.Y) facing = EnumFacing.NORTH; return getDefaultState().withProperty(FACING, facing); } @Override public int getMetaFromState(IBlockState state) { return (state.getValue(FACING)).getIndex(); } @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 (!world.isRemote) { TileEntity tile_entity = world.getTileEntity(pos); System.out.println("CHECKING TILE ENTITY"); if (tile_entity instanceof TileEntitySafe) { System.out.println("OPENING GUI"); player.openGui(StorageSolutions.instance, 3, world, pos.getX(), pos.getY(), pos.getZ()); } } return true; } @Override public TileEntity createNewTileEntity(World worldIn, int meta) { return new TileEntitySafe(); } } GUI Handler: package com.thatcreepyuncle.storagesolutions.core; import com.thatcreepyuncle.storagesolutions.gui.SafeGUI; import com.thatcreepyuncle.storagesolutions.gui.SimpleCabinetGUI; import com.thatcreepyuncle.storagesolutions.gui.containers.CabinentContainer; import com.thatcreepyuncle.storagesolutions.gui.containers.SafeContainer; import com.thatcreepyuncle.storagesolutions.tileEntity.TileEntityCabinet; import com.thatcreepyuncle.storagesolutions.tileEntity.TileEntitySafe; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.math.BlockPos; import net.minecraft.world.World; import net.minecraftforge.fml.common.network.IGuiHandler; public class GuiHandler implements IGuiHandler { @Override public Object getServerGuiElement(int id, EntityPlayer player, World world, int x, int y, int z) { TileEntity tile_entity = world.getTileEntity(new BlockPos(x, y, z)); if (id == 0) { return new CabinentContainer(player.inventory, (TileEntityCabinet) tile_entity); } if(id == 1){ return new CabinentContainer(player.inventory, (TileEntityCabinet) tile_entity); } if(id == 2){ return new CabinentContainer(player.inventory, (TileEntityCabinet) tile_entity); } if(id == 2){ return new SafeContainer(player.inventory, (TileEntitySafe) tile_entity); } return null; } @Override public Object getClientGuiElement(int id, EntityPlayer player, World world, int x, int y, int z) { TileEntity tile_entity = world.getTileEntity(new BlockPos(x, y, z)); System.out.println("Opening: " + id); if (id == 0) { return new SimpleCabinetGUI(player.inventory, (TileEntityCabinet) tile_entity, "spruce_cabinet", 175, 165); } if(id == 1){ return new SimpleCabinetGUI(player.inventory, (TileEntityCabinet) tile_entity, "oak_cabinet", 175, 165); } if(id == 2){ return new SimpleCabinetGUI(player.inventory, (TileEntityCabinet) tile_entity, "iron_cabinet", 175, 165); } if(id == 3){ System.out.println("Displaying Safe"); return new SafeGUI(player.inventory, (TileEntitySafe) tile_entity); } return null; } } Console: 2016-06-02 15:30:05,833 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream 2016-06-02 15:30:05,836 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream [15:30:05] [main/INFO] [GradleStart]: Extra: [] [15:30:05] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/Noah/.gradle/caches/minecraft/assets, --assetIndex, 1.9, --accessToken{REDACTED}, --version, 1.9, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker] [15:30:06] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [15:30:06] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [15:30:06] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker [15:30:06] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker [15:30:06] [main/INFO] [FML]: Forge Mod Loader version 12.16.1.1887 for Minecraft 1.9 loading [15:30:06] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_65, running on Windows 10:amd64:10.0, installed at C:\Program Files\Java\jdk1.8.0_66\jre [15:30:06] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [15:30:06] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker [15:30:06] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin [15:30:06] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin [15:30:06] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [15:30:06] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [15:30:06] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [15:30:06] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [15:30:06] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [15:30:06] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [15:30:06] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work! [15:30:08] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [15:30:08] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [15:30:08] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [15:30:09] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [15:30:09] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker [15:30:09] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker [15:30:09] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} 2016-06-02 15:30:10,327 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream 2016-06-02 15:30:10,372 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream 2016-06-02 15:30:10,376 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream [15:30:10] [Client thread/INFO]: Setting user: Player129 [15:30:15] [Client thread/INFO]: LWJGL Version: 2.9.4 [15:30:16] [Client thread/INFO] [sTDOUT]: [net.minecraftforge.fml.client.SplashProgress:start:200]: ---- Minecraft Crash Report ---- // Would you like a cupcake? Time: 6/2/16 3:30 PM Description: Loading screen debug info This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details: Minecraft Version: 1.9 Operating System: Windows 10 (amd64) version 10.0 Java Version: 1.8.0_65, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 772617088 bytes (736 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 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: 'ATI Technologies Inc.' Version: '4.5.13416 Compatibility Profile Context 15.300.1025.1001' Renderer: 'AMD Radeon R7 200 Series' [15:30:16] [Client thread/INFO] [FML]: MinecraftForge v12.16.1.1887 Initialized [15:30:16] [Client thread/INFO] [FML]: Replaced 232 ore recipes [15:30:17] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer [15:30:17] [Client thread/INFO] [FML]: Searching C:\Users\Noah\Desktop\StorageSolutions\run\mods for mods [15:30:19] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load [15:30:19] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, StorageSolutions] at CLIENT [15:30:19] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, StorageSolutions] at SERVER [15:30:19] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Storage Solutions [15:30:19] [Client thread/INFO] [FML]: Processing ObjectHolder annotations [15:30:19] [Client thread/INFO] [FML]: Found 418 ObjectHolder annotations [15:30:20] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations [15:30:20] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations [15:30:20] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0 [15:30:20] [Forge Version Check/INFO] [ForgeVersionCheck]: [Forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json [15:30:20] [Client thread/INFO] [sTDOUT]: [com.thatcreepyuncle.storagesolutions.blocks.cabinets.Cabinet:<init>:37]: spruce_cabinet [15:30:20] [Client thread/INFO] [sTDOUT]: [com.thatcreepyuncle.storagesolutions.blocks.cabinets.Cabinet:<init>:37]: oak_cabinet [15:30:20] [Client thread/INFO] [sTDOUT]: [com.thatcreepyuncle.storagesolutions.blocks.cabinets.Cabinet:<init>:37]: iron_cabinet [15:30:20] [Client thread/INFO] [sTDOUT]: [com.thatcreepyuncle.storagesolutions.blocks.Safe:<init>:35]: safe [15:30:20] [Client thread/INFO] [FML]: Applying holder lookups [15:30:20] [Client thread/INFO] [FML]: Holder lookups applied [15:30:20] [Client thread/INFO] [FML]: Injecting itemstacks [15:30:20] [Client thread/INFO] [FML]: Itemstack injection complete [15:30:20] [Forge Version Check/INFO] [ForgeVersionCheck]: [Forge] Found status: UP_TO_DATE Target: null [15:30:24] [sound Library Loader/INFO]: Starting up SoundSystem... [15:30:25] [Thread-8/INFO]: Initializing LWJGL OpenAL [15:30:25] [Thread-8/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [15:30:25] [Thread-8/INFO]: OpenAL initialized. [15:30:25] [sound Library Loader/INFO]: Sound engine started [15:30:31] [Client thread/INFO] [FML]: Max texture size: 16384 [15:30:31] [Client thread/INFO]: Created: 16x16 textures-atlas [15:30:33] [Client thread/INFO] [FML]: Injecting itemstacks [15:30:33] [Client thread/INFO] [FML]: Itemstack injection complete [15:30:33] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods [15:30:33] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Storage Solutions [15:30:38] [Client thread/INFO]: SoundSystem shutting down... [15:30:38] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com [15:30:38] [sound Library Loader/INFO]: Starting up SoundSystem... [15:30:38] [Thread-10/INFO]: Initializing LWJGL OpenAL [15:30:38] [Thread-10/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [15:30:38] [Thread-10/INFO]: OpenAL initialized. [15:30:39] [sound Library Loader/INFO]: Sound engine started [15:30:44] [Client thread/INFO] [FML]: Max texture size: 16384 [15:30:44] [Client thread/INFO]: Created: 1024x512 textures-atlas [15:30:46] [Realms Notification Availability checker #1/INFO]: Could not authorize you against Realms server: Invalid session id [15:30:50] [server thread/INFO]: Starting integrated minecraft server version 1.9 [15:30:50] [server thread/INFO]: Generating keypair [15:30:51] [server thread/INFO] [FML]: Injecting existing block and item data into this server instance [15:30:51] [server thread/INFO] [FML]: Applying holder lookups [15:30:51] [server thread/INFO] [FML]: Holder lookups applied [15:30:51] [server thread/INFO] [FML]: Loading dimension 0 (Dev World) (net.minecraft.server.integrated.IntegratedServer@20363039) [15:30:51] [server thread/INFO] [FML]: Loading dimension 1 (Dev World) (net.minecraft.server.integrated.IntegratedServer@20363039) [15:30:51] [server thread/INFO] [FML]: Loading dimension -1 (Dev World) (net.minecraft.server.integrated.IntegratedServer@20363039) [15:30:51] [server thread/INFO]: Preparing start region for level 0 [15:30:52] [server thread/INFO]: Preparing spawn area: 7% [15:30:53] [server thread/INFO]: Preparing spawn area: 96% [15:30:54] [server thread/INFO]: Changing view distance to 5, from 10 [15:30:55] [Netty Local Client IO #0/INFO] [FML]: Server protocol version 2 [15:30:55] [Netty Server IO #1/INFO] [FML]: Client protocol version 2 [15:30:55] [Netty Server IO #1/INFO] [FML]: Client attempting to join with 4 mods : [email protected],[email protected],[email protected],[email protected] [15:30:55] [Netty Local Client IO #0/INFO] [FML]: [Netty Local Client IO #0] Client side modded connection established [15:30:55] [server thread/INFO] [FML]: [server thread] Server side modded connection established [15:30:55] [server thread/INFO]: Player129[local:E:16e723cf] logged in with entity id 262 at (-215.83490069548589, 64.0, 388.523279551267) [15:30:55] [server thread/INFO]: Player129 joined the game [15:30:56] [server thread/INFO]: Saving and pausing game... [15:30:56] [server thread/INFO]: Saving chunks for level 'Dev World'/Overworld [15:30:56] [server thread/INFO]: Saving chunks for level 'Dev World'/Nether [15:30:56] [server thread/INFO]: Saving chunks for level 'Dev World'/The End [15:30:56] [pool-2-thread-1/WARN]: Couldn't look up profile properties for com.mojang.authlib.GameProfile@62837e6d[id=3584c7cd-614b-3687-b1ad-b239e7a37bd8,name=Player129,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.getProfileProperties(Minecraft.java:3038) [Minecraft.class:?] at net.minecraft.client.resources.SkinManager$3.run(SkinManager.java:130) [skinManager$3.class:?] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_65] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_65] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_65] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_65] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_65] [15:30:59] [server thread/INFO]: Saving and pausing game... [15:30:59] [server thread/INFO]: Saving chunks for level 'Dev World'/Overworld [15:30:59] [server thread/INFO]: Saving chunks for level 'Dev World'/Nether [15:30:59] [server thread/INFO]: Saving chunks for level 'Dev World'/The End [15:31:45] [server thread/INFO] [sTDOUT]: [com.thatcreepyuncle.storagesolutions.blocks.Safe:onBlockActivated:106]: CHECKING TILE ENTITY [15:31:45] [server thread/INFO] [sTDOUT]: [com.thatcreepyuncle.storagesolutions.blocks.Safe:onBlockActivated:108]: OPENING GUI [15:31:47] [server thread/INFO]: Saving and pausing game... [15:31:47] [server thread/INFO]: Saving chunks for level 'Dev World'/Overworld [15:31:47] [server thread/INFO]: Saving chunks for level 'Dev World'/Nether [15:31:47] [server thread/INFO]: Saving chunks for level 'Dev World'/The End [15:31:58] [server thread/INFO]: Saving and pausing game... [15:31:58] [server thread/INFO]: Saving chunks for level 'Dev World'/Overworld [15:31:58] [server thread/INFO]: Saving chunks for level 'Dev World'/Nether [15:31:58] [server thread/INFO]: Saving chunks for level 'Dev World'/The End [15:31:59] [server thread/INFO]: Stopping server [15:31:59] [server thread/INFO]: Saving players [15:31:59] [server thread/INFO]: Saving worlds [15:31:59] [server thread/INFO]: Saving chunks for level 'Dev World'/Overworld [15:31:59] [server thread/INFO]: Saving chunks for level 'Dev World'/Nether [15:31:59] [server thread/INFO]: Saving chunks for level 'Dev World'/The End [15:31:59] [server thread/INFO] [FML]: Unloading dimension 0 [15:31:59] [server thread/INFO] [FML]: Unloading dimension -1 [15:31:59] [server thread/INFO] [FML]: Unloading dimension 1 [15:31:59] [server thread/INFO] [FML]: Applying holder lookups [15:31:59] [server thread/INFO] [FML]: Holder lookups applied [15:32:00] [Client thread/INFO]: Stopping! [15:32:00] [Client thread/INFO]: SoundSystem shutting down... [15:32:01] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release Thanks for any suggestions given!
-
I am trying to create an Block called Silica(silica_ore) and it showing up in the world but the texture is the purple/black box while in my hand. However there is no error in the Console! Thank You! ModBlock Init Method: public static void init() { BasicElementBlock silica_ore = new BasicElementBlock(Material.iron, "silica_ore"); GameRegistry.register(silica_ore); GameRegistry.register(new ItemBlock(silica_ore).setRegistryName(silica_ore.getRegistryName())); } Basic Element Block Class: public class BasicElementBlock extends Block { public BasicElementBlock(Material materialIn, String registryName) { super(materialIn); this.setRegistryName(registryName); System.out.println(registryName); this.setUnlocalizedName(BetterElementsMod.MODID+":"+registryName); this.setCreativeTab(CreativeTabs.tabBlock); } } Blockstate JSON: { "variants": { "normal": { "model": "btrel:silica_ore" } } } Block Model: { "parent": "block/cube_all", "textures": { "all": "btrel:block/silica" } } Item Model: { "parent": "btrel:block/silica_ore" }