Posted February 10, 201411 yr Hello everybody.... I have a small problem.... evertime if I try to open the GUI of my custum furnace minecraft crashes! I have been searching for the error for hours now and I decided to ask the people here If they have an idea what's wrong! I think it has something to do with the openGui at onBlockActivated in the CustumFurnace class (here: Grinder.java) Thanks for your help! The Console Error Log: [22:48:03] [main/INFO]: Setting user: Player777 [22:48:03] [Client thread/INFO]: LWJGL Version: 2.9.0 [22:48:03] [Client thread/ERROR]: Couldn't set icon javax.imageio.IIOException: Can't read input file! at javax.imageio.ImageIO.read(Unknown Source) ~[?:1.7.0_21] at net.minecraft.client.Minecraft.readImage(Minecraft.java:680) ~[Minecraft.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:509) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:931) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_21] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_21] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_21] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_21] at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?] [22:48:06] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization [22:48:06] [Client thread/INFO] [FML]: MinecraftForge v10.12.0.1025 Initialized [22:48:06] [Client thread/INFO] [FML]: Replaced 128 ore recipies [22:48:06] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization [22:48:06] [Client thread/INFO] [FML]: Searching D:\Desktop\Usage\Minecraft\Moding\RecipesMod\Update1.7.2\RecipesMod2\mods for mods [22:48:07] [Client thread/ERROR] [FML]: FML has detected a mod that is using a package name based on 'net.minecraft.src' : net.minecraft.src.FMLRenderAccessLibrary. This is generally a severe programming error. There should be no mod code in the minecraft namespace. MOVE YOUR MOD! If you're in eclipse, select your source code and 'refactor' it into a new package. Go on. DO IT NOW! [22:48:08] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load [22:48:08] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:MoreReipesMod [22:48:08] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0 [22:48:08] [Client thread/WARN]: Adding duplicate key 'MODID:Butter' to registry Starting up SoundSystem... Initializing LWJGL OpenAL (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) OpenAL initialized. [22:48:09] [Client thread/ERROR]: Using missing texture, unable to load morerecipes:textures/blocks/tomatos_6.png java.io.FileNotFoundException: morerecipes:textures/blocks/tomatos_6.png at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:65) ~[FallbackResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[simpleReloadableResourceManager.class:?] at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:128) [TextureMap.class:?] at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:93) [TextureMap.class:?] at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?] at net.minecraft.client.renderer.texture.TextureManager.loadTickableTexture(TextureManager.java:71) [TextureManager.class:?] at net.minecraft.client.renderer.texture.TextureManager.loadTextureMap(TextureManager.java:58) [TextureManager.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:620) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:931) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_21] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_21] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_21] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_21] at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?] [22:48:09] [Client thread/ERROR]: Using missing texture, unable to load morerecipes:textures/blocks/tomatos_7.png java.io.FileNotFoundException: morerecipes:textures/blocks/tomatos_7.png at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:65) ~[FallbackResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[simpleReloadableResourceManager.class:?] at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:128) [TextureMap.class:?] at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:93) [TextureMap.class:?] at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?] at net.minecraft.client.renderer.texture.TextureManager.loadTickableTexture(TextureManager.java:71) [TextureManager.class:?] at net.minecraft.client.renderer.texture.TextureManager.loadTextureMap(TextureManager.java:58) [TextureManager.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:620) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:931) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_21] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_21] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_21] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_21] at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?] [22:48:09] [Client thread/ERROR]: Using missing texture, unable to load morerecipes:textures/blocks/tomatos_4.png java.io.FileNotFoundException: morerecipes:textures/blocks/tomatos_4.png at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:65) ~[FallbackResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[simpleReloadableResourceManager.class:?] at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:128) [TextureMap.class:?] at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:93) [TextureMap.class:?] at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?] at net.minecraft.client.renderer.texture.TextureManager.loadTickableTexture(TextureManager.java:71) [TextureManager.class:?] at net.minecraft.client.renderer.texture.TextureManager.loadTextureMap(TextureManager.java:58) [TextureManager.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:620) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:931) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_21] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_21] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_21] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_21] at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?] [22:48:09] [Client thread/ERROR]: Using missing texture, unable to load morerecipes:textures/blocks/tomatos_5.png java.io.FileNotFoundException: morerecipes:textures/blocks/tomatos_5.png at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:65) ~[FallbackResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[simpleReloadableResourceManager.class:?] at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:128) [TextureMap.class:?] at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:93) [TextureMap.class:?] at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?] at net.minecraft.client.renderer.texture.TextureManager.loadTickableTexture(TextureManager.java:71) [TextureManager.class:?] at net.minecraft.client.renderer.texture.TextureManager.loadTextureMap(TextureManager.java:58) [TextureManager.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:620) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:931) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_21] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_21] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_21] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_21] at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?] [22:48:09] [Client thread/ERROR]: Using missing texture, unable to load minecraft:textures/blocks/grinder_side.png java.io.FileNotFoundException: minecraft:textures/blocks/grinder_side.png at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:65) ~[FallbackResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[simpleReloadableResourceManager.class:?] at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:128) [TextureMap.class:?] at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:93) [TextureMap.class:?] at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?] at net.minecraft.client.renderer.texture.TextureManager.loadTickableTexture(TextureManager.java:71) [TextureManager.class:?] at net.minecraft.client.renderer.texture.TextureManager.loadTextureMap(TextureManager.java:58) [TextureManager.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:620) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:931) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_21] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_21] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_21] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_21] at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?] [22:48:09] [sound Library Loader/INFO]: Sound engine started [22:48:09] [Client thread/ERROR]: Using missing texture, unable to load minecraft:textures/blocks/grinder_top.png java.io.FileNotFoundException: minecraft:textures/blocks/grinder_top.png at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:65) ~[FallbackResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[simpleReloadableResourceManager.class:?] at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:128) [TextureMap.class:?] at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:93) [TextureMap.class:?] at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?] at net.minecraft.client.renderer.texture.TextureManager.loadTickableTexture(TextureManager.java:71) [TextureManager.class:?] at net.minecraft.client.renderer.texture.TextureManager.loadTextureMap(TextureManager.java:58) [TextureManager.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:620) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:931) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_21] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_21] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_21] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_21] at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?] [22:48:09] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas [22:48:10] [Client thread/INFO]: Created: 256x256 textures/items-atlas [22:48:10] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods [22:48:11] [MCO Availability Checker #1/ERROR]: Couldn't connect to Realms [22:48:15] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:music.menu [22:48:21] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:gui.button.press [22:48:21] [server thread/INFO]: Starting integrated minecraft server version 1.7.2 [22:48:21] [server thread/INFO]: Generating keypair [22:48:22] [server thread/INFO] [FML]: Injecting new block and item data into this server instance [22:48:22] [server thread/INFO] [FML]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@2c5cab9e) [22:48:22] [server thread/INFO] [FML]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@2c5cab9e) [22:48:22] [server thread/INFO] [FML]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@2c5cab9e) [22:48:22] [server thread/INFO]: Preparing start region for level 0 [22:48:23] [Netty Client IO #0/INFO] [FML]: Server protocol version 1 [22:48:23] [Netty IO #1/INFO] [FML]: Client protocol version 1 [22:48:23] [Netty IO #1/INFO] [FML]: Client attempting to join with 4 mods : MODID@VERSION,[email protected],[email protected],[email protected] [22:48:23] [Netty IO #1/INFO] [FML]: Attempting connection with missing mods [] at CLIENT [22:48:23] [Netty Client IO #0/INFO] [FML]: Attempting connection with missing mods [] at SERVER [22:48:23] [server thread/INFO] [FML]: [server thread] Server side modded connection established [22:48:23] [Client thread/INFO] [FML]: [Client thread] Client side modded connection established [22:48:23] [server thread/INFO]: Player777[local:E:ae69c570] logged in with entity id 87 at (559.2880203768701, 64.0, -524.9512553324255) [22:48:23] [server thread/INFO]: Player777 joined the game [22:48:24] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:mob.zombie.hurt [22:48:25] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:mob.zombie.say [22:48:25] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:mob.zombie.hurt [22:48:25] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:mob.pig.say [22:48:26] [server thread/INFO]: Stopping server [22:48:26] [server thread/INFO]: Saving players [22:48:26] [server thread/INFO]: Saving worlds [22:48:26] [server thread/INFO]: Saving chunks for level 'New World'/Overworld [22:48:26] [server thread/INFO]: Saving chunks for level 'New World'/Nether [22:48:26] [server thread/INFO]: Saving chunks for level 'New World'/The End [22:48:26] [server thread/INFO] [FML]: Unloading dimension 0 [22:48:26] [server thread/INFO] [FML]: Unloading dimension -1 [22:48:26] [server thread/INFO] [FML]: Unloading dimension 1 [22:48:26] [Client thread/FATAL]: Unreported exception thrown! java.lang.NullPointerException at cpw.mods.fml.common.network.NetworkRegistry.getLocalGuiContainer(NetworkRegistry.java:263) ~[NetworkRegistry.class:?] at cpw.mods.fml.common.network.internal.FMLNetworkHandler.openGui(FMLNetworkHandler.java:93) ~[FMLNetworkHandler.class:?] at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2476) ~[EntityPlayer.class:?] at breezertwo.morerecipes.src.Grinder.onBlockActivated(Grinder.java:121) ~[Grinder.class:?] at net.minecraft.client.multiplayer.PlayerControllerMP.onPlayerRightClick(PlayerControllerMP.java:398) ~[PlayerControllerMP.class:?] at net.minecraft.client.Minecraft.func_147121_ag(Minecraft.java:1537) ~[Minecraft.class:?] at net.minecraft.client.Minecraft.runTick(Minecraft.java:2050) ~[Minecraft.class:?] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1035) ~[Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:951) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_21] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_21] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_21] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_21] at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?] ---- Minecraft Crash Report ---- // I just don't know what went wrong Time: 10.02.14 22:48 Description: Unexpected error java.lang.NullPointerException: Unexpected error at cpw.mods.fml.common.network.NetworkRegistry.getLocalGuiContainer(NetworkRegistry.java:263) at cpw.mods.fml.common.network.internal.FMLNetworkHandler.openGui(FMLNetworkHandler.java:93) at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2476) at breezertwo.morerecipes.src.Grinder.onBlockActivated(Grinder.java:121) at net.minecraft.client.multiplayer.PlayerControllerMP.onPlayerRightClick(PlayerControllerMP.java:398) at net.minecraft.client.Minecraft.func_147121_ag(Minecraft.java:1537) at net.minecraft.client.Minecraft.runTick(Minecraft.java:2050) at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1035) at net.minecraft.client.Minecraft.run(Minecraft.java:951) at net.minecraft.client.main.Main.main(Main.java:112) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Stacktrace: at cpw.mods.fml.common.network.NetworkRegistry.getLocalGuiContainer(NetworkRegistry.java:263) at cpw.mods.fml.common.network.internal.FMLNetworkHandler.openGui(FMLNetworkHandler.java:93) at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2476) at breezertwo.morerecipes.src.Grinder.onBlockActivated(Grinder.java:121) at net.minecraft.client.multiplayer.PlayerControllerMP.onPlayerRightClick(PlayerControllerMP.java:398) at net.minecraft.client.Minecraft.func_147121_ag(Minecraft.java:1537) -- Affected level -- Details: Level name: MpServer All players: 1 total; [EntityClientPlayerMP['Player777'/87, l='MpServer', x=559,29, y=65,62, z=-524,95]] Chunk stats: MultiplayerChunkCache: 225, 225 Level seed: 0 Level generator: ID 00 - default, ver 1. Features enabled: false Level generator options: Level spawn location: World: (183,64,347), Chunk: (at 7,4,11 in 11,21; contains blocks 176,0,336 to 191,255,351), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511) Level time: 64007 game time, 1821 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: 108 total; [EntityCreeper['Creeper'/262, l='MpServer', x=633,69, y=18,00, z=-604,66], EntitySkeleton['Skeleton'/263, l='MpServer', x=636,69, y=18,08, z=-594,40], EntityBat['Bat'/264, l='MpServer', x=639,00, y=20,10, z=-582,66], EntityPig['Pig'/265, l='MpServer', x=630,09, y=64,00, z=-577,91], EntityClientPlayerMP['Player777'/87, l='MpServer', x=559,29, y=65,62, z=-524,95], EntityZombie['Zombie'/110, l='MpServer', x=491,97, y=52,00, z=-582,69], EntitySkeleton['Skeleton'/111, l='MpServer', x=485,34, y=51,00, z=-586,09], EntityZombie['Zombie'/108, l='MpServer', x=492,44, y=47,00, z=-593,13], EntityPig['Pig'/109, l='MpServer', x=480,81, y=63,00, z=-579,41], EntitySkeleton['Skeleton'/117, l='MpServer', x=491,50, y=41,00, z=-501,50], EntityPig['Pig'/116, l='MpServer', x=481,97, y=64,00, z=-556,94], EntityPig['Pig'/115, l='MpServer', x=493,13, y=64,00, z=-559,03], EntityPig['Pig'/114, l='MpServer', x=483,97, y=64,00, z=-566,06], EntityPig['Pig'/113, l='MpServer', x=489,47, y=65,00, z=-564,56], EntityPig['Pig'/112, l='MpServer', x=483,22, y=63,00, z=-587,91], EntityBat['Bat'/127, l='MpServer', x=496,33, y=31,92, z=-483,77], EntityZombie['Zombie'/126, l='MpServer', x=506,69, y=31,00, z=-488,94], EntityZombie['Zombie'/125, l='MpServer', x=511,13, y=12,00, z=-517,41], EntitySpider['Spider'/124, l='MpServer', x=503,41, y=11,00, z=-515,19], EntityPig['Pig'/123, l='MpServer', x=511,44, y=68,00, z=-581,16], EntityPig['Pig'/137, l='MpServer', x=514,19, y=63,00, z=-561,59], EntityPig['Pig'/136, l='MpServer', x=522,66, y=63,00, z=-564,97], EntityPig['Pig'/139, l='MpServer', x=512,51, y=64,00, z=-556,30], EntityPig['Pig'/138, l='MpServer', x=524,28, y=69,00, z=-573,66], EntityZombie['Zombie'/141, l='MpServer', x=521,50, y=16,00, z=-519,50], EntityZombie['Zombie'/140, l='MpServer', x=513,03, y=12,00, z=-514,50], EntityPig['Pig'/131, l='MpServer', x=519,31, y=71,00, z=-597,53], EntityPig['Pig'/130, l='MpServer', x=524,50, y=69,00, z=-594,69], EntityPig['Pig'/133, l='MpServer', x=522,31, y=70,00, z=-593,47], EntityPig['Pig'/132, l='MpServer', x=524,47, y=68,00, z=-601,53], EntityPig['Pig'/135, l='MpServer', x=527,72, y=70,00, z=-589,81], EntityZombie['Zombie'/134, l='MpServer', x=516,22, y=35,00, z=-581,69], EntityPig['Pig'/152, l='MpServer', x=541,31, y=64,00, z=-553,72], EntityBat['Bat'/153, l='MpServer', x=530,25, y=19,10, z=-496,59], EntitySkeleton['Skeleton'/154, l='MpServer', x=543,41, y=17,00, z=-482,56], EntitySkeleton['Skeleton'/155, l='MpServer', x=541,38, y=17,00, z=-468,50], EntityBat['Bat'/156, l='MpServer', x=538,75, y=19,10, z=-467,53], EntityZombie['Zombie'/158, l='MpServer', x=534,94, y=18,00, z=-456,38], EntityCreeper['Creeper'/159, l='MpServer', x=534,50, y=24,00, z=-453,50], EntityPig['Pig'/148, l='MpServer', x=535,88, y=69,00, z=-594,47], EntityPig['Pig'/149, l='MpServer', x=538,88, y=68,00, z=-595,63], EntityPig['Pig'/150, l='MpServer', x=531,50, y=73,00, z=-573,50], EntityPig['Pig'/151, l='MpServer', x=528,84, y=64,00, z=-565,50], EntityBat['Bat'/171, l='MpServer', x=559,75, y=36,89, z=-584,65], EntityPig['Pig'/175, l='MpServer', x=545,97, y=65,00, z=-552,06], EntitySquid['Squid'/174, l='MpServer', x=559,52, y=54,42, z=-558,53], EntityCreeper['Creeper'/173, l='MpServer', x=554,03, y=44,00, z=-552,41], EntityBat['Bat'/172, l='MpServer', x=555,53, y=38,05, z=-564,75], EntityBat['Bat'/162, l='MpServer', x=541,66, y=24,70, z=-449,25], EntityBat['Bat'/161, l='MpServer', x=543,56, y=31,10, z=-453,09], EntityBat['Bat'/160, l='MpServer', x=543,59, y=30,10, z=-451,56], EntitySkeleton['Skeleton'/186, l='MpServer', x=548,31, y=32,00, z=-464,17], EntityCreeper['Creeper'/184, l='MpServer', x=546,03, y=22,00, z=-451,59], EntityBat['Bat'/185, l='MpServer', x=545,22, y=20,78, z=-457,44], EntitySkeleton['Skeleton'/190, l='MpServer', x=567,44, y=32,00, z=-548,94], EntityZombie['Zombie'/191, l='MpServer', x=566,03, y=33,00, z=-559,41], EntityCreeper['Creeper'/188, l='MpServer', x=575,50, y=31,00, z=-600,50], EntitySkeleton['Skeleton'/189, l='MpServer', x=567,94, y=32,00, z=-552,53], EntityZombie['Zombie'/178, l='MpServer', x=557,50, y=33,00, z=-505,88], EntityBat['Bat'/179, l='MpServer', x=560,16, y=35,18, z=-501,50], EntityPig['Pig'/176, l='MpServer', x=554,81, y=64,00, z=-551,13], EntityZombie['Zombie'/177, l='MpServer', x=558,59, y=56,00, z=-535,69], EntityBat['Bat'/182, l='MpServer', x=552,28, y=34,98, z=-466,84], EntitySkeleton['Skeleton'/183, l='MpServer', x=550,50, y=23,00, z=-456,50], EntitySkeleton['Skeleton'/180, l='MpServer', x=555,25, y=32,00, z=-485,69], EntitySkeleton['Skeleton'/181, l='MpServer', x=553,50, y=18,00, z=-474,50], EntityWitch['Witch'/205, l='MpServer', x=582,22, y=45,00, z=-563,28], EntityCreeper['Creeper'/204, l='MpServer', x=577,06, y=16,00, z=-559,50], EntityBat['Bat'/206, l='MpServer', x=576,66, y=39,10, z=-493,91], EntityZombie['Zombie'/201, l='MpServer', x=586,53, y=22,00, z=-597,97], EntityCreeper['Creeper'/203, l='MpServer', x=581,50, y=84,00, z=-577,28], EntityCreeper['Creeper'/202, l='MpServer', x=591,50, y=29,00, z=-581,97], EntityCreeper['Creeper'/197, l='MpServer', x=560,31, y=35,00, z=-498,31], EntitySpider['Spider'/196, l='MpServer', x=561,72, y=35,64, z=-496,72], EntityPig['Pig'/193, l='MpServer', x=575,06, y=63,00, z=-533,06], EntityBat['Bat'/192, l='MpServer', x=569,44, y=46,10, z=-543,00], EntityZombie['Zombie'/195, l='MpServer', x=562,69, y=36,00, z=-497,98], EntityPig['Pig'/194, l='MpServer', x=563,91, y=64,00, z=-524,94], EntitySpider['Spider'/220, l='MpServer', x=603,22, y=23,00, z=-565,66], EntityZombie['Zombie'/221, l='MpServer', x=603,53, y=42,00, z=-570,97], EntityZombie['Zombie'/222, l='MpServer', x=597,34, y=42,00, z=-570,66], EntityCreeper['Creeper'/223, l='MpServer', x=603,50, y=82,00, z=-563,50], EntitySkeleton['Skeleton'/218, l='MpServer', x=599,70, y=25,00, z=-602,31], EntityZombie['Zombie'/219, l='MpServer', x=607,75, y=25,00, z=-586,16], EntityZombie['Zombie'/238, l='MpServer', x=614,00, y=26,00, z=-594,44], EntityCreeper['Creeper'/237, l='MpServer', x=621,13, y=23,00, z=-601,63], EntitySkeleton['Skeleton'/231, l='MpServer', x=604,09, y=33,00, z=-482,41], EntitySkeleton['Skeleton'/230, l='MpServer', x=605,47, y=34,00, z=-489,38], EntitySquid['Squid'/229, l='MpServer', x=598,46, y=61,09, z=-501,75], EntitySquid['Squid'/228, l='MpServer', x=597,49, y=61,40, z=-503,90], EntitySquid['Squid'/227, l='MpServer', x=596,16, y=62,00, z=-506,68], EntitySquid['Squid'/226, l='MpServer', x=597,29, y=61,00, z=-502,75], EntitySpider['Spider'/225, l='MpServer', x=604,59, y=28,00, z=-501,34], EntityCreeper['Creeper'/224, l='MpServer', x=592,00, y=46,00, z=-513,63], EntityPig['Pig'/252, l='MpServer', x=616,50, y=64,00, z=-524,50], EntitySkeleton['Skeleton'/253, l='MpServer', x=608,56, y=34,00, z=-493,78], EntityPig['Pig'/250, l='MpServer', x=618,50, y=63,00, z=-529,50], EntityPig['Pig'/251, l='MpServer', x=616,50, y=63,00, z=-525,50], EntityCreeper['Creeper'/248, l='MpServer', x=609,00, y=28,00, z=-531,50], EntityBat['Bat'/249, l='MpServer', x=611,25, y=41,98, z=-524,63], EntityPig['Pig'/246, l='MpServer', x=623,91, y=63,00, z=-558,25], EntitySkeleton['Skeleton'/247, l='MpServer', x=615,70, y=11,33, z=-537,30], EntitySkeleton['Skeleton'/244, l='MpServer', x=612,84, y=20,00, z=-556,53], EntityBat['Bat'/245, l='MpServer', x=615,44, y=19,32, z=-555,22], EntityPig['Pig'/242, l='MpServer', x=623,78, y=63,00, z=-560,13], EntityPig['Pig'/243, l='MpServer', x=622,91, y=64,00, z=-571,13], EntityZombie['Zombie'/240, l='MpServer', x=617,50, y=28,00, z=-580,06], EntitySpider['Spider'/241, l='MpServer', x=611,30, y=21,14, z=-561,28]] Retry entities: 0 total; [] Server brand: fml,forge Server type: Integrated singleplayer server Stacktrace: at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:418) at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2556) at net.minecraft.client.Minecraft.run(Minecraft.java:980) at net.minecraft.client.main.Main.main(Main.java:112) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) -- System Details -- Details: Minecraft Version: 1.7.2 Operating System: Windows 8 (amd64) version 6.2 Java Version: 1.7.0_21, Oracle Corporation Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 201689160 bytes (192 MB) / 724434944 bytes (690 MB) up to 1884684288 bytes (1797 MB) JVM Flags: 0 total; AABB Pool Size: 17299 (968744 bytes; 0 MB) allocated, 2 (112 bytes; 0 MB) used IntCache: cache: 0, tcache: 0, allocated: 12, tallocated: 94 FML: MCP v9.01-pre FML v7.2.116.1025 Minecraft Forge 10.12.0.1025 4 mods loaded, 4 mods active mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available FML{7.2.116.1025} [Forge Mod Loader] (forgeSrc-1.7.2-10.12.0.1025.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available Forge{10.12.0.1025} [Minecraft Forge] (forgeSrc-1.7.2-10.12.0.1025.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available MODID{VERSION} [MoreReipesMod] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available Launched Version: 1.7.2 LWJGL: 2.9.0 OpenGL: GeForce GTX 660M/PCIe/SSE2 GL version 4.3.0, NVIDIA Corporation Is Modded: Definitely; Client brand changed to 'fml,forge' Type: Client (map_client.txt) Resource Packs: [] Current Language: ~~ERROR~~ NullPointerException: null Profiler Position: N/A (disabled) Vec3 Pool Size: 5307 (297192 bytes; 0 MB) allocated, 23 (1288 bytes; 0 MB) used Anisotropic Filtering: Off (1) #@!@# Game crashed! Crash report saved to: #@!@# D:\Desktop\Usage\Minecraft\Moding\RecipesMod\Update1.7.2\RecipesMod2\.\crash-reports\crash-2014-02-10_22.48.26-client.txt AL lib: (EE) alc_cleanup: 1 device not closed The CustumFurnace Class (here: Grinder.java): package breezertwo.morerecipes.src; import breezertwo.morerecipes.src.grinder.TileEntityGrinder; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import java.util.Random; import net.minecraft.block.Block; import net.minecraft.block.BlockContainer; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.item.EntityItem; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.init.Blocks; import net.minecraft.inventory.Container; import net.minecraft.inventory.IInventory; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.IIcon; import net.minecraft.util.MathHelper; import net.minecraft.world.World; public class Grinder extends BlockContainer { private final Random field_149933_a = new Random(); private final boolean field_149932_b; private static boolean field_149934_M; @SideOnly(Side.CLIENT) private IIcon field_149935_N; @SideOnly(Side.CLIENT) private IIcon field_149936_O; protected Grinder(boolean p_i45407_1_) { super(Material.rock); this.field_149932_b = p_i45407_1_; } public Item getItemDropped(int p_149650_1_, Random p_149650_2_, int p_149650_3_) { return Item.getItemFromBlock(recipesmod.Grinder); } /** * Called whenever the block is added into the world. Args: world, x, y, z */ public void onBlockAdded(World p_149726_1_, int p_149726_2_, int p_149726_3_, int p_149726_4_) { super.onBlockAdded(p_149726_1_, p_149726_2_, p_149726_3_, p_149726_4_); this.func_149930_e(p_149726_1_, p_149726_2_, p_149726_3_, p_149726_4_); } private void func_149930_e(World p_149930_1_, int p_149930_2_, int p_149930_3_, int p_149930_4_) { if (!p_149930_1_.isRemote) { Block block = p_149930_1_.getBlock(p_149930_2_, p_149930_3_, p_149930_4_ - 1); Block block1 = p_149930_1_.getBlock(p_149930_2_, p_149930_3_, p_149930_4_ + 1); Block block2 = p_149930_1_.getBlock(p_149930_2_ - 1, p_149930_3_, p_149930_4_); Block block3 = p_149930_1_.getBlock(p_149930_2_ + 1, p_149930_3_, p_149930_4_); byte b0 = 3; if (block.func_149730_j() && !block1.func_149730_j()) { b0 = 3; } if (block1.func_149730_j() && !block.func_149730_j()) { b0 = 2; } if (block2.func_149730_j() && !block3.func_149730_j()) { b0 = 5; } if (block3.func_149730_j() && !block2.func_149730_j()) { b0 = 4; } p_149930_1_.setBlockMetadataWithNotify(p_149930_2_, p_149930_3_, p_149930_4_, b0, 2); } } /** * Gets the block's texture. Args: side, meta */ @SideOnly(Side.CLIENT) public IIcon getIcon(int p_149691_1_, int p_149691_2_) { return p_149691_1_ == 1 ? this.field_149935_N : (p_149691_1_ == 0 ? this.field_149935_N : (p_149691_1_ != p_149691_2_ ? this.blockIcon : this.field_149936_O)); } @SideOnly(Side.CLIENT) public void registerBlockIcons(IIconRegister p_149651_1_) { this.blockIcon = p_149651_1_.registerIcon("grinder_side"); this.field_149936_O = p_149651_1_.registerIcon(this.field_149932_b ? "grinder_side" : "grinder_side"); this.field_149935_N = p_149651_1_.registerIcon("grinder_top"); } /** * Called upon block activation (right click on the block.) */ @Override public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int i, float f, float g, float t) { TileEntity tile_entity = world.getTileEntity(x, y, z); if (tile_entity == null || player.isSneaking()) { return false; } player.openGui(recipesmod.instance, 0, world, x, y, z); return true; } /** * Update which block the furnace is using depending on whether or not it is burning */ public static void updateFurnaceBlockState(boolean p_149931_0_, World p_149931_1_, int p_149931_2_, int p_149931_3_, int p_149931_4_) { int l = p_149931_1_.getBlockMetadata(p_149931_2_, p_149931_3_, p_149931_4_); TileEntity tileentity = p_149931_1_.getTileEntity(p_149931_2_, p_149931_3_, p_149931_4_); field_149934_M = true; if (p_149931_0_) { p_149931_1_.setBlock(p_149931_2_, p_149931_3_, p_149931_4_, Blocks.lit_furnace); } else { p_149931_1_.setBlock(p_149931_2_, p_149931_3_, p_149931_4_, Blocks.furnace); } field_149934_M = false; p_149931_1_.setBlockMetadataWithNotify(p_149931_2_, p_149931_3_, p_149931_4_, l, 2); if (tileentity != null) { tileentity.validate(); p_149931_1_.setTileEntity(p_149931_2_, p_149931_3_, p_149931_4_, tileentity); } } /** * Returns a new instance of a block's tile entity class. Called on placing the block. */ public TileEntity createNewTileEntity(World p_149915_1_, int p_149915_2_) { return new TileEntityGrinder(); } /** * Called when the block is placed in the world. */ public void onBlockPlacedBy(World p_149689_1_, int p_149689_2_, int p_149689_3_, int p_149689_4_, EntityLivingBase p_149689_5_, ItemStack p_149689_6_) { int l = MathHelper.floor_double((double)(p_149689_5_.rotationYaw * 4.0F / 360.0F) + 0.5D) & 3; if (l == 0) { p_149689_1_.setBlockMetadataWithNotify(p_149689_2_, p_149689_3_, p_149689_4_, 2, 2); } if (l == 1) { p_149689_1_.setBlockMetadataWithNotify(p_149689_2_, p_149689_3_, p_149689_4_, 5, 2); } if (l == 2) { p_149689_1_.setBlockMetadataWithNotify(p_149689_2_, p_149689_3_, p_149689_4_, 3, 2); } if (l == 3) { p_149689_1_.setBlockMetadataWithNotify(p_149689_2_, p_149689_3_, p_149689_4_, 4, 2); } if (p_149689_6_.hasDisplayName()) { ((TileEntityGrinder)p_149689_1_.getTileEntity(p_149689_2_, p_149689_3_, p_149689_4_)).func_145951_a(p_149689_6_.getDisplayName()); } } public void breakBlock(World p_149749_1_, int p_149749_2_, int p_149749_3_, int p_149749_4_, Block p_149749_5_, int p_149749_6_) { if (!field_149934_M) { TileEntityGrinder tileentityfurnace = (TileEntityGrinder)p_149749_1_.getTileEntity(p_149749_2_, p_149749_3_, p_149749_4_); if (tileentityfurnace != null) { for (int i1 = 0; i1 < tileentityfurnace.getSizeInventory(); ++i1) { ItemStack itemstack = tileentityfurnace.getStackInSlot(i1); if (itemstack != null) { float f = this.field_149933_a.nextFloat() * 0.8F + 0.1F; float f1 = this.field_149933_a.nextFloat() * 0.8F + 0.1F; float f2 = this.field_149933_a.nextFloat() * 0.8F + 0.1F; while (itemstack.stackSize > 0) { int j1 = this.field_149933_a.nextInt(21) + 10; if (j1 > itemstack.stackSize) { j1 = itemstack.stackSize; } itemstack.stackSize -= j1; EntityItem entityitem = new EntityItem(p_149749_1_, (double)((float)p_149749_2_ + f), (double)((float)p_149749_3_ + f1), (double)((float)p_149749_4_ + f2), new ItemStack(itemstack.getItem(), j1, itemstack.getItemDamage())); if (itemstack.hasTagCompound()) { entityitem.getEntityItem().setTagCompound((NBTTagCompound)itemstack.getTagCompound().copy()); } float f3 = 0.05F; entityitem.motionX = (double)((float)this.field_149933_a.nextGaussian() * f3); entityitem.motionY = (double)((float)this.field_149933_a.nextGaussian() * f3 + 0.2F); entityitem.motionZ = (double)((float)this.field_149933_a.nextGaussian() * f3); p_149749_1_.spawnEntityInWorld(entityitem); } } } p_149749_1_.func_147453_f(p_149749_2_, p_149749_3_, p_149749_4_, p_149749_5_); } } super.breakBlock(p_149749_1_, p_149749_2_, p_149749_3_, p_149749_4_, p_149749_5_, p_149749_6_); } /** * A randomly called display update to be able to add particles or other items for display */ @SideOnly(Side.CLIENT) public void randomDisplayTick(World p_149734_1_, int p_149734_2_, int p_149734_3_, int p_149734_4_, Random p_149734_5_) { if (this.field_149932_b) { int l = p_149734_1_.getBlockMetadata(p_149734_2_, p_149734_3_, p_149734_4_); float f = (float)p_149734_2_ + 0.5F; float f1 = (float)p_149734_3_ + 0.0F + p_149734_5_.nextFloat() * 6.0F / 16.0F; float f2 = (float)p_149734_4_ + 0.5F; float f3 = 0.52F; float f4 = p_149734_5_.nextFloat() * 0.6F - 0.3F; if (l == 4) { p_149734_1_.spawnParticle("smoke", (double)(f - f3), (double)f1, (double)(f2 + f4), 0.0D, 0.0D, 0.0D); p_149734_1_.spawnParticle("flame", (double)(f - f3), (double)f1, (double)(f2 + f4), 0.0D, 0.0D, 0.0D); } else if (l == 5) { p_149734_1_.spawnParticle("smoke", (double)(f + f3), (double)f1, (double)(f2 + f4), 0.0D, 0.0D, 0.0D); p_149734_1_.spawnParticle("flame", (double)(f + f3), (double)f1, (double)(f2 + f4), 0.0D, 0.0D, 0.0D); } else if (l == 2) { p_149734_1_.spawnParticle("smoke", (double)(f + f4), (double)f1, (double)(f2 - f3), 0.0D, 0.0D, 0.0D); p_149734_1_.spawnParticle("flame", (double)(f + f4), (double)f1, (double)(f2 - f3), 0.0D, 0.0D, 0.0D); } else if (l == 3) { p_149734_1_.spawnParticle("smoke", (double)(f + f4), (double)f1, (double)(f2 + f3), 0.0D, 0.0D, 0.0D); p_149734_1_.spawnParticle("flame", (double)(f + f4), (double)f1, (double)(f2 + f3), 0.0D, 0.0D, 0.0D); } } } /** * If this returns true, then comparators facing away from this block will use the value from * getComparatorInputOverride instead of the actual redstone signal strength. */ public boolean hasComparatorInputOverride() { return true; } /** * If hasComparatorInputOverride returns true, the return value from this is used instead of the redstone signal * strength when this block inputs to a comparator. */ public int getComparatorInputOverride(World p_149736_1_, int p_149736_2_, int p_149736_3_, int p_149736_4_, int p_149736_5_) { return Container.calcRedstoneFromInventory((IInventory)p_149736_1_.getTileEntity(p_149736_2_, p_149736_3_, p_149736_4_)); } /** * Gets an item for the block being called on. Args: world, x, y, z */ @SideOnly(Side.CLIENT) public Item getItem(World p_149694_1_, int p_149694_2_, int p_149694_3_, int p_149694_4_) { return Item.getItemFromBlock(Blocks.furnace); } } Extract form the CustumFurnaceClass (player.openGui) @Override public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int i, float f, float g, float t) { TileEntity tile_entity = world.getTileEntity(x, y, z); if (tile_entity == null || player.isSneaking()) { return false; } player.openGui(recipesmod.instance, 0, world, x, y, z); return true; } Main Class: package breezertwo.morerecipes.src; import breezertwo.morerecipes.src.grinder.GuiHandler; import breezertwo.morerecipes.src.grinder.TileEntityGrinder; import net.minecraft.block.Block; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; import net.minecraft.item.Item.ToolMaterial; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.Instance; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLPostInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.registry.GameRegistry; import net.minecraft.block.material.Material; import net.minecraftforge.common.util.EnumHelper; import cpw.mods.fml.common.network.NetworkRegistry; @Mod(modid="MODID", version="VERSION", name="MoreReipesMod") public class recipesmod { public static final String MODID = "recipesmod"; public static final String VERSION = "2.0"; @Instance("recipesmod") public static recipesmod instance; private GuiHandler guihandler = new GuiHandler(); //--------------------------------------------------------------------- WorldGeneratorRecipesMod worldgen = new WorldGeneratorRecipesMod(); //--------------------------------------------------------------------- public static ToolMaterial TITAN = EnumHelper.addToolMaterial("TITAN", 3, 5555, 7.0F, 2.0F, 10); //--------------------------------------------------------------------- public static CreativeTabs tabRecipesMod = new customCreativeTabs(CreativeTabs.getNextID(), "recipes"); //--------------------------------------------------------------------- //Blocks public static Block pinkflower = new BlockFlowerMod(0).setHardness(0.3F).setBlockName("pinkflower").setBlockTextureName("morerecipes:flower").setCreativeTab(tabRecipesMod); //TODO: FIX FLOWER TEXTURE public static Block saltOre = new BlockSaltOre(Material.rock).setBlockName("saltOre").setHardness(2.0F).setCreativeTab(tabRecipesMod).setBlockTextureName("morerecipes:saltore"); public static Block blocktitan = new BlockOre(Material.rock).setBlockName("blocktitan").setCreativeTab(tabRecipesMod).setHardness(4.0F).setResistance(5.0F).setBlockTextureName("morerecipes:oretitan"); public static Block marble = new BlockMarbel(Material.rock).setBlockName("marble").setHardness(1.5F).setResistance(10.0F).setCreativeTab(tabRecipesMod).setBlockTextureName("morerecipes:marble"); public static Block marblebrick = new BlockMarbelBrick(Material.rock).setBlockName("marblebrick").setCreativeTab(tabRecipesMod).setBlockTextureName("morerecipes:marblebrick"); public static Block mapleWood = new BlockMapleWood(Material.wood).setBlockName("mapleWood").setHardness(2.0F).setCreativeTab(tabRecipesMod).setBlockTextureName("morerecipes:mwood"); public static Block tomatoplant = new TomatoPlant().setBlockName("tomatoplant").setBlockTextureName("morerecipes:tomatos"); public static Block Grinder = new Grinder(false).setBlockName("grinder").setHardness(3.5F).setResistance(4.0F).setCreativeTab(tabRecipesMod).setBlockTextureName("morerecipes:grinder"); /* public static Block Grinder = new Grinder(grinderID, false).func_149663_c("grinder").func_149711_c(3.5F).func_149752_b(4.0F).func_149647_a(tabRecipesMod); public static Block mapleSapling = new BlockMapleSapling(Material.wood).setBlockName("maplesapling").setCreativeTab(tabRecipesMod); public static Block mapleLeaf = new BlockMapleLeaf(Material.wood).setBlockName("mapleleaf").setHardness(0.1F).setCreativeTab(tabRecipesMod); public static Block mapleLog = new BlockMapleLog(Material.wood).setBlockName("maplelog").setHardness(1.5F).setCreativeTab(tabRecipesMod); */ //Items public static Item butter = new ItemButter(64).setUnlocalizedName("Butter").setCreativeTab(tabRecipesMod).setTextureName("morerecipes:butter"); public static Item millstone = new ItemMillstone(1).setUnlocalizedName("millstone").setCreativeTab(tabRecipesMod).setTextureName("morerecipes:millstone"); public static Item salt = new ItemSalt(64).setUnlocalizedName("salt").setCreativeTab(tabRecipesMod).setTextureName("morerecipes:salt"); public static Item pancake = new ItemPancake(64).setUnlocalizedName("pancake").setCreativeTab(tabRecipesMod).setTextureName("morerecipes:pancake"); public static Item maplejuice = new ItemMapleJuice(64).setUnlocalizedName("maplejuice").setCreativeTab(tabRecipesMod).setTextureName("morerecipes:maple"); public static Item tomatoseed = new ItemTomatoSeed().setUnlocalizedName("tomatoseed").setTextureName("morerecipes:tomatoseeds"); public static Item tomato = new ItemTomato(3 , 0.5F, false).setUnlocalizedName("tomato").setTextureName("morerecipes:tomato"); public static Item flour = new ItemFlour(64).setUnlocalizedName("flour").setCreativeTab(tabRecipesMod).setTextureName("morerecipes:tomato"); public static Item dough = new ItemDough(64).setUnlocalizedName("dough").setCreativeTab(tabRecipesMod).setTextureName("morerecipes:dough"); public static Item cake = new ItemCake(6 , 0.7F, false).setUnlocalizedName("cake").setCreativeTab(tabRecipesMod).setTextureName("morerecipes:cake"); public static Item chocolate = new ItemChocolate(64).setUnlocalizedName("chocolate").setCreativeTab(tabRecipesMod).setTextureName("morerecipes:chocolate"); public static Item hotchocolate = new ItemHotChocolate(2 , 0.8F, false).setUnlocalizedName("hotchocolate").setCreativeTab(tabRecipesMod).setTextureName("morerecipes:hchocolate"); public static Item cheese = new ItemCheese(2 , 0.5F, false).setUnlocalizedName("cheese").setCreativeTab(tabRecipesMod).setTextureName("morerecipes:cheese"); public static Item cheesesandwich = new ItemCheeseSandwich(4 , 0.6F, false).setUnlocalizedName("cheesesandwich").setCreativeTab(tabRecipesMod).setTextureName("morerecipes:kaesebroetchen"); public static Item toast = new ItemToast(2 , 0.3F, true).setUnlocalizedName("toast").setCreativeTab(tabRecipesMod).setTextureName("morerecipes:toast"); public static Item toastch = new ItemToastCheeseHam(5 , 0.7F, true).setUnlocalizedName("toastch").setCreativeTab(tabRecipesMod).setTextureName("morerecipes:toastsk"); public static Item friedegg = new ItemFriedEgg(3 , 0.5F, false).setUnlocalizedName("friedegg").setCreativeTab(tabRecipesMod).setTextureName("morerecipes:ei"); public static Item hops = new ItemHops(64).setUnlocalizedName("hops").setCreativeTab(tabRecipesMod).setTextureName("morerecipes:hopfen"); public static Item beer = new ItemBeer(1 , 0.9F, false).setUnlocalizedName("beer").setCreativeTab(tabRecipesMod).setTextureName("morerecipes:beer"); public static Item titanium = new ItemTitanium(64).setUnlocalizedName("titanium").setCreativeTab(tabRecipesMod).setTextureName("morerecipes:titanium"); public static Item tpickaxe = new ItemPickaxeTitan(1, TITAN).setUnlocalizedName("tpickaxe").setCreativeTab(tabRecipesMod).setTextureName("morerecipes:pickaxetitanium"); public static Item tshovel = new ItemShovelTitan(1, TITAN).setUnlocalizedName("tshovel").setCreativeTab(tabRecipesMod).setTextureName("morerecipes:shoveltitanium"); public static Item taxe = new ItemAxeTitanium(1, TITAN).setUnlocalizedName("taxe").setCreativeTab(tabRecipesMod).setTextureName("morerecipes:axetitanium"); public static Item marbledust = new ItemMarbleDust(64).setUnlocalizedName("marbledust").setCreativeTab(tabRecipesMod).setTextureName("morerecipes:marbledust"); public static Item pizza = new ItemPizza(4 , 0.7F, false).setUnlocalizedName("pizza").setCreativeTab(tabRecipesMod).setTextureName("morerecipes:pizza"); @Mod.EventHandler public void preInit(FMLPreInitializationEvent event){ initBlocks(); initItems(); } @Mod.EventHandler public void init(FMLInitializationEvent event){ GameRegistry.registerWorldGenerator(new WorldGeneratorRecipesMod(), 0); GameRegistry.registerTileEntity(TileEntityGrinder.class, "tileentitygrinder"); NetworkRegistry.INSTANCE.registerGuiHandler(this, guihandler); } @Mod.EventHandler public static void postInit(FMLPostInitializationEvent event) { } private void initBlocks(){ GameRegistry.registerBlock(saltOre, "SalzErz"); GameRegistry.registerBlock(mapleWood, "Ahornholz"); GameRegistry.registerBlock(marble, "Maromor"); GameRegistry.registerBlock(marblebrick, "Marmorstein"); GameRegistry.registerBlock(pinkflower, "Blume"); GameRegistry.registerBlock(tomatoplant, "Tomatenpflanze"); GameRegistry.registerBlock(blocktitan, "TitanErz"); GameRegistry.registerBlock(Grinder, "Muehle"); /* GameRegistry.registerBlock(mapleLeaf, "Ahornblaetter"); GameRegistry.registerBlock(mapleSapling, "Ahornpflanze"); GameRegistry.registerBlock(mapleLog, "Ahornbaum"); */ } private void initItems(){ GameRegistry.registerItem(butter, "Butter"); GameRegistry.registerItem(millstone, "Millstone"); GameRegistry.registerItem(maplejuice, "MapleJuice"); GameRegistry.registerItem(pancake, "Pfankuchen"); GameRegistry.registerItem(salt, "Salz"); GameRegistry.registerItem(tomatoseed, "Tomatensamen"); GameRegistry.registerItem(tomato,"Tomato"); GameRegistry.registerItem(pizza, "Pizza"); GameRegistry.registerItem(flour, "Mehl"); GameRegistry.registerItem(butter, "Butter"); GameRegistry.registerItem(dough, "Teig"); GameRegistry.registerItem(cake, "Geburtstagskuchen"); GameRegistry.registerItem(chocolate, "Schokolade"); GameRegistry.registerItem(hotchocolate, "Kakao"); GameRegistry.registerItem(cheese, "Kaese"); GameRegistry.registerItem(cheesesandwich, "Kaesebrot"); GameRegistry.registerItem(toast, "Toast"); GameRegistry.registerItem(toastch, "Schinken-Kaese Toast"); GameRegistry.registerItem(friedegg, "Spiegelei"); GameRegistry.registerItem(hops, "Hopfen"); GameRegistry.registerItem(beer, "Bier"); GameRegistry.registerItem(titanium, "Titan"); GameRegistry.registerItem(tpickaxe, "Titan-Spitzhacke"); GameRegistry.registerItem(tshovel, "Titan-Schaufel"); GameRegistry.registerItem(taxe, "Titan-Axt"); GameRegistry.registerItem(marbledust, "Marmor-Staub"); } } Thanks agian for your help...
February 12, 201411 yr TileEntity tile_entity = world.getTileEntity(x, y, z); -> TileEntityGrinder tile_entity = (TileEntityGrinder)world.getTileEntity(x, y, z);
February 12, 201411 yr private GuiHandler guihandler = new GuiHandler(); Need to see that class. This is what is crashing.
February 13, 201411 yr at breezertwo.morerecipes.src.Grinder.onBlockActivated(Grinder.java:121) ~[Grinder.class:?] gui not crashing
February 16, 201411 yr Author Ok thanks for your help: Here is the GuiHandler.class package breezertwo.morerecipes.src.grinder; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.tileentity.TileEntity; import net.minecraft.world.World; import cpw.mods.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(x, y, z); if(tile_entity instanceof TileEntityGrinder){ return new ContainerGrinder(player.inventory, (TileEntityGrinder) 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(x, y, z); if(tile_entity instanceof TileEntityGrinder){ return new GuiGrinder(player.inventory, (TileEntityGrinder) tile_entity); } return null; } }
February 18, 201411 yr what does "no" mean? It means: "Bad modder. No cookie." Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
February 18, 201411 yr why i am a "bad modder"? Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
February 19, 201411 yr Author before you juge ---> read all, not only the first lines! @Mod(modid="MODID", version="VERSION", name="MoreReipesMod") public class recipesmod { public static final String MODID = "recipesmod"; public static final String VERSION = "2.0"; it exactly the same like the "example mod" of the forge developers! -.-
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.