Jump to content

Recommended Posts

Posted

package minecraft.mod;

 

import net.minecraft.item.EnumToolMaterial;

import net.minecraft.item.Item;

import net.minecraft.item.ItemStack;

import net.minecraftforge.common.EnumHelper;

import cpw.mods.fml.common.Mod;

import cpw.mods.fml.common.Mod.EventHandler;

import cpw.mods.fml.common.Mod.Init;

import cpw.mods.fml.common.event.FMLPreInitializationEvent;

import cpw.mods.fml.common.network.NetworkMod;

import cpw.mods.fml.common.registry.*;

import cpw.mods.fml.common.registry.LanguageRegistry;

import cpw.mods.fml.common.Mod.PreInit;

import net.minecraft.block.Block;

import net.minecraft.item.EnumToolMaterial;

import net.minecraft.item.ItemFood;

//Define basic information for mod

@Mod(modid= "minecraft.mod", name = "Mandarine Mania", version = "v0.1")

//Define Client & Server Side Requirements

@NetworkMod(clientSideRequired = true, serverSideRequired = false)

public class FoodLol {

   

    @PreInit

    public void preInit(FMLPreInitializationEvent event) {

    }

//Define Our Items

public static Item DiamondMandarine;

public static Item DiamondDust;

public static Item Mandarine;

//Define Our tools

public static Item DiamondMandarineSword;

public static Item DiamondMandarineShovel;

public static Item DiamondMandarinePickAxe;

public static Item DiamondMandarineAxe;

public static Item DiamondMandarineHoe;

 

 

//Define our Material

public static EnumToolMaterial CraftingDiamondMandarine;

static {

EnumHelper.addToolMaterial("CraftingDiamondMandarine", 3, 5672, 16.0F, 3.0F, 10);

//Redifine Our items

DiamondMandarine = new DiamondMandarine(1005).setUnlocalizedName("DiamondMandarine");

DiamondDust = new DiamondDust(1006).setUnlocalizedName("DiamondDust");

Mandarine = new Mandarine(1007).setUnlocalizedName("Mandarine");

 

 

//Settings For our Tools

DiamondMandarineSword = (new ToolDiamondMandarineSword (1000, EnumToolMaterial.CraftingDiamondMandarine).setUnlocalizedName("Minecraft_Mod:DiamondMandarineSword"));

DiamondMandarineShovel = (new ToolDiamondMandarineShovel(1001, EnumToolMaterial.CraftingDiamondMandarine).setUnlocalizedName("MinecraftMod:DiamondMandarine_Shovel"));

DiamondMandarinePickAxe = (new ToolDiamondMandarinePickAxe(1002, EnumToolMaterial.CraftingDiamondMandarine).setUnlocalizedName("MinecraftMod:DiamondMandarine_PickAxe"));

DiamondMandarineAxe = (new ToolDiamondMandarineAxe(1003, EnumToolMaterial.CraftingDiamondMandarine).setUnlocalizedName("MinecraftMod:DiamondMandarine_Axe"));

DiamondMandarineHoe= (new ToolDiamondMandarineHoe(1004, EnumToolMaterial.CraftingDiamondMandarine).setUnlocalizedName("MinecraftMod:DiamondMandarine_Hoe"));

//Register our Tools

GameRegistry.registerItem(DiamondMandarineSword, "DiamondMandarineSword");

LanguageRegistry.addName(DiamondMandarineSword, "DiamondMandarine Sword");

 

GameRegistry.registerItem(DiamondMandarineShovel, "DiamondMandarineShovel");

LanguageRegistry.addName(DiamondMandarineShovel, "DiamondMandarine Shovel");

 

GameRegistry.registerItem(DiamondMandarinePickAxe, "DiamondMandarinePickAxe");

LanguageRegistry.addName(DiamondMandarinePickAxe, "DiamondMandarine Pickaxe");

 

GameRegistry.registerItem(DiamondMandarineAxe, "DiamondMandarineAxe");

LanguageRegistry.addName(DiamondMandarineAxe, "DiamondMandarine Axe");

 

GameRegistry.registerItem(DiamondMandarineHoe, "DiamondMandarineHoe");

LanguageRegistry.addName(DiamondMandarineHoe, "DiamondMandarine Hoe");

 

//Register our Items

LanguageRegistry.addName(DiamondMandarine, "Diamond Mandarine");

LanguageRegistry.addName(DiamondDust, "Diamond Dust");

LanguageRegistry.addName(Mandarine, "Mandarine");

 

 

//Define Recipe for Tools

GameRegistry.addRecipe(new ItemStack(FoodLol.DiamondMandarineSword, 1), "R","R","S",

'R', FoodLol.CraftingDiamondMandarine, 'S', Item.stick);

//Define Recipe for Items

GameRegistry.addRecipe(new ItemStack(FoodLol.DiamondMandarine, 1), "DDD","DSD","DDD",

'D', FoodLol.DiamondDust, 'S', FoodLol.Mandarine);

GameRegistry.addShapelessRecipe(new ItemStack(FoodLol.DiamondDust, 9), new ItemStack(Item.diamond));

 

 

}

 

}

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

 

