1

Need help with this minecraft mod code.

RuggyIAm's Avatar RuggyIAm8/7/18 10:52 am
1 emeralds 659 5
8/7/2018 7:32 pm
IJustErik's Avatar IJustErik
hey, im currently working on a minecraft mod, but im new to minecraft modding. I was just trying to add some blocks and items, but something went wrong?

i had already added some items and blocks before. I coppied that code over but it didnt work.

i dont know what went wrong, but i hope this crash report could tell you something.


:)


---- Minecraft Crash Report ----
// Don't do that.

Time: 8/7/18 3:32 PM
Description: Initializing game

java.lang.RuntimeException: One of more entry values did not copy to the correct id. Check log for details!
at net.minecraftforge.registries.ForgeRegistry.sync(ForgeRegistry.java:547)
at net.minecraftforge.registries.GameData.loadRegistry(GameData.java:494)
at net.minecraftforge.registries.GameData.freezeData(GameData.java:229)
at net.minecraftforge.fml.common.Loader.initializeMods(Loader.java:753)
at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:329)
at net.minecraft.client.Minecraft.init(Minecraft.java:581)
at net.minecraft.client.Minecraft.run(Minecraft.java:421)
at net.minecraft.client.main.Main.main(Main.java:118)
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 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.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97)
at GradleStart.main(GradleStart.java:25)


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Thread: Client thread
Stacktrace:
at net.minecraftforge.registries.ForgeRegistry.sync(ForgeRegistry.java:547)
at net.minecraftforge.registries.GameData.loadRegistry(GameData.java:494)
at net.minecraftforge.registries.GameData.freezeData(GameData.java:229)
at net.minecraftforge.fml.common.Loader.initializeMods(Loader.java:753)
at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:329)
at net.minecraft.client.Minecraft.init(Minecraft.java:581)

-- Initialization --
Details:
Stacktrace:
at net.minecraft.client.Minecraft.run(Minecraft.java:421)
at net.minecraft.client.main.Main.main(Main.java:118)
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 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.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97)
at GradleStart.main(GradleStart.java:25)

-- System Details --
Details:
Minecraft Version: 1.12.2
Operating System: Windows 10 (amd64) version 10.0
Java Version: 1.8.0_181, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 828367472 bytes (789 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP 9.42 Powered by Forge 14.23.4.2705 5 mods loaded, 5 mods active
States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored

| State | ID | Version | Source | Signature |
|:------ |:--------- |:------------ |:-------------------------------- |:--------- |
| UCHIJA | minecraft | 1.12.2 | minecraft.jar | None |
| UCHIJA | mcp | 9.42 | minecraft.jar | None |
| UCHIJA | FML | 8.0.99.99 | forgeSrc-1.12.2-14.23.4.2705.jar | None |
| UCHIJA | forge | 14.23.4.2705 | forgeSrc-1.12.2-14.23.4.2705.jar | None |
| UCHIJA | nm | 1.0 | bin | None |

Loaded coremods (and transformers):
GL info: ' Vendor: 'Intel' Version: '4.5.0 - Build 22.20.16.4771' Renderer: 'Intel(R) HD Graphics 520'
Launched Version: 1.12.2
LWJGL: 2.9.4
OpenGL: Intel(R) HD Graphics 520 GL version 4.5.0 - Build 22.20.16.4771, 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: Yes
Is Modded: Definitely; Client brand changed to 'fml,forge'
Type: Client (map_client.txt)
Resource Packs:
Current Language: English (US)
Profiler Position: N/A (disabled)
CPU: 4x Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz
Posted by RuggyIAm's Avatar
RuggyIAm
Level 1 : New Crafter
0

Create an account or sign in to comment.

5

1
08/07/2018 7:32 pm
Level 4 : Apprentice Modder
IJustErik
IJustErik's Avatar
next time just paste ur src where the stacktrace points to
1
08/07/2018 11:26 am
Level 28 : Expert Button Pusher
Abdera Associate
Abdera Associate's Avatar
What version of Minecraft did you use the code in before? Also, do you use a coding software that tells you where the errors are?
1
08/07/2018 11:30 am
Level 1 : New Crafter
RuggyIAm
RuggyIAm's Avatar
The mod was only for Minecraft version 1.12.2 and i use Eclipse for modding.

No errors/problems were shown.
1
08/07/2018 12:10 pm
Level 28 : Expert Button Pusher
Abdera Associate
Abdera Associate's Avatar
There are a number of "unknown source"s scattered around. Perhaps, there certain objects are calling up code that is in the mod but doesn't apply to them. This might cause Eclipse to think everything is in order; but it keeps calling code for something that doesn't apply to the situation.
1
08/07/2018 1:07 pm
Level 1 : New Crafter
RuggyIAm
RuggyIAm's Avatar
Yeah, i figured out the cause of the problem. I was making a bunc of diffrent blocks and items at the same time, and i guess Eclipse dont like that. So i got rid of the code i wrote, and made the items one by one and play testing it each time.
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome