Jump to content

Crashes outside of Development Environment


TastyCake

Recommended Posts

So I have exported my mod as a jar file. I run it in Minecraft with the latest version of Forge and it's the only mod installed. It never crashed in my Development Environment but outside of that, it is crashing every time. The reason for it is "java.lang.NoSuchFieldError: ROCK". The crash report is on Pastebin here. I appreciate any help as the reason for the crash makes no sense to me.

My username elsewhere is Fluoride

Link to comment
Share on other sites

How did you compile your mod into a jar file?

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

3 hours ago, TastyCake said:

So I have exported my mod as a jar file. I run it in Minecraft with the latest version of Forge and it's the only mod installed. It never crashed in my Development Environment but outside of that, it is crashing every time. The reason for it is "java.lang.NoSuchFieldError: ROCK". The crash report is on Pastebin here. I appreciate any help as the reason for the crash makes no sense to me.

are you using reflection with the deobfuscated name of "ROCK" if so you doing it wrong you need to change the string based on if it's mdk or not

Link to comment
Share on other sites

1 hour ago, jredfox said:

are you using reflection with the deobfuscated name of "ROCK" if so you doing it wrong you need to change the string based on if it's mdk or not

1

Sorry but I'm not totally sure what you mean. This is the code I've got

public static final Block OBSIDIAN_BLOCK_1 = new BlockBase("obsidian_block_1", Material.ROCK, CreativeTabs.REDSTONE, SoundType.STONE,55, 6250, "pickaxe", 4);

And this is BlockBase

public BlockBase(String name, Material material, CreativeTabs tab, SoundType sound, float hardness, float resistance, String tool, int lvl) {
        super(material);
        setUnlocalizedName(name);
        setRegistryName(name);
        setCreativeTab(tab);
        setHarvestLevel(tool, lvl);
        setSoundType(sound);
        setHardness(hardness);
        setResistance(resistance);

        ModBlocks.BLOCKS.add(this);
        ModItems.ITEMS.add(new ItemBlock(this).setRegistryName(this.getRegistryName()));
    }

 

My username elsewhere is Fluoride

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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