and tthis is the error:

 

 

 

2014-02-17 18:16:07 [iNFO] [sTDOUT] ---- Minecraft Crash Report ----

2014-02-17 18:16:07 [iNFO] [sTDOUT] // This is a token for 1 free hug. Redeem at your nearest Mojangsta: [~~HUG~~]

2014-02-17 18:16:07 [iNFO] [sTDOUT]

2014-02-17 18:16:07 [iNFO] [sTDOUT] Time: 17/02/14 18:16

2014-02-17 18:16:07 [iNFO] [sTDOUT] Description: Initializing game

2014-02-17 18:16:07 [iNFO] [sTDOUT]

2014-02-17 18:16:07 [iNFO] [sTDOUT] java.lang.ExceptionInInitializerError

2014-02-17 18:16:07 [iNFO] [sTDOUT] at java.lang.Class.forName0(Native Method)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at java.lang.Class.forName(Unknown Source)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:462)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at java.lang.reflect.Method.invoke(Unknown Source)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at com.google.common.eventbus.EventBus.post(EventBus.java:267)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:201)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:181)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at java.lang.reflect.Method.invoke(Unknown Source)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at com.google.common.eventbus.EventBus.post(EventBus.java:267)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:112)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at cpw.mods.fml.common.Loader.loadMods(Loader.java:511)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:183)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at net.minecraft.client.Minecraft.startGame(Minecraft.java:473)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at net.minecraft.client.Minecraft.run(Minecraft.java:808)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at net.minecraft.client.main.Main.main(Main.java:93)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at java.lang.reflect.Method.invoke(Unknown Source)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at net.minecraft.launchwrapper.Launch.main(Launch.java:27)

2014-02-17 18:16:07 [iNFO] [sTDOUT] Caused by: java.lang.NullPointerException

2014-02-17 18:16:07 [iNFO] [sTDOUT] at net.minecraft.item.crafting.CraftingManager.addRecipe(CraftingManager.java:214)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at cpw.mods.fml.common.registry.GameRegistry.addShapedRecipe(GameRegistry.java:245)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at cpw.mods.fml.common.registry.GameRegistry.addRecipe(GameRegistry.java:240)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at minecraft.mod.FoodLol.<clinit>(FoodLol.java:78)

2014-02-17 18:16:07 [iNFO] [sTDOUT] ... 35 more

2014-02-17 18:16:07 [iNFO] [sTDOUT]

2014-02-17 18:16:07 [iNFO] [sTDOUT]

2014-02-17 18:16:07 [iNFO] [sTDOUT] A detailed walkthrough of the error, its code path and all known details is as follows:

2014-02-17 18:16:07 [iNFO] [sTDOUT] ---------------------------------------------------------------------------------------

2014-02-17 18:16:07 [iNFO] [sTDOUT]

2014-02-17 18:16:07 [iNFO] [sTDOUT] -- Head --

2014-02-17 18:16:07 [iNFO] [sTDOUT] Stacktrace:

2014-02-17 18:16:07 [iNFO] [sTDOUT] at java.lang.Class.forName0(Native Method)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at java.lang.Class.forName(Unknown Source)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:462)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at java.lang.reflect.Method.invoke(Unknown Source)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at com.google.common.eventbus.EventBus.post(EventBus.java:267)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:201)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:181)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at java.lang.reflect.Method.invoke(Unknown Source)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at com.google.common.eventbus.EventBus.post(EventBus.java:267)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:112)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at cpw.mods.fml.common.Loader.loadMods(Loader.java:511)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:183)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at net.minecraft.client.Minecraft.startGame(Minecraft.java:473)

