Jump to content

Recommended Posts

Posted

So I just started making my first Minecraft Mod as a test to see how well I could do while following along with tutorials. (I know Scala and I've messed around a bit with Java, so I'm not a total noob, but that also means I might not know everything you are talking about). Everything was going smooth until I got to the crafting part. When ever I try and craft either of the 2 items that I've made, the game crashes when I put the final item into the crafting table.

 

Eclipse Console Log

 

[21:18:53] [main/INFO] [GradleStart]: Extra: []

[21:18:53] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --accessToken, {REDACTED}, --assetIndex, 1.8, --assetsDir, C:/Users/thecm_000/.gradle/caches/minecraft/assets, --version, 1.8, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]

[21:18:53] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker

[21:18:53] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker

[21:18:53] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker

[21:18:53] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker

[21:18:53] [main/INFO] [FML]: Forge Mod Loader version 8.99.178.1486 for Minecraft 1.8 loading

[21:18:53] [main/INFO] [FML]: Java is Java HotSpot 64-Bit Server VM, version 1.7.0_79, running on Windows 8.1:amd64:6.3, installed at C:\Program Files\Java\jre7

[21:18:53] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation

[21:18:54] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker

[21:18:54] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin

[21:18:54] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin

[21:18:54] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker

[21:18:54] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker

[21:18:54] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker

[21:18:54] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker

[21:18:54] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker

[21:18:54] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper

[21:18:55] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!

[21:19:04] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing

[21:19:04] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper

[21:19:04] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker

[21:19:06] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker

[21:19:06] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker

[21:19:06] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker

[21:19:06] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}

[21:19:09] [Client thread/INFO]: Setting user: Player500

[21:19:16] [Client thread/INFO]: LWJGL Version: 2.9.1

[21:19:17] [Client thread/INFO] [sTDOUT]: [net.minecraftforge.fml.client.SplashProgress:start:235]: ---- Minecraft Crash Report ----

// I bet Cylons wouldn't have this problem.

 

Time: 6/28/15 9:19 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.8

Operating System: Windows 8.1 (amd64) version 6.3

Java Version: 1.7.0_79, Oracle Corporation

Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation

Memory: 2801378968 bytes (2671 MB) / 3110862848 bytes (2966 MB) up to 3110862848 bytes (2966 MB)

JVM Flags: 3 total; -Xincgc -Xmx3000M -Xms3000M

IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0

FML:

Loaded coremods (and transformers):

GL info: ' Vendor: 'Intel' Version: '4.0.0 - Build 9.17.10.2867' Renderer: 'Intel® HD Graphics 4000'

[21:19:17] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization

[21:19:17] [Client thread/INFO] [FML]: MinecraftForge v11.14.3.1486 Initialized

[21:19:18] [Client thread/INFO] [FML]: Replaced 204 ore recipies

[21:19:18] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization

[21:19:19] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer

[21:19:19] [Client thread/INFO] [FML]: Searching C:\Users\thecm_000\Desktop\Desktop\Coding\Minecraft\Mod Testing1\eclipse\mods for mods

[21:19:24] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load

[21:19:25] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, test] at CLIENT

[21:19:25] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, test] at SERVER

[21:19:26] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Testing Mod

[21:19:26] [Client thread/INFO] [FML]: Processing ObjectHolder annotations

[21:19:26] [Client thread/INFO] [FML]: Found 384 ObjectHolder annotations

[21:19:26] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations

[21:19:26] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations

[21:19:27] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0

[21:19:27] [Client thread/INFO] [FML]: Applying holder lookups

[21:19:27] [Client thread/INFO] [FML]: Holder lookups applied

[21:19:27] [Client thread/INFO] [FML]: Injecting itemstacks

[21:19:27] [Client thread/INFO] [FML]: Itemstack injection complete

[21:19:29] [sound Library Loader/INFO]: Starting up SoundSystem...

[21:19:29] [Thread-9/INFO]: Initializing LWJGL OpenAL

