MrHubbard Posted September 19, 2015 Posted September 19, 2015 Hi, Once again I'm back with another error. This time its a peticular line of code that checks the fuel slot for a piece of redstone, which if it exists decrease the stack by one and add 100 to the machines power. if(this.Itemstack[1].getItem() == Items.redstone) { --this.Itemstack[1].stackSize; this.power+=100; } EDIT: It doesn't throw the error in eclipse, it throws it in the console when in game.
larsgerrits Posted September 19, 2015 Posted September 19, 2015 And the error is? Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support. 1.12 -> 1.13 primer by williewillus. 1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support. http://www.howoldisminecraft1710.today/
MrHubbard Posted September 19, 2015 Author Posted September 19, 2015 Sorry, forgot to post the error haha... here it is. A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details: Minecraft Version: 1.8 Operating System: Windows 10 (x86) version 10.0 Java Version: 1.8.0_60, Oracle Corporation Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation Memory: 980133664 bytes (934 MB) / 1060372480 bytes (1011 MB) up to 1060372480 bytes (1011 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: Loaded coremods (and transformers): GL info: ' Vendor: 'NVIDIA Corporation' Version: '3.3.0' Renderer: 'GeForce 9500 GT/PCIe/SSE2' [20:40:52] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization [20:40:52] [Client thread/INFO] [FML]: MinecraftForge v11.14.3.1450 Initialized [20:40:52] [Client thread/INFO] [FML]: Replaced 204 ore recipies [20:40:52] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization [20:40:52] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer [20:40:52] [Client thread/INFO] [FML]: Searching W:\Minecraft Mod\Random Things Mod\run\mods for mods [20:40:56] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load [20:40:57] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, RT] at CLIENT [20:40:57] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, RT] at SERVER [20:40:58] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Random Things [20:40:58] [Client thread/INFO] [FML]: Processing ObjectHolder annotations [20:40:58] [Client thread/INFO] [FML]: Found 384 ObjectHolder annotations [20:40:58] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations [20:40:59] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations [20:40:59] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0 [20:41:00] [Client thread/INFO] [FML]: Applying holder lookups [20:41:00] [Client thread/INFO] [FML]: Holder lookups applied [20:41:00] [Client thread/INFO] [FML]: Injecting itemstacks [20:41:00] [Client thread/INFO] [FML]: Itemstack injection complete [20:41:00] [sound Library Loader/INFO]: Starting up SoundSystem... [20:41:01] [Thread-9/INFO]: Initializing LWJGL OpenAL [20:41:01] [Thread-9/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [20:41:01] [Thread-9/INFO]: OpenAL initialized. [20:41:01] [sound Library Loader/INFO]: Sound engine started [20:41:12] [Client thread/INFO]: Created: 512x512 textures-atlas [20:41:13] [Client thread/INFO] [FML]: Injecting itemstacks [20:41:13] [Client thread/INFO] [FML]: Itemstack injection complete [20:41:14] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods [20:41:14] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Random Things [20:41:14] [Client thread/INFO]: SoundSystem shutting down... [20:41:14] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com [20:41:14] [sound Library Loader/INFO]: Starting up SoundSystem... [20:41:14] [Thread-11/INFO]: Initializing LWJGL OpenAL [20:41:14] [Thread-11/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [20:41:14] [Thread-11/INFO]: OpenAL initialized. [20:41:14] [sound Library Loader/INFO]: Sound engine started [20:41:20] [Client thread/INFO]: Created: 512x512 textures-atlas [20:41:37] [server thread/INFO]: Starting integrated minecraft server version 1.8 [20:41:37] [server thread/INFO]: Generating keypair [20:41:38] [server thread/INFO] [FML]: Injecting existing block and item data into this server instance [20:41:38] [server thread/INFO] [FML]: Applying holder lookups [20:41:38] [server thread/INFO] [FML]: Holder lookups applied [20:41:38] [server thread/INFO] [FML]: Loading dimension 0 (Mod Testing) (net.minecraft.server.integrated.IntegratedServer@103c324) [20:41:38] [server thread/INFO] [FML]: Loading dimension 1 (Mod Testing) (net.minecraft.server.integrated.IntegratedServer@103c324) [20:41:38] [server thread/INFO] [FML]: Loading dimension -1 (Mod Testing) (net.minecraft.server.integrated.IntegratedServer@103c324) [20:41:38] [server thread/INFO]: Preparing start region for level 0 [20:41:39] [server thread/INFO]: Preparing spawn area: 62% [20:41:40] [server thread/INFO]: Changing view distance to 8, from 10 [20:41:44] [Netty Local Client IO #0/INFO] [FML]: Server protocol version 2 [20:41:44] [Netty Server IO #1/INFO] [FML]: Client protocol version 2 [20:41:44] [Netty Server IO #1/INFO] [FML]: Client attempting to join with 4 mods : [email protected],[email protected],[email protected],[email protected] [20:41:44] [Netty Local Client IO #0/INFO] [FML]: [Netty Local Client IO #0] Client side modded connection established [20:41:44] [server thread/INFO] [FML]: [server thread] Server side modded connection established [20:41:44] [server thread/INFO]: Player765[local:E:655c4c9f] logged in with entity id 62 at (-888.0715637440494, 56.0, 1085.2417643798585) [20:41:44] [server thread/INFO]: Player765 joined the game [20:41:46] [pool-2-thread-1/WARN]: Couldn't look up profile properties for com.mojang.authlib.GameProfile@12f96e5[id=5f90bf1f-575d-3542-89d7-731859eee6f2,name=Player765,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:158) [YggdrasilMinecraftSessionService.class:?] at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:53) [YggdrasilMinecraftSessionService$1.class:?] at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:50) [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:148) [YggdrasilMinecraftSessionService.class:?] at net.minecraft.client.resources.SkinManager$3.run(SkinManager.java:138) [skinManager$3.class:?] at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_60] at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_60] at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_60] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_60] at java.lang.Thread.run(Unknown Source) [?:1.8.0_60] [20:41:47] [server thread/INFO]: Stopping server [20:41:47] [server thread/INFO]: Saving players [20:41:47] [server thread/INFO]: Saving worlds [20:41:47] [server thread/INFO]: Saving chunks for level 'Mod Testing'/Overworld [20:41:47] [server thread/INFO]: Saving chunks for level 'Mod Testing'/Nether [20:41:47] [server thread/INFO]: Saving chunks for level 'Mod Testing'/The End [20:41:47] [server thread/INFO] [FML]: Unloading dimension 0 [20:41:47] [server thread/INFO] [FML]: Unloading dimension -1 [20:41:47] [server thread/INFO] [FML]: Unloading dimension 1 [20:41:47] [server thread/INFO] [FML]: Applying holder lookups [20:41:47] [server thread/INFO] [FML]: Holder lookups applied [20:41:48] [Client thread/FATAL]: Reported exception thrown! net.minecraft.util.ReportedException: Ticking block entity at net.minecraft.world.World.updateEntities(World.java:1894) ~[World.class:?] at net.minecraft.client.Minecraft.runTick(Minecraft.java:2184) ~[Minecraft.class:?] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1087) ~[Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:376) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:117) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_60] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_60] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_60] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_60] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?] at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?] at GradleStart.main(Unknown Source) [start/:?] Caused by: java.lang.NullPointerException at hubbard.randomthings.tileentity.TileEntity_Grinder_Basic.update(TileEntity_Grinder_Basic.java:335) ~[TileEntity_Grinder_Basic.class:?] at net.minecraft.world.World.updateEntities(World.java:1879) ~[World.class:?] ... 12 more [20:41:48] [Client thread/INFO] [sTDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:663]: ---- Minecraft Crash Report ---- // You should try our sister game, Minceraft! Time: 19/09/15 20:41 Description: Ticking block entity java.lang.NullPointerException: Ticking block entity at hubbard.randomthings.tileentity.TileEntity_Grinder_Basic.update(TileEntity_Grinder_Basic.java:335) at net.minecraft.world.World.updateEntities(World.java:1879) at net.minecraft.client.Minecraft.runTick(Minecraft.java:2184) at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1087) at net.minecraft.client.Minecraft.run(Minecraft.java:376) at net.minecraft.client.main.Main.main(Main.java:117) 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:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) at GradleStart.main(Unknown Source) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Stacktrace: at hubbard.randomthings.tileentity.TileEntity_Grinder_Basic.update(TileEntity_Grinder_Basic.java:335) -- Block entity being ticked -- Details: Name: rt:GrinderBasic // hubbard.randomthings.tileentity.TileEntity_Grinder_Basic Block type: ID #225 (tile.Grinder_Basic // hubbard.randomthings.Blocks.machines.Machine_Grinder_Basic) Block data value: 4 / 0x4 / 0b0100 Block location: World: (-887,56,1085), Chunk: (at 9,3,13 in -56,67; contains blocks -896,0,1072 to -881,255,1087), Region: (-2,2; contains chunks -64,64 to -33,95, blocks -1024,0,1024 to -513,255,1535) Actual block type: ID #225 (tile.Grinder_Basic // hubbard.randomthings.Blocks.machines.Machine_Grinder_Basic) Actual block data value: 4 / 0x4 / 0b0100 Stacktrace: at net.minecraft.world.World.updateEntities(World.java:1879) -- Affected level -- Details: Level name: MpServer All players: 1 total; [EntityPlayerSP['Player765'/62, l='MpServer', x=-888.07, y=56.00, z=1085.24]] Chunk stats: MultiplayerChunkCache: 110, 110 Level seed: 0 Level generator: ID 01 - flat, ver 0. Features enabled: false Level generator options: Level spawn location: -881.00,4.00,1091.00 - World: (-881,4,1091), Chunk: (at 15,0,3 in -56,68; contains blocks -896,0,1088 to -881,255,1103), Region: (-2,2; contains chunks -64,64 to -33,95, blocks -1024,0,1024 to -513,255,1535) Level time: 191164 game time, 33741 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: 37 total; [EntityItemFrame['entity.ItemFrame.name'/7, l='MpServer', x=-896.97, y=56.50, z=1079.50], EntityItemFrame['entity.ItemFrame.name'/8, l='MpServer', x=-896.97, y=56.50, z=1081.50], EntityItemFrame['entity.ItemFrame.name'/9, l='MpServer', x=-896.50, y=57.50, z=1086.97], EntityItemFrame['entity.ItemFrame.name'/10, l='MpServer', x=-896.97, y=56.50, z=1080.50], EntityItemFrame['entity.ItemFrame.name'/11, l='MpServer', x=-896.50, y=56.50, z=1086.97], EntityItemFrame['entity.ItemFrame.name'/12, l='MpServer', x=-896.97, y=56.50, z=1084.50], EntityItemFrame['entity.ItemFrame.name'/13, l='MpServer', x=-896.97, y=56.50, z=1083.50], EntityItemFrame['entity.ItemFrame.name'/14, l='MpServer', x=-896.97, y=57.50, z=1086.50], EntityItemFrame['entity.ItemFrame.name'/15, l='MpServer', x=-896.97, y=57.50, z=1081.50], EntityItemFrame['entity.ItemFrame.name'/16, l='MpServer', x=-896.97, y=57.50, z=1079.50], EntityItemFrame['entity.ItemFrame.name'/17, l='MpServer', x=-896.97, y=56.50, z=1085.50], EntityItemFrame['entity.ItemFrame.name'/18, l='MpServer', x=-896.97, y=57.50, z=1084.50], EntityItemFrame['entity.ItemFrame.name'/19, l='MpServer', x=-896.97, y=56.50, z=1086.50], EntityItemFrame['entity.ItemFrame.name'/20, l='MpServer', x=-896.97, y=57.50, z=1080.50], EntityItemFrame['entity.ItemFrame.name'/21, l='MpServer', x=-896.97, y=56.50, z=1078.50], EntityItemFrame['entity.ItemFrame.name'/22, l='MpServer', x=-896.97, y=57.50, z=1083.50], EntityItemFrame['entity.ItemFrame.name'/23, l='MpServer', x=-896.97, y=57.50, z=1082.50], EntityItemFrame['entity.ItemFrame.name'/24, l='MpServer', x=-896.97, y=56.50, z=1082.50], EntityItemFrame['entity.ItemFrame.name'/25, l='MpServer', x=-896.97, y=57.50, z=1078.50], EntityItemFrame['entity.ItemFrame.name'/26, l='MpServer', x=-896.97, y=57.50, z=1085.50], EntityItemFrame['entity.ItemFrame.name'/27, l='MpServer', x=-889.50, y=57.50, z=1086.97], EntityItemFrame['entity.ItemFrame.name'/28, l='MpServer', x=-890.50, y=58.50, z=1086.97], EntityItemFrame['entity.ItemFrame.name'/29, l='MpServer', x=-888.50, y=56.50, z=1086.97], EntityItemFrame['entity.ItemFrame.name'/30, l='MpServer', x=-887.50, y=56.50, z=1086.97], EntityItemFrame['entity.ItemFrame.name'/31, l='MpServer', x=-895.50, y=58.50, z=1086.97], EntityItemFrame['entity.ItemFrame.name'/32, l='MpServer', x=-893.50, y=58.50, z=1086.97], EntityItemFrame['entity.ItemFrame.name'/33, l='MpServer', x=-894.50, y=58.50, z=1086.97], EntityArmorStand['Armor Stand'/34, l='MpServer', x=-894.50, y=56.00, z=1076.50], EntityItemFrame['entity.ItemFrame.name'/35, l='MpServer', x=-891.50, y=58.50, z=1086.97], EntityItemFrame['entity.ItemFrame.name'/36, l='MpServer', x=-892.50, y=58.50, z=1086.97], EntityArmorStand['Armor Stand'/37, l='MpServer', x=-895.50, y=56.00, z=1076.50], EntityItemFrame['entity.ItemFrame.name'/38, l='MpServer', x=-895.50, y=57.50, z=1086.97], EntityItemFrame['entity.ItemFrame.name'/39, l='MpServer', x=-889.50, y=58.50, z=1086.97], EntityItemFrame['entity.ItemFrame.name'/40, l='MpServer', x=-888.50, y=58.50, z=1086.97], EntityItemFrame['entity.ItemFrame.name'/41, l='MpServer', x=-888.50, y=57.50, z=1086.97], EntityItemFrame['entity.ItemFrame.name'/42, l='MpServer', x=-889.50, y=56.50, z=1086.97], EntityPlayerSP['Player765'/62, l='MpServer', x=-888.07, y=56.00, z=1085.24]] Retry entities: 0 total; [] Server brand: fml,forge Server type: Integrated singleplayer server Stacktrace: at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:392) at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2614) at net.minecraft.client.Minecraft.run(Minecraft.java:398) at net.minecraft.client.main.Main.main(Main.java:117) 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:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) at GradleStart.main(Unknown Source) -- System Details -- Details: Minecraft Version: 1.8 Operating System: Windows 10 (x86) version 10.0 Java Version: 1.8.0_60, Oracle Corporation Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation Memory: 844208128 bytes (805 MB) / 1060372480 bytes (1011 MB) up to 1060372480 bytes (1011 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP v9.10 FML v8.0.99.99 Minecraft Forge 11.14.3.1450 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.05} [Minecraft Coder Pack] (minecraft.jar) UCHIJAAAA FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.8-11.14.3.1450.jar) UCHIJAAAA Forge{11.14.3.1450} [Minecraft Forge] (forgeSrc-1.8-11.14.3.1450.jar) UCHIJAAAA RT{1.0.0} [Random Things] (bin) Loaded coremods (and transformers): GL info: ' Vendor: 'NVIDIA Corporation' Version: '3.3.0' Renderer: 'GeForce 9500 GT/PCIe/SSE2' Launched Version: 1.8 LWJGL: 2.9.1 OpenGL: GeForce 9500 GT/PCIe/SSE2 GL version 3.3.0, NVIDIA Corporation 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) [20:41:48] [Client thread/INFO] [sTDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:663]: #@!@# Game crashed! Crash report saved to: #@!@# W:\Minecraft Mod\Random Things Mod\run\.\crash-reports\crash-2015-09-19_20.41.48-client.txt AL lib: (EE) alc_cleanup: 1 device not closed Java HotSpot(TM) Client VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
Ernio Posted September 19, 2015 Posted September 19, 2015 Probably NPE. You can't get item before making sure itemStack is not null: if (this.itemStack[1] != null) { Item item = this.itemStack[1].getItem(); if(item == Items.redstone) { --this.itemStack[1].stackSize; if (this.itemStack[1].stackSize <= 0) this.itemStack[1] = null; this.power += 100; } } Note: this is the only error that can occure in code you've provided. If it's not it - it's elsewhere. 1.7.10 is no longer supported by forge, you are on your own.
MrHubbard Posted September 19, 2015 Author Posted September 19, 2015 I have no idea how i missed that, Thank you good sir.
Recommended Posts