2014-02-17 18:16:07 [iNFO] [sTDOUT]

2014-02-17 18:16:07 [iNFO] [sTDOUT] -- Initialization --

2014-02-17 18:16:07 [iNFO] [sTDOUT] Details:

2014-02-17 18:16:07 [iNFO] [sTDOUT] Stacktrace:

2014-02-17 18:16:07 [iNFO] [sTDOUT] at net.minecraft.client.Minecraft.run(Minecraft.java:808)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at net.minecraft.client.main.Main.main(Main.java:93)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at java.lang.reflect.Method.invoke(Unknown Source)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)

2014-02-17 18:16:07 [iNFO] [sTDOUT] at net.minecraft.launchwrapper.Launch.main(Launch.java:27)

2014-02-17 18:16:07 [iNFO] [sTDOUT]

2014-02-17 18:16:07 [iNFO] [sTDOUT] -- System Details --

2014-02-17 18:16:07 [iNFO] [sTDOUT] Details:

2014-02-17 18:16:07 [iNFO] [sTDOUT] Minecraft Version: 1.6.4

2014-02-17 18:16:07 [iNFO] [sTDOUT] Operating System: Windows 7 (x86) version 6.1

2014-02-17 18:16:07 [iNFO] [sTDOUT] Java Version: 1.7.0_45, Oracle Corporation

2014-02-17 18:16:07 [iNFO] [sTDOUT] Java VM Version: Java HotSpot Client VM (mixed mode), Oracle Corporation

2014-02-17 18:16:07 [iNFO] [sTDOUT] Memory: 954064224 bytes (909 MB) / 1060372480 bytes (1011 MB) up to 1060372480 bytes (1011 MB)

2014-02-17 18:16:07 [iNFO] [sTDOUT] JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M

2014-02-17 18:16:07 [iNFO] [sTDOUT] AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used

2014-02-17 18:16:07 [iNFO] [sTDOUT] Suspicious classes: FML and Forge are installed

2014-02-17 18:16:07 [iNFO] [sTDOUT] IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0

2014-02-17 18:16:07 [iNFO] [sTDOUT] FML: MCP v8.11 FML v6.4.49.965 Minecraft Forge 9.11.1.965 4 mods loaded, 4 mods active

2014-02-17 18:16:07 [iNFO] [sTDOUT] mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed

2014-02-17 18:16:07 [iNFO] [sTDOUT] FML{6.4.49.965} [Forge Mod Loader] (bin) Unloaded->Constructed

2014-02-17 18:16:07 [iNFO] [sTDOUT] Forge{9.11.1.965} [Minecraft Forge] (bin) Unloaded->Constructed

2014-02-17 18:16:07 [iNFO] [sTDOUT] minecraft.mod{v0.1} [Mandarine Mania] (bin) Unloaded

2014-02-17 18:16:07 [iNFO] [sTDOUT] Launched Version: 1.6

2014-02-17 18:16:07 [iNFO] [sTDOUT] LWJGL: 2.9.0

2014-02-17 18:16:07 [iNFO] [sTDOUT] OpenGL: GeForce GT 610/PCIe/SSE2 GL version 4.4.0, NVIDIA Corporation

2014-02-17 18:16:07 [iNFO] [sTDOUT] Is Modded: Definitely; Client brand changed to 'fml,forge'

2014-02-17 18:16:07 [iNFO] [sTDOUT] Type: Client (map_client.txt)

2014-02-17 18:16:07 [iNFO] [sTDOUT] Resource Pack: Default

2014-02-17 18:16:07 [iNFO] [sTDOUT] Current Language: English (US)

2014-02-17 18:16:07 [iNFO] [sTDOUT] Profiler Position: N/A (disabled)

2014-02-17 18:16:07 [iNFO] [sTDOUT] Vec3 Pool Size: ~~ERROR~~ NullPointerException: null

2014-02-17 18:16:07 [iNFO] [sTDOUT] #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\maximka2030\Desktop\MCForge MODDING\MOD\mcp\jars\.\crash-reports\crash-2014-02-17_18.16.07-client.tx

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

PLS HELP ME

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.