[21:19:29] [Thread-9/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

[21:19:30] [Thread-9/INFO]: OpenAL initialized.

[21:19:30] [sound Library Loader/INFO]: Sound engine started

[21:19:45] [Client thread/INFO] [FML]: Max texture size: 8192

[21:19:45] [Client thread/INFO]: Created: 16x16 textures-atlas

[21:19:47] [Client thread/INFO] [FML]: Injecting itemstacks

[21:19:47] [Client thread/INFO] [FML]: Itemstack injection complete

[21:19:48] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods

[21:19:48] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Testing Mod

[21:19:48] [Client thread/INFO]: SoundSystem shutting down...

[21:19:49] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com

[21:19:49] [sound Library Loader/INFO]: Starting up SoundSystem...

[21:19:49] [Thread-11/INFO]: Initializing LWJGL OpenAL

[21:19:49] [Thread-11/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

[21:19:49] [Thread-11/INFO]: OpenAL initialized.

[21:19:49] [sound Library Loader/INFO]: Sound engine started

[21:19:59] [Client thread/INFO] [FML]: Max texture size: 8192

[21:20:01] [Client thread/INFO]: Created: 512x512 textures-atlas

[21:20:27] [server thread/INFO]: Starting integrated minecraft server version 1.8

[21:20:27] [server thread/INFO]: Generating keypair

[21:20:27] [server thread/INFO] [FML]: Injecting existing block and item data into this server instance

[21:20:27] [server thread/INFO] [FML]: Applying holder lookups

[21:20:27] [server thread/INFO] [FML]: Holder lookups applied

[21:20:27] [server thread/INFO] [FML]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@708c8315)

[21:20:27] [server thread/INFO] [FML]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@708c8315)

[21:20:28] [server thread/INFO] [FML]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@708c8315)

[21:20:28] [server thread/INFO]: Preparing start region for level 0

[21:20:28] [server thread/INFO]: Changing view distance to 12, from 10

[21:20:31] [Netty Local Client IO #0/INFO] [FML]: Server protocol version 2

[21:20:31] [Netty Server IO #1/INFO] [FML]: Client protocol version 2

[21:20:31] [Netty Server IO #1/INFO] [FML]: Client attempting to join with 4 mods : [email protected],[email protected],[email protected],[email protected]

[21:20:31] [Netty Local Client IO #0/INFO] [FML]: [Netty Local Client IO #0] Client side modded connection established

[21:20:31] [server thread/INFO] [FML]: [server thread] Server side modded connection established

[21:20:32] [server thread/INFO]: Player500[local:E:44431040] logged in with entity id 0 at (1.834444635379341, 56.0, -7.420236575183589)

[21:20:32] [server thread/INFO]: Player500 joined the game

[21:20:35] [pool-2-thread-1/WARN]: Couldn't look up profile properties for com.mojang.authlib.GameProfile@452aed45[id=3c098a03-04cc-31fd-856f-be4ccab4daf7,name=Player500,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.7.0_79]

at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.7.0_79]

at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.7.0_79]

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.7.0_79]

at java.lang.Thread.run(Unknown Source) [?:1.7.0_79]

[21:20:35] [server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 3246ms behind, skipping 64 tick(s)

[21:20:51] [server thread/INFO]: Stopping server

[21:20:51] [server thread/INFO]: Saving players

[21:20:51] [server thread/INFO]: Saving worlds

[21:20:51] [server thread/INFO]: Saving chunks for level 'New World'/Overworld

[21:20:52] [server thread/INFO]: Saving chunks for level 'New World'/Nether

[21:20:52] [server thread/INFO]: Saving chunks for level 'New World'/The End

[21:20:52] [server thread/INFO] [FML]: Unloading dimension 0

[21:20:52] [server thread/INFO] [FML]: Unloading dimension -1

[21:20:52] [server thread/INFO] [FML]: Unloading dimension 1

[21:20:52] [server thread/INFO] [FML]: Applying holder lookups

[21:20:52] [server thread/INFO] [FML]: Holder lookups applied

[21:20:53] [Client thread/FATAL]: Reported exception thrown!

net.minecraft.util.ReportedException: Rendering item

at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1167) ~[EntityRenderer.class:?]

at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1114) ~[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.7.0_79]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_79]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_79]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_79]

at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]

at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]

at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?]

at GradleStart.main(Unknown Source) [start/:?]

Caused by: java.lang.NullPointerException

at net.minecraft.item.ItemStack.getMetadata(ItemStack.java:280) ~[itemStack.class:?]

at net.minecraft.client.renderer.ItemModelMesher.getMetadata(ItemModelMesher.java:70) ~[itemModelMesher.class:?]

at net.minecraft.client.renderer.ItemModelMesher.getItemModel(ItemModelMesher.java:43) ~[itemModelMesher.class:?]

