Jump to content

Recommended Posts

Posted

Since I began with a test block to see if it'll work, I assigned the material "rock" to the block. It might not be because of that, but even so I happen to crash.

I installed the mod in the jar because it would not work if placed in the "mods" folder, would this cause the issue?

Here's the code and the log:

Test Block class file:

 

 

package chainmanner.mods.prime.blocks;

 

import net.minecraft.block.Block;

import net.minecraft.block.material.Material;

import net.minecraft.creativetab.CreativeTabs;

 

public class TestBlock extends Block {

public TestBlock(int id)

{

super(id, Material.rock);

this.setCreativeTab(CreativeTabs.tabBlock);

}

 

}

 

 

Error report:

 

 

---- Minecraft Crash Report ----

// Quite honestly, I wouldn't worry myself about that.

 

Time: 14/05/13 4:04 PM

Description: Failed to start game

 

cpw.mods.fml.common.LoaderException: java.lang.NoSuchFieldError: rock

at cpw.mods.fml.common.LoadController.transition(LoadController.java:142)

at cpw.mods.fml.common.Loader.loadMods(Loader.java:515)

at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:160)

at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:410)

at net.minecraft.client.MinecraftAppletImpl.func_71384_a(SourceFile:56)

at net.minecraft.client.Minecraft.run(Minecraft.java:732)

at java.lang.Thread.run(Unknown Source)

Caused by: java.lang.NoSuchFieldError: rock

at chainmanner.mods.prime.blocks.TestBlock.<init>(TestBlock.java:10)

at chainmanner.mods.prime.blocks.PrimeBlocks.BlocksInit(PrimeBlocks.java:11)

at chainmanner.mods.prime.PrimeMod.preInit(PrimeMod.java:22)

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 cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:494)

at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

at com.google.common.eventbus.EventBus.post(EventBus.java:267)

at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165)

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 com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

at com.google.common.eventbus.EventBus.post(EventBus.java:267)

at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98)

at cpw.mods.fml.common.Loader.loadMods(Loader.java:514)

... 5 more

 

 

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

---------------------------------------------------------------------------------------

 

-- System Details --

Details:

Minecraft Version: 1.5.1

Operating System: Windows 7 (amd64) version 6.1

Java Version: 1.7.0_17, Oracle Corporation

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

Memory: 484097232 bytes (461 MB) / 633208832 bytes (603 MB) up to 954466304 bytes (910 MB)

JVM Flags: 2 total; -Xms512m -Xmx1024m

AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used

Suspicious classes: FML and Forge are installed

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

FML: MCP v7.44 FML v5.1.43.674 Minecraft Forge 7.7.1.674 Optifine OptiFine_1.5.1_HD_U_B1 14 mods loaded, 14 mods active

mcp{7.44} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized

FML{5.1.43.674} [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized

Forge{7.7.1.674} [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized

PrimeMod{Alpha} [Prime] (minecraft.jar) Unloaded->Constructed->Errored

Backpack{1.7.8} [backpack] (backpack-1.7.8-1.5.1.zip) Unloaded->Constructed->Pre-initialized

ComputerCraft{1.52} [ComputerCraft] (ComputerCraft1.52.zip) Unloaded->Constructed->Pre-initialized

CCTurtle{1.52} [ComputerCraft Turtles] (ComputerCraft1.52.zip) Unloaded->Constructed->Pre-initialized

FlansMod{2.3} [Flan's Mod] (Flans Mod 2.3 for Minecraft 1.5.1 Universal.zip) Unloaded->Constructed->Pre-initialized

Flashlight{0.1.1} [Flashlight] (flashlight.zip) Unloaded->Constructed->Pre-initialized

iChunUtil{1.0.0} [iChunUtil] (iChunUtil1.0.0.zip) Unloaded->Constructed->Pre-initialized

GraviGun{1.5.0.2} [GraviGun] (GravityGun1.5.0v2.zip) Unloaded->Constructed->Pre-initialized

iChun_Core{1.0.0} [iChun_Core] (iChunUtil1.0.0.zip) Unloaded->Constructed->Pre-initialized

IC2{1.115.304-lf} [industrialCraft 2] (industrialcraft-2_1.115.304-lf.jar) Unloaded->Constructed->Pre-initialized

PortalGun{1.5.0.2} [PortalGun] (PortalGun1.5.0v2.zip) Unloaded->Constructed->Pre-initialized

LWJGL: 2.4.2

OpenGL: Intel® HD Graphics 3000 GL version 3.1.0 - Build 8.15.10.2696, Intel

Is Modded: Definitely; Client brand changed to 'fml,forge'

Type: Client (map_client.txt)

Texture Pack: Default

Profiler Position: N/A (disabled)

Vec3 Pool Size: ~~ERROR~~ NullPointerException: null

 

 

EDIT: One more thing. The class files had .java files mixed in. Does this affect anything?

Posted

It is. I found it in the materials section. The person whos tutorials I followed used such material and it worked successfully.

If this could be what caused it, I did not register a texture, a name, or a creative inventory tab.

 

EDIT: Never mind. I realized I was programming with build 682 while the current build I used was lower.

Guest
This topic is now closed to further replies.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • I have a custom 3d model which works perfectly. BUT I want it to be held diffrently on the players hand when the item is being used. My JSON file under assets/examplemod/items looks like this: { "model": { "type": "minecraft:condition", "on_false": { "type": "minecraft:model", "model": "examplemod:item/example_item" }, "on_true": { "type": "minecraft:model", "model": "examplemod:item/example_item_using" }, "property": "minecraft:using_item" } }   This works fine until the item is used. The correct model will be displayed but with a full black texture instead of the actuall texture. Any idea why? (I want to use the exact same texture for both items, because their model is the same just diffrent displays on firstperson_righthand and firstperson_lefthand). The models JSON's are fully blockbench files inlcuding the elements, display, textures with texture_size.   Also is this the correct way to do it? Because it feels so dumb to change the exact same model just for a diffrent right- and lefthand view.   (fyi: ItemUseAnimation is BLOCK for this item)
    • I just backed up my world then tried to create new mod with currently equipped mod but with new world still made same error. Sooo I think it's not world error. also It's working fine on singleplayer. + but it made some another weird error with new world
    • Maybe the file is too large - you can upload the log file via Mediafire
    • Create a new instance and start with Embeddium + Oculus Then add new mods one by one or in groups The "IncompatibleClassChangeError: class net.coderbot.iris.gui.option.ShadowDistanceOption" often appears in connection with an incompatible mod
    • I hosted forge modded server using feather client I was able to join without any issues yesterday, but today after I tested my shader on my single world then tried to join the world but it made error meassage. (I also changed server.properties's render settings, but I reverted it as same as yesterday) So I removed my shader and removed optifine on server and on my mod file then it made this error: Internal Exception: io.netty.handler.codec.DecoderException: net.minecraft.ResourceLocationException: Non [a-z0-9/-1 character in path of location: inecraft:ask_server\u0012\u0001\uFFFD\n\u0007targets\u001D\u0001\u0014minecraft:ask_server\u0012\u0002\uFFFD\n\uFFFD\n\u0002id!\u0014minecraft:ask_server\u0002 \u0001\uFFFD\n\u0006target\u0006\u0001\u0002\u0001\uFFFD\n\ttarget My server/client is 1.20.1 forge. And I got 34 mods total, it was working pretty fine yesterday (I did not add/remove any mods before it started happening) I hope it's not about my worlds, it's been quite long since using this world I'm not native english speaker so there may be grammar issue! Thank you for reading!
  • Topics

×
×
  • Create New...

Important Information

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