Jump to content

Recommended Posts

Posted

My test client crashes, I have no errors. The only thing I understand from the crash report was something about "Can't load" or something like that, do I have to reset the forge folder?

 

 

Crash report:

 

 

[18:54:50] [main/INFO] [GradleStart]: Extra: []

[18:54:50] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --accessToken, {REDACTED}, --assetIndex, 1.7.10, --assetsDir, F:/.gradle/caches/minecraft/assets, --version, 1.7.10, --tweakClass, cpw.mods.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker]

[18:54:50] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker

[18:54:50] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker

[18:54:50] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker

[18:54:50] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker

[18:54:50] [main/INFO] [FML]: Forge Mod Loader version 7.10.85.1277 for Minecraft 1.7.10 loading

[18:54:50] [main/INFO] [FML]: Java is Java HotSpot 64-Bit Server VM, version 1.7.0_45, running on Windows 8:amd64:6.2, installed at C:\Program Files\Java\jre7

[18:54:50] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation

[18:54:50] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker

[18:54:50] [main/INFO] [GradleStart]: Injecting location in coremod cpw.mods.fml.relauncher.FMLCorePlugin

[18:54:50] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin

[18:54:50] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker

[18:54:50] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker

[18:54:50] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker

[18:54:50] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker

[18:54:50] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper

[18:54:50] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!

[18:54:51] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing

[18:54:51] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper

[18:54:51] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker

[18:54:51] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker

[18:54:51] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker

[18:54:51] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}

[18:54:52] [main/INFO]: Setting user: Player968

[18:54:53] [Client thread/INFO]: LWJGL Version: 2.9.1

[18:54:54] [Client thread/INFO] [sTDOUT]: [tv.twitch.StandardCoreAPI:<init>:16]: If on Windows, make sure to provide all of the necessary dll's as specified in the twitchsdk README. Also, make sure to set the PATH environment variable to point to the directory containing the dll's.

[18:54:54] [Client thread/ERROR]: Couldn't initialize twitch stream

[18:54:54] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization

[18:54:54] [Client thread/INFO] [FML]: MinecraftForge v10.13.2.1277 Initialized

[18:54:54] [Client thread/INFO] [FML]: Replaced 183 ore recipies

[18:54:54] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization

[18:54:54] [Client thread/INFO] [FML]: Searching F:\Desktop\forge-1.7.10-10.13.2.1277-src\eclipse\mods for mods

[18:54:56] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load

[18:54:56] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, morethingsmod] at CLIENT

[18:54:56] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, morethingsmod] at SERVER

[18:54:57] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:morethingsmod

[18:54:57] [Client thread/INFO] [FML]: Processing ObjectHolder annotations

[18:54:57] [Client thread/INFO] [FML]: Found 341 ObjectHolder annotations

[18:54:57] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0

[18:54:57] [Client thread/INFO] [FML]: Applying holder lookups

[18:54:57] [Client thread/INFO] [FML]: Holder lookups applied

[18:54:57] [Client thread/ERROR] [FML]: Fatal errors were detected during the transition from PREINITIALIZATION to INITIALIZATION. Loading cannot continue

[18:54:57] [Client thread/ERROR] [FML]:

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

FML{7.10.85.1277} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.2.1277.jar) Unloaded->Constructed->Pre-initialized

Forge{10.13.2.1277} [Minecraft Forge] (forgeSrc-1.7.10-10.13.2.1277.jar) Unloaded->Constructed->Pre-initialized

morethingsmod{1.0} [morethingsmod] (bin) Unloaded->Constructed->Errored

[18:54:57] [Client thread/ERROR] [FML]: The following problems were captured during this phase

[18:54:57] [Client thread/ERROR] [FML]: Caught exception from morethingsmod

java.lang.NullPointerException

at com.morethings.morethingsmod.morethingsmod.preinit(morethingsmod.java:139) ~[bin/:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_45]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_45]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_45]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_45]

at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513) ~[forgeSrc-1.7.10-10.13.2.1277.jar:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_45]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_45]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_45]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_45]

at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?]

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?]

at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208) ~[forgeSrc-1.7.10-10.13.2.1277.jar:?]

at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187) ~[forgeSrc-1.7.10-10.13.2.1277.jar:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_45]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_45]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_45]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_45]

at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?]

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?]

at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118) [LoadController.class:?]

at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:513) [Loader.class:?]