at net.minecraft.client.renderer.entity.RenderItem.renderItemIntoGUI(RenderItem.java:363) ~[RenderItem.class:?]

at net.minecraft.client.renderer.entity.RenderItem.renderItemAndEffectIntoGUI(RenderItem.java:414) ~[RenderItem.class:?]

at net.minecraft.client.gui.inventory.GuiContainer.drawSlot(GuiContainer.java:293) ~[GuiContainer.class:?]

at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:116) ~[GuiContainer.class:?]

at net.minecraftforge.client.ForgeHooksClient.drawScreen(ForgeHooksClient.java:460) ~[ForgeHooksClient.class:?]

at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1137) ~[EntityRenderer.class:?]

... 11 more

[21:20:53] [Client thread/INFO] [sTDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:663]: ---- Minecraft Crash Report ----

// This is a token for 1 free hug. Redeem at your nearest Mojangsta: [~~HUG~~]

 

Time: 6/28/15 9:20 PM

Description: Rendering item

 

java.lang.NullPointerException: Rendering item

at net.minecraft.item.ItemStack.getMetadata(ItemStack.java:280)

at net.minecraft.client.renderer.ItemModelMesher.getMetadata(ItemModelMesher.java:70)

at net.minecraft.client.renderer.ItemModelMesher.getItemModel(ItemModelMesher.java:43)

at net.minecraft.client.renderer.entity.RenderItem.renderItemIntoGUI(RenderItem.java:363)

at net.minecraft.client.renderer.entity.RenderItem.renderItemAndEffectIntoGUI(RenderItem.java:414)

at net.minecraft.client.gui.inventory.GuiContainer.drawSlot(GuiContainer.java:293)

at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:116)

at net.minecraftforge.client.ForgeHooksClient.drawScreen(ForgeHooksClient.java:460)

at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1137)

at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1114)

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 net.minecraft.item.ItemStack.getMetadata(ItemStack.java:280)

at net.minecraft.client.renderer.ItemModelMesher.getMetadata(ItemModelMesher.java:70)

at net.minecraft.client.renderer.ItemModelMesher.getItemModel(ItemModelMesher.java:43)

at net.minecraft.client.renderer.entity.RenderItem.renderItemIntoGUI(RenderItem.java:363)

 

-- Item being rendered --

Details:

Item Type: null

Item Aux: ~~ERROR~~ NullPointerException: null

Item NBT: null

Item Foil: ~~ERROR~~ NullPointerException: null

Stacktrace:

at net.minecraft.client.renderer.entity.RenderItem.renderItemAndEffectIntoGUI(RenderItem.java:414)

at net.minecraft.client.gui.inventory.GuiContainer.drawSlot(GuiContainer.java:293)

at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:116)

at net.minecraftforge.client.ForgeHooksClient.drawScreen(ForgeHooksClient.java:460)

 

-- Screen render details --

Details:

Screen name: net.minecraft.client.gui.inventory.GuiCrafting

Mouse location: Scaled: (198, 58). Absolute: (396, 362)

Screen size: Scaled: (427, 240). Absolute: (854, 480). Scale factor of 2

 

-- Affected level --

Details:

Level name: MpServer

All players: 1 total; [EntityPlayerSP['Player500'/0, l='MpServer', x=2.26, y=56.00, z=-7.42]]

Chunk stats: MultiplayerChunkCache: 575, 575

Level seed: 0

Level generator: ID 01 - flat, ver 0. Features enabled: false

Level generator options:

Level spawn location: 1169.00,4.00,801.00 - World: (1169,4,801), Chunk: (at 1,0,1 in 73,50; contains blocks 1168,0,800 to 1183,255,815), Region: (2,1; contains chunks 64,32 to 95,63, blocks 1024,0,512 to 1535,255,1023)

