Jump to content

Recommended Posts

Posted

Hi i'm making a mod currently and when i try to start the minecraft client, with MCP, it gives me a error

 

[10:25:45] [Client thread/INFO] [sTDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:660]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\box19\Desktop\MOD1.8\eclipse\.\crash-reports\crash-2016-02-18_10.25.45-client.txt

Java HotSpot 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release

 

 

 

 

Main Code:

 

package com.example.examplemod;

 

import net.minecraft.client.Minecraft;

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

import net.minecraft.item.Item;

import net.minecraftforge.fml.common.Mod;

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

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

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;

 

@Mod(modid = "tutorial", name = "Tutorial Mod", version = "1.0.0")

public class ExampleMod

{

public static final String MODID = "testmod";

public static final String NAME = "Test Mod";

public static final String VERSION = "1.0.0";

 

    @Instance(value = ExampleMod.MODID) //Tell Forge what instance to use.

    public static ExampleMod instance;

     

    @SidedProxy

    public static Item myFirstItem;

   

 

 

 

   

 

   

    @EventHandler

    public void preInit(FMLPreInitializationEvent event) {

   

    }

 

        @EventHandler

        public void init(FMLInitializationEvent e) {

            GameRegistry.registerItem(myFirstItem, "myFirstItem");

        }

 

    @EventHandler

    public void postInit(FMLPostInitializationEvent event) {

   

    }

    }

 

 

MyItem Code:

 

package com.example.examplemod;

 

import net.minecraft.creativetab.CreativeTabs;

import net.minecraft.item.Item;

 

public class MyItem extends Item

{

    public MyItem()

    {

          super();

          setUnlocalizedName("FirstItem");

          setCreativeTab(CreativeTabs.tabRedstone);

          setMaxStackSize(500);

    }

 

}

 

CommonProxy Code:

 

package com.example.examplemod.proxy;

 

public class CommonProxy {

// Client stuff

    public void registerRenderers()

    {

        // Nothing here as the server doesn't render graphics!

    }

}

 

 

ClientProxy Code:

 

package com.example.examplemod.proxy;

 

public class ClientProxy {

 

public void registerRenderers()

    {

   

    }

}

 

________________________________________

 

Hope You Can Help ;D

Posted

1. dont use the example mod create your own

2. use code tags [nobbc]


[/nobbc]

3. if u got a crash show us ur crash log (u can use spoiler tags there)

4. you are never initliazing myFirstItem, so it will always be null

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.