at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:239) [FMLClientHandler.class:?]

at net.minecraft.client.Minecraft.startGame(Minecraft.java:522) [Minecraft.class:?]

at net.minecraft.client.Minecraft.run(Minecraft.java:931) [Minecraft.class:?]

at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_45]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_45]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_45]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_45]

at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]

at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]

at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78) [start/:?]

at GradleStart.main(GradleStart.java:45) [start/:?]

[18:54:57] [Client thread/INFO] [sTDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:388]: ---- Minecraft Crash Report ----

// There are four lights!

 

Time: 2015-01-24 18:54

Description: Initializing game

 

java.lang.NullPointerException: Initializing game

at com.morethings.morethingsmod.morethingsmod.preinit(morethingsmod.java:139)

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:513)

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.EventSubscriber.handleEvent(EventSubscriber.java:74)

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)

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

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

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

at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208)

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

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.EventSubscriber.handleEvent(EventSubscriber.java:74)

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)

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

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

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

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

at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:513)

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

at net.minecraft.client.Minecraft.startGame(Minecraft.java:522)

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

at net.minecraft.client.main.Main.main(Main.java:164)

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 net.minecraft.launchwrapper.Launch.launch(Launch.java:135)

at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78)

at GradleStart.main(GradleStart.java:45)

 

 

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

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

 

-- Head --

Stacktrace:

at com.morethings.morethingsmod.morethingsmod.preinit(morethingsmod.java:139)

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:513)

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.EventSubscriber.handleEvent(EventSubscriber.java:74)

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)

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

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

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

at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208)

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

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.EventSubscriber.handleEvent(EventSubscriber.java:74)

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)

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

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

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

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

at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:513)

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

at net.minecraft.client.Minecraft.startGame(Minecraft.java:522)

 

-- Initialization --

Details:

Stacktrace:

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

at net.minecraft.client.main.Main.main(Main.java:164)

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 net.minecraft.launchwrapper.Launch.launch(Launch.java:135)

at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78)

at GradleStart.main(GradleStart.java:45)

 

-- System Details --

Details:

Minecraft Version: 1.7.10

Operating System: Windows 8 (amd64) version 6.2

Java Version: 1.7.0_45, Oracle Corporation

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

Memory: 939357480 bytes (895 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)

JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M

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

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

FML: MCP v9.05 FML v7.10.85.1277 Minecraft Forge 10.13.2.1277 4 mods loaded, 4 mods active

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

FML{7.10.85.1277} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.2.1277.jar) Unloaded->Constructed->Pre-initialized

Forge{10.13.2.1277} [Minecraft Forge] (forgeSrc-1.7.10-10.13.2.1277.jar) Unloaded->Constructed->Pre-initialized

morethingsmod{1.0} [morethingsmod] (bin) Unloaded->Constructed->Errored

Launched Version: 1.7.10

LWJGL: 2.9.1

OpenGL: GeForce GTX 660 Ti/PCIe/SSE2 GL version 4.4.0, NVIDIA Corporation

GL Caps: Using GL 1.3 multitexturing.

Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.

Anisotropic filtering is supported and maximum anisotropy is 16.

Shaders are available because OpenGL 2.1 is supported.

 

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

Type: Client (map_client.txt)

Resource Packs: []

Current Language: English (US)

Profiler Position: N/A (disabled)

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

Anisotropic Filtering: Off (1)

[18:54:57] [Client thread/INFO] [sTDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:398]: #@!@# Game crashed! Crash report saved to: #@!@# F:\Desktop\forge-1.7.10-10.13.2.1277-src\eclipse\.\crash-reports\crash-2015-01-24_18.54.57-client.txt

 

 

Posted

Okay, I will post the main modding file, sorry for bad english? im swedish.

 

package com.morethings.morethingsmod;

 

import net.minecraft.block.Block;

import net.minecraft.block.material.Material;

import net.minecraft.creativetab.CreativeTabs;

import net.minecraft.init.Blocks;

import net.minecraft.init.Items;

import net.minecraft.item.Item;

import net.minecraft.item.Item.ToolMaterial;

import net.minecraft.item.ItemArmor;

import net.minecraft.item.ItemArmor.ArmorMaterial;

import net.minecraft.item.ItemFood;

import net.minecraft.item.ItemStack;

import net.minecraftforge.common.MinecraftForge;

import net.minecraftforge.common.util.EnumHelper;

import cpw.mods.fml.common.FMLCommonHandler;

import cpw.mods.fml.common.Mod;

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

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

import cpw.mods.fml.common.ModMetadata;

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

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

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

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

 

@Mod(modid = morethingsmod.MODID, name = morethingsmod.NAME, version = morethingsmod.VERSION)

 

public class morethingsmod {

 

 

 

 

    public static final String MODID = "morethingsmod";

    public static final String VERSION = "1.0";

    public static final String NAME = "morethingsmod";

   

    //Blocks etc.

    public static Block BlockTest;

    public static Block BlockAliasOre;

   

    //Items, Food etc.

   

    public static Item itemTest;

    public static Item itemSouup;

    public static Item itemSharpStick;

    public static Item itemKnife;

    public static Item itemEasterEgg;

    public static Item itemIronBattleAxe;

    public static Item itemHejsan;

    public static Item itemSpeedBoots;

    public static Item itemFriedEgg;

    public static Item itemDungKey;

    public static Item itemLegDungKey;

    public static Item itemEmeraldSword;

    public static Item itemDiaDungKey;

 

   

    //Other

   

    public static final Item.ToolMaterial knifeToolMaterial = EnumHelper.addToolMaterial("knifeToolMaterial", 0, 300, 1F, 0.0F, 0);

    public static final Item.ToolMaterial stickToolMaterial = EnumHelper.addToolMaterial("stickToolMaterial", 0, 100, 0F, 0, 0);

    public static final Item.ToolMaterial ironBattleToolMaterial = EnumHelper.addToolMaterial("ironBattleToolMaterial", 0, 700, 2F, 2F, 3);

    public static final Item.ToolMaterial emeraldToolMaterial = EnumHelper.addToolMaterial("emeraldToolMaterial", 4, 1050, 2F, 4.0F, 3);

   

    public static final  ItemArmor.ArmorMaterial armorSpeedBootsMaterial = EnumHelper.addArmorMaterial("armorSpeedBootsMaterial", 15, new int[]{1, 3, 2, 1}, 0);

   

   

    MoreThingsModEventHandler events = new MoreThingsModEventHandler();

   

   

    public static CreativeTabs hejTab = new CreativeTabs("hejsanTab"){

public Item getTabIconItem() {

return Items.diamond;

}

   

    };

   

    @EventHandler

    public void preinit(FMLPreInitializationEvent event)