Level time: 31875 game time, 1000 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: 17 total; [EntityItem['item.item.arrow'/10, l='MpServer', x=31.28, y=56.00, z=-43.84], EntityItem['item.item.bone'/11, l='MpServer', x=31.88, y=56.00, z=-42.41], EntityItem['item.item.arrow'/12, l='MpServer', x=55.88, y=56.00, z=-25.47], EntityItem['item.item.bone'/13, l='MpServer', x=55.41, y=56.00, z=-26.19], EntityCreeper['Creeper'/14, l='MpServer', x=-27.50, y=56.00, z=43.50], EntityPlayerSP['Player500'/0, l='MpServer', x=2.26, y=56.00, z=-7.42], EntityItem['item.item.rottenFlesh'/17, l='MpServer', x=-53.88, y=56.00, z=0.56], EntitySpider['Spider'/16, l='MpServer', x=49.50, y=56.00, z=29.50], EntityItem['item.item.bone'/20, l='MpServer', x=-33.00, y=56.00, z=-52.41], EntityCreeper['Creeper'/23, l='MpServer', x=42.00, y=56.00, z=62.38], EntityItem['item.item.bone'/22, l='MpServer', x=-62.16, y=56.00, z=-34.94], EntityItem['item.item.bone'/25, l='MpServer', x=40.22, y=56.00, z=55.88], EntityItem['item.item.bone'/24, l='MpServer', x=40.50, y=56.00, z=54.88], EntityItem['item.item.rottenFlesh'/27, l='MpServer', x=65.91, y=56.00, z=-53.94], EntityItem['item.item.arrow'/29, l='MpServer', x=52.03, y=56.00, z=51.66], EntityItem['item.item.rottenFlesh'/28, l='MpServer', x=65.44, y=56.00, z=32.59], EntityItem['item.item.bone'/30, l='MpServer', x=51.88, y=56.00, z=52.06]]

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 8.1 (amd64) version 6.3

Java Version: 1.7.0_79, Oracle Corporation

Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation

Memory: 2691696008 bytes (2567 MB) / 3110862848 bytes (2966 MB) up to 3110862848 bytes (2966 MB)

JVM Flags: 3 total; -Xincgc -Xmx3000M -Xms3000M

IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0

FML: MCP v9.10 FML v8.0.99.99 Minecraft Forge 11.14.3.1486 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.1486.jar)

UCHIJAAAA Forge{11.14.3.1486} [Minecraft Forge] (forgeSrc-1.8-11.14.3.1486.jar)

UCHIJAAAA test{1.0} [Testing Mod] (bin)

Loaded coremods (and transformers):

GL info: ' Vendor: 'Intel' Version: '4.0.0 - Build 9.17.10.2867' Renderer: 'Intel® HD Graphics 4000'

Launched Version: 1.8

LWJGL: 2.9.1

OpenGL: Intel® HD Graphics 4000 GL version 4.0.0 - Build 9.17.10.2867, Intel

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)

[21:20:53] [Client thread/INFO] [sTDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:663]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\thecm_000\Desktop\Desktop\Coding\Minecraft\Mod Testing1\eclipse\.\crash-reports\crash-2015-06-28_21.20.53-client.txt

[21:20:53] [Client thread/INFO] [FML]: Waiting for the server to terminate/save.

[21:20:53] [Client thread/INFO] [FML]: Server terminated.

AL lib: (EE) alc_cleanup: 1 device not closed

 

 

Crash report that was saved to my pc

 

 

---- Minecraft Crash Report ----

// Daisy, daisy...

 

Time: 6/28/15 9:20 PM

Description: Rendering item

 

java.lang.NullPointerException: Rendering item

at net.minecraft.item.ItemStack.getMetadata(ItemStack.java:280)

at net.minecraft.client.renderer.ItemModelMesher.getMetadata(ItemModelMesher.java:70)

at net.minecraft.client.renderer.ItemModelMesher.getItemModel(ItemModelMesher.java:43)

at net.minecraft.client.renderer.entity.RenderItem.renderItemIntoGUI(RenderItem.java:363)

at net.minecraft.client.renderer.entity.RenderItem.renderItemAndEffectIntoGUI(RenderItem.java:414)

at net.minecraft.client.gui.inventory.GuiContainer.drawSlot(GuiContainer.java:293)

at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:116)

at net.minecraftforge.client.ForgeHooksClient.drawScreen(ForgeHooksClient.java:460)

at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1137)

at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1114)

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 net.minecraft.item.ItemStack.getMetadata(ItemStack.java:280)

at net.minecraft.client.renderer.ItemModelMesher.getMetadata(ItemModelMesher.java:70)

at net.minecraft.client.renderer.ItemModelMesher.getItemModel(ItemModelMesher.java:43)

at net.minecraft.client.renderer.entity.RenderItem.renderItemIntoGUI(RenderItem.java:363)

 

-- Item being rendered --

Details:

Item Type: null

Item Aux: ~~ERROR~~ NullPointerException: null

Item NBT: null

Item Foil: ~~ERROR~~ NullPointerException: null

Stacktrace:

