Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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?

Rock is not a material put stone or look in net.minecraft.block.material for one you want.

  • Author

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.

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.