    { 

   

    //Events

   

    FMLCommonHandler.instance().bus().register(events);

   

    MinecraftForge.EVENT_BUS.register(events);

   

   

   

    //Items, Tools, Food, Etc.

   

   

   

    itemTest = new ItemTest().setUnlocalizedName("ItemTest").setCreativeTab(hejTab).setTextureName("morethingsmod:testitem");

    GameRegistry.registerItem(itemTest, itemTest.getUnlocalizedName());

   

   

   

   

   

    itemFriedEgg = new ItemFriedEgg(20, 1.0F, true).setUnlocalizedName("ItemFriedEgg").setCreativeTab(hejTab).setTextureName("morethingsmod:friedEgg");

    GameRegistry.registerItem(itemFriedEgg, itemFriedEgg.getUnlocalizedName());

   

    itemHejsan = new ItemHejsan().setUnlocalizedName("ItemHejsan").setCreativeTab(hejTab).setTextureName("morethingsmod:testitem");

    GameRegistry.registerItem(itemHejsan, itemHejsan.getUnlocalizedName());

   

    itemEasterEgg = new ItemEasterEgg().setUnlocalizedName("ItemEasterEgg").setCreativeTab(hejTab).setTextureName("morethingsmod:Easter Egg");

    GameRegistry.registerItem(itemEasterEgg, itemEasterEgg.getUnlocalizedName());

   

    itemSouup = new ItemSouup(0).setUnlocalizedName("ItemSouup").setCreativeTab(hejTab).setTextureName("morethingsmod:testitem");

    GameRegistry.registerItem(itemSouup, itemSouup.getUnlocalizedName());

   

    itemSharpStick = new ItemSharpStick(stickToolMaterial).setUnlocalizedName("ItemSharpStick").setCreativeTab(hejTab).setTextureName("morethingsmod:sharpstick");

    GameRegistry.registerItem(itemSharpStick, itemSharpStick.getUnlocalizedName());

   

    itemKnife = new ItemKnife(knifeToolMaterial).setUnlocalizedName("ItemKnife").setCreativeTab(hejTab).setTextureName("morethingsmod:knife");

    GameRegistry.registerItem(itemKnife, itemKnife.getUnlocalizedName());

   

    itemIronBattleAxe = new ItemIronBattleAxe(ironBattleToolMaterial).setUnlocalizedName("ItemIronBattleAxe").setCreativeTab(hejTab).setTextureName("morethingsmod:Battle Axe two");

    GameRegistry.registerItem(itemIronBattleAxe, itemIronBattleAxe.getUnlocalizedName());

   

    itemDiaDungKey = new ItemDiaDungKey().setUnlocalizedName("ItemDiaDungKey").setCreativeTab(hejTab).setTextureName("morethingsmod:diamonddungeonkey");

    GameRegistry.registerItem(itemDiaDungKey, itemDiaDungKey.getUnlocalizedName());

   

    itemEmeraldSword = new ItemEmeraldSword(emeraldToolMaterial).setUnlocalizedName("ItemEmeraldSword").setCreativeTab(hejTab).setTextureName("morethingsmod:emeraldsword");

    GameRegistry.registerItem(itemEmeraldSword, itemEmeraldSword.getUnlocalizedName());

   

    itemLegDungKey = new ItemLegDungKey().setUnlocalizedName("ItemLegDungKey").setCreativeTab(hejTab).setTextureName("morethingsmod:legendarydungeonkey");

    GameRegistry.registerItem(itemLegDungKey, itemLegDungKey.getUnlocalizedName());

   

    itemDungKey = new ItemDungKey().setUnlocalizedName("ItemDungKey").setCreativeTab(hejTab).setTextureName("morethingsmod:defaultdungeonkey");

    GameRegistry.registerItem(itemDungKey, itemDungKey.getUnlocalizedName());

   

    //Blocks

   

    BlockTest = new BlockTest().setBlockName("blockTest").setCreativeTab(hejTab).setBlockTextureName("morethingsmod:testblock");

    GameRegistry.registerBlock(BlockTest, "blockTest" );

       

    BlockAliasOre = new BlockAliasOre().setBlockName("blockAliasore").setCreativeTab(hejTab).setBlockTextureName("morethingsmod:aliasore");

    GameRegistry.registerBlock(BlockAliasOre, "blockAliasore" );

   

    //Armor

   

    itemSpeedBoots = new SpeedArmor(armorSpeedBootsMaterial, 3, 3).setUnlocalizedName("ItemSpeedBoots").setCreativeTab(hejTab).setTextureName("morethingsmod:speedboots");

    GameRegistry.registerItem(itemSpeedBoots, itemSpeedBoots.getUnlocalizedName());

   

     

   

   

}

 

 

@EventHandler

    public void init(FMLInitializationEvent event)

    {

    GameRegistry.addRecipe(new ItemStack(BlockTest), new Object[]{"DDD",

                                                              "D D",

                                                              "DDD", 'D', Items.diamond});

    GameRegistry.addRecipe(new ItemStack(itemSharpStick), new Object[]{"  ",

                                                            " SK",

                                                            "  ", 'K', itemKnife, 'S', Items.stick});

    GameRegistry.addRecipe(new ItemStack(itemKnife), new Object[]{"  ",

                                                                      " I",

                                                                      " S", 'I', Items.iron_ingot, 'S', Items.stick});

   

    GameRegistry.addSmelting(Items.egg, new ItemStack(itemFriedEgg), 0.1f);

             

   

   

    }

   

    @EventHandler

    public void postinit(FMLPostInitializationEvent event)

    {

   

    }

}

   

   

     

   

   

 

 

 

Posted

Hi

 

By far the easiest way to track these down is to use your debugger.

These links might help

http://www.vogella.com/tutorials/EclipseDebugging/article.html

http://www.terryanderson.ca/debugging/run.html

 

I think it's well worth spending a couple of hours learning how to use your debugger properly because it will pay you back many times over, you'll wonder how you ever managed without it.

 

Also a comment - it's bad style to name your object instances with a capital, it makes them look like classes.

 

i.e.

public static Item itemTest; // good

 

public static Block BlockTest;  // bad, should be Block blockTest

 

-TGG

 

 

Posted

java.lang.NullPointerException
   at com.morethings.morethingsmod.morethingsmod.preinit(morethingsmod.java:139) ~[bin/:?]

What's on line 139 in

morethingsmod.java

?

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

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.