at net.minecraft.client.renderer.entity.RenderItem.renderItemAndEffectIntoGUI(RenderItem.java:414)

at net.minecraft.client.gui.inventory.GuiContainer.drawSlot(GuiContainer.java:293)

at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:116)

at net.minecraftforge.client.ForgeHooksClient.drawScreen(ForgeHooksClient.java:460)

 

-- Screen render details --

Details:

Screen name: net.minecraft.client.gui.inventory.GuiCrafting

Mouse location: Scaled: (198, 58). Absolute: (396, 362)

Screen size: Scaled: (427, 240). Absolute: (854, 480). Scale factor of 2

 

-- Affected level --

Details:

Level name: MpServer

All players: 1 total; [EntityPlayerSP['Player500'/0, l='MpServer', x=2.26, y=56.00, z=-7.42]]

Chunk stats: MultiplayerChunkCache: 575, 575

Level seed: 0

Level generator: ID 01 - flat, ver 0. Features enabled: false

Level generator options:

Level spawn location: 1169.00,4.00,801.00 - World: (1169,4,801), Chunk: (at 1,0,1 in 73,50; contains blocks 1168,0,800 to 1183,255,815), Region: (2,1; contains chunks 64,32 to 95,63, blocks 1024,0,512 to 1535,255,1023)

Level time: 31875 game time, 1000 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: 17 total; [EntityItem['item.item.arrow'/10, l='MpServer', x=31.28, y=56.00, z=-43.84], EntityItem['item.item.bone'/11, l='MpServer', x=31.88, y=56.00, z=-42.41], EntityItem['item.item.arrow'/12, l='MpServer', x=55.88, y=56.00, z=-25.47], EntityItem['item.item.bone'/13, l='MpServer', x=55.41, y=56.00, z=-26.19], EntityCreeper['Creeper'/14, l='MpServer', x=-27.50, y=56.00, z=43.50], EntityPlayerSP['Player500'/0, l='MpServer', x=2.26, y=56.00, z=-7.42], EntityItem['item.item.rottenFlesh'/17, l='MpServer', x=-53.88, y=56.00, z=0.56], EntitySpider['Spider'/16, l='MpServer', x=49.50, y=56.00, z=29.50], EntityItem['item.item.bone'/20, l='MpServer', x=-33.00, y=56.00, z=-52.41], EntityCreeper['Creeper'/23, l='MpServer', x=42.00, y=56.00, z=62.38], EntityItem['item.item.bone'/22, l='MpServer', x=-62.16, y=56.00, z=-34.94], EntityItem['item.item.bone'/25, l='MpServer', x=40.22, y=56.00, z=55.88], EntityItem['item.item.bone'/24, l='MpServer', x=40.50, y=56.00, z=54.88], EntityItem['item.item.rottenFlesh'/27, l='MpServer', x=65.91, y=56.00, z=-53.94], EntityItem['item.item.arrow'/29, l='MpServer', x=52.03, y=56.00, z=51.66], EntityItem['item.item.rottenFlesh'/28, l='MpServer', x=65.44, y=56.00, z=32.59], EntityItem['item.item.bone'/30, l='MpServer', x=51.88, y=56.00, z=52.06]]

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 8.1 (amd64) version 6.3

Java Version: 1.7.0_79, Oracle Corporation

Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation

Memory: 2691696008 bytes (2567 MB) / 3110862848 bytes (2966 MB) up to 3110862848 bytes (2966 MB)

JVM Flags: 3 total; -Xincgc -Xmx3000M -Xms3000M

IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0

FML: MCP v9.10 FML v8.0.99.99 Minecraft Forge 11.14.3.1486 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.1486.jar)

UCHIJAAAA Forge{11.14.3.1486} [Minecraft Forge] (forgeSrc-1.8-11.14.3.1486.jar)

UCHIJAAAA test{1.0} [Testing Mod] (bin)

Loaded coremods (and transformers):

GL info: ' Vendor: 'Intel' Version: '4.0.0 - Build 9.17.10.2867' Renderer: 'Intel® HD Graphics 4000'

Launched Version: 1.8

LWJGL: 2.9.1

OpenGL: Intel® HD Graphics 4000 GL version 4.0.0 - Build 9.17.10.2867, Intel

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)

 

 

 

Main Class

 

 

package com.thecmaxguy.testmod1;

 

import net.minecraft.init.Blocks;

import net.minecraft.init.Items;

import net.minecraft.item.Item;

import net.minecraft.item.ItemStack;

import net.minecraftforge.fml.common.Mod;

import net.minecraftforge.fml.common.Mod.EventHandler;

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.registry.GameRegistry;

 

import com.thecmaxguy.testmod1.init.TestItems;

import com.thecmaxguy.testmod1.proxy.CommonProxy;

 

@Mod(modid = Reference.MOD_ID, name = Reference.MOD_NAME, version = Reference.VERSION)

public class TestMod1 {

 

public static Item item1;

public static Item item2;

 

@SidedProxy(clientSide = Reference.CLIENT_PROXY_CLASS, serverSide = Reference.SERVER_PROXY_CLASS)

public static CommonProxy proxy;

 

@EventHandler

public void preInit(FMLPreInitializationEvent event){

TestItems.init();

TestItems.register();

 

}

 

@EventHandler

public void init(FMLInitializationEvent event){

proxy.registerRenders();

GameRegistry.addRecipe(new ItemStack(TestMod1.item1), new Object[]{"LLL","LLL","LLL", 'L', TestItems.item2});

GameRegistry.addShapelessRecipe(new ItemStack(TestMod1.item2), new Object[]{Items.water_bucket, new ItemStack(Items.rotten_flesh, 64)});

}

 

@EventHandler

public void postInit(FMLPostInitializationEvent event){

 

}

}

 

 

 

Items Class

 

 

package com.thecmaxguy.testmod1.init;

 

import net.minecraft.client.Minecraft;

import net.minecraft.client.resources.model.ModelResourceLocation;

import net.minecraft.init.Items;

import net.minecraft.item.Item;

import net.minecraft.item.ItemStack;

import net.minecraftforge.fml.common.registry.GameRegistry;

 

import com.thecmaxguy.testmod1.Reference;

import com.thecmaxguy.testmod1.TestMod1;

 

public class TestItems {

 

public static Item item1;

public static Item item2;

 

public static void init(){

item1 = new Item().setUnlocalizedName("item1");

item2 = new Item().setUnlocalizedName("item2");

}

 

public static void register(){

GameRegistry.registerItem(item1, item1.getUnlocalizedName().substring(5));

GameRegistry.registerItem(item2, item2.getUnlocalizedName().substring(5));

 

}

 

public static void registerRenders(){

registerRender(item1);

registerRender(item2);

}

 

public static void registerRender(Item item){

Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation(Reference.MOD_ID + ":" + item.getUnlocalizedName().substring(5), "inventory"));

}

 

}

 

 

 

Like I said, this is my first Minecraft mod. I would like to know how to fix this problem, but if you have any tips to improve my code, or if I'm doing something completely wrong, I would love to know that as well.

Posted

GameRegistry.addShapelessRecipe(new ItemStack(TestMod1.item2), new Object[]{Items.water_bucket, new ItemStack(Items.rotten_flesh, 64)});

 

Your problem is here:

Items.rotten_flesh, 64

 

This is telling Minecraft you want to use rotten flesh with a metadata of 64, which doesn't exist, so it's throwing a NullPointerException. You can't use more than one item while crafting in the vanilla crafting table. You would have to make your own crafting handler.

Posted

GameRegistry.addShapelessRecipe(new ItemStack(TestMod1.item2), new Object[]{Items.water_bucket, new ItemStack(Items.rotten_flesh, 64)});

 

Your problem is here:

Items.rotten_flesh, 64

 

This is telling Minecraft you want to use rotten flesh with a metadata of 64, which doesn't exist, so it's throwing a NullPointerException.

 

That is a double NOPE.

 

2-arguments constructor of ItemStack is (Item, amount), not (Item, meta).

2nd "NOPE" is that you can apply ANY meta to given itemStack. Meta (also known as ItemStack's itemDamage field) is nothing but a simple integer (saved to NBT as short) that tells you "oh this item has some meta OR some damage".

 

 

As to real problem, looking for it now (await edit if found).

EDIT

 

You messaed up items. In your main class you declared:

   public static Item item1;
   public static Item item2;

And then, while never initializing them, you used them as result in recipes (nulls).

 

What you did is initialize wrong ones here: (In TestItems)

public static Item item1;
   public static Item item2;
   
   public static void init(){
      item1 = new Item().setUnlocalizedName("item1");
      item2 = new Item().setUnlocalizedName("item2");
   }

 

Pick one, init and use them.

1.7.10 is no longer supported by forge, you are on your own.

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

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