Jump to content

Recommended Posts

Posted

[16:43:01] [main/INFO] [GradleStart]: assetsDir: Minecraft/caches/minecraft/assets

[16:43:02] [main/INFO] [GradleStart]: Extra: [-Djava.library.path=caches/minecraft/net/minecraft/minecraft_natives/1.8]

[16:43:02] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, Minecraft/caches/minecraft/assets, --assetIndex, 1.8, --accessToken, {REDACTED}, --version, 1.8, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, -Djava.library.path=caches/minecraft/net/minecraft/minecraft_natives/1.8, --tweakClass, net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker]

[16:43:02] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker

[16:43:02] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker

[16:43:02] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker

[16:43:02] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker

[16:43:02] [main/INFO] [FML]: Forge Mod Loader version 8.0.26.1299 for Minecraft 1.8 loading

[16:43:02] [main/INFO] [FML]: Java is Java HotSpot Client VM, version 1.8.0_31, running on Windows 7:x86:6.1, installed at C:\Users\Draper\Desktop\modWin\jdk\jre

[16:43:02] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation

[16:43:02] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker

[16:43:02] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin

[16:43:02] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin

[16:43:02] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker

[16:43:02] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker

[16:43:02] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker

[16:43:02] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker

[16:43:02] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper

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

[16:43:08] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing

[16:43:08] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper

[16:43:08] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker

[16:43:08] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker

[16:43:08] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker

[16:43:08] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}

[16:43:09] [main/INFO] [sTDOUT]: [net.minecraft.client.main.Main:main:59]: Completely ignored arguments: [-Djava.library.path, caches/minecraft/net/minecraft/minecraft_natives/1.8]

[16:43:10] [Client thread/INFO]: Setting user: Player185

[16:43:15] [Client thread/INFO]: LWJGL Version: 2.9.1

[16:43:17] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization

[16:43:17] [Client thread/INFO] [FML]: MinecraftForge v11.14.0.1299 Initialized

[16:43:17] [Client thread/INFO] [FML]: Replaced 204 ore recipies

[16:43:17] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization

[16:43:17] [Client thread/INFO] [FML]: Searching C:\Users\Draper\Desktop\modWin\forge\mods for mods

[16:43:25] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load

[16:43:25] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, examplemod] at CLIENT

[16:43:25] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, examplemod] at SERVER

[16:43:26] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Example Mod

[16:43:26] [Client thread/INFO] [FML]: Processing ObjectHolder annotations

[16:43:26] [Client thread/INFO] [FML]: Found 384 ObjectHolder annotations

[16:43:26] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0

[16:43:26] [Client thread/INFO] [FML]: Applying holder lookups

[16:43:26] [Client thread/INFO] [FML]: Holder lookups applied

[16:43:28] [sound Library Loader/INFO]: Starting up SoundSystem...

[16:43:28] [Thread-7/INFO]: Initializing LWJGL OpenAL

[16:43:28] [Thread-7/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

[16:43:28] [Thread-7/INFO]: OpenAL initialized.

[16:43:28] [sound Library Loader/INFO]: Sound engine started

[16:43:36] [Client thread/INFO]: Created: 512x512 textures-atlas

[16:43:38] [Client thread/ERROR] [FML]: Fatal errors were detected during the transition from INITIALIZATION to POSTINITIALIZATION. Loading cannot continue

[16:43:38] [Client thread/ERROR] [FML]:

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

FML{8.0.26.1299} [Forge Mod Loader] (forgeSrc-1.8-11.14.0.1299.jar) Unloaded->Constructed->Pre-initialized->Initialized

Forge{11.14.0.1299} [Minecraft Forge] (forgeSrc-1.8-11.14.0.1299.jar) Unloaded->Constructed->Pre-initialized->Initialized

examplemod{1.0} [Example Mod] (bin) Unloaded->Constructed->Pre-initialized->Errored

[16:43:38] [Client thread/ERROR] [FML]: The following problems were captured during this phase

[16:43:38] [Client thread/ERROR] [FML]: Caught exception from examplemod

java.lang.NullPointerException

at net.minecraft.item.crafting.CraftingManager.addRecipe(CraftingManager.java:261) ~[forgeSrc-1.8-11.14.0.1299.jar:?]

at net.minecraftforge.fml.common.registry.GameRegistry.addShapedRecipe(GameRegistry.java:236) ~[forgeSrc-1.8-11.14.0.1299.jar:?]

at com.example.examplemod.ExampleMod.init(ExampleMod.java:298) ~[bin/:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_31]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_31]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_31]

at java.lang.reflect.Method.invoke(Method.java:483) ~[?:1.8.0_31]

at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:515) ~[forgeSrc-1.8-11.14.0.1299.jar:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_31]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_31]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_31]

at java.lang.reflect.Method.invoke(Method.java:483) ~[?:1.8.0_31]

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 net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:208) ~[forgeSrc-1.8-11.14.0.1299.jar:?]

at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:187) ~[forgeSrc-1.8-11.14.0.1299.jar:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_31]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_31]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_31]

at java.lang.reflect.Method.invoke(Method.java:483) ~[?:1.8.0_31]

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 net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:118) [LoadController.class:?]

at net.minecraftforge.fml.common.Loader.initializeMods(Loader.java:692) [Loader.class:?]

at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:291) [FMLClientHandler.class:?]

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

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

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

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_31]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_31]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_31]

at java.lang.reflect.Method.invoke(Method.java:483) ~[?:1.8.0_31]

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:85) [start/:?]

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

[16:43:38] [Client thread/INFO] [sTDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:568]: ---- Minecraft Crash Report ----

// But it works on my machine.

 

Time: 6/25/15 4:43 PM

Description: Initializing game

 

java.lang.NullPointerException: Initializing game

at net.minecraft.item.crafting.CraftingManager.addRecipe(CraftingManager.java:261)

at net.minecraftforge.fml.common.registry.GameRegistry.addShapedRecipe(GameRegistry.java:236)

at com.example.examplemod.ExampleMod.init(ExampleMod.java:298)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:483)

at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:515)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:483)

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 net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:208)

at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:187)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:483)

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 net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:118)

at net.minecraftforge.fml.common.Loader.initializeMods(Loader.java:692)

at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:291)

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

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

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

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:483)

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

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 net.minecraft.item.crafting.CraftingManager.addRecipe(CraftingManager.java:261)

at net.minecraftforge.fml.common.registry.GameRegistry.addShapedRecipe(GameRegistry.java:236)

at com.example.examplemod.ExampleMod.init(ExampleMod.java:298)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:483)

at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:515)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:483)

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 net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:208)

at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:187)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:483)

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 net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:118)

at net.minecraftforge.fml.common.Loader.initializeMods(Loader.java:692)

at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:291)

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

 

-- Initialization --

Details:

Stacktrace:

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

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

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:483)

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

at GradleStart.main(GradleStart.java:45)

 

-- System Details --

Details:

Minecraft Version: 1.8

Operating System: Windows 7 (x86) version 6.1

Java Version: 1.8.0_31, Oracle Corporation

Java VM Version: Java HotSpot Client VM (mixed mode), Oracle Corporation

Memory: 893305040 bytes (851 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB)

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

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

FML: MCP v9.10 FML v8.0.26.1299 Minecraft Forge 11.14.0.1299 4 mods loaded, 4 mods active

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

FML{8.0.26.1299} [Forge Mod Loader] (forgeSrc-1.8-11.14.0.1299.jar) Unloaded->Constructed->Pre-initialized->Initialized

Forge{11.14.0.1299} [Minecraft Forge] (forgeSrc-1.8-11.14.0.1299.jar) Unloaded->Constructed->Pre-initialized->Initialized

examplemod{1.0} [Example Mod] (bin) Unloaded->Constructed->Pre-initialized->Errored

Launched Version: 1.8

LWJGL: 2.9.1

OpenGL: Intel® HD Graphics 4000 GL version 3.3.0 - Build 8.15.10.2618, Intel

GL Caps: Using GL 1.3 multitexturing.

Using GL 1.3 texture combiners.

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

Shaders are available because OpenGL 2.1 is supported.

VBOs are available because OpenGL 1.5 is supported.

 

Using VBOs: No

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)

[16:43:38] [Client thread/INFO] [sTDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:568]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\Draper\Desktop\modWin\forge\.\crash-reports\crash-2015-06-25_16.43.38-client.txt

AL lib: (EE) alc_cleanup: 1 device not closed

Java HotSpot Client VM warning: Using incremental CMS is deprecated and will likely be removed in a future release

 

Posted

Show us your main class - mainly - where you register recipes.

 

You most likely are registering them wrong or you are using stuff that is not yet initialized (e.g using your mods item before you create it).

1.7.10 is no longer supported by forge, you are on your own.

Posted

package com.example.examplemod;

 

import items.Atomic_Fireball;

import items.Candy_Arrow;

import items.Candy_Ingot;

import items.Gummy_Worm;

import items.SuperFruit_Seed;

import items.Super_Fruit;

import net.minecraft.block.Block;

import net.minecraft.client.Minecraft;

import net.minecraft.client.renderer.entity.RenderItem;

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

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

import net.minecraft.creativetab.CreativeTabs;

import net.minecraft.entity.EntityList;

import net.minecraft.init.Blocks;

import net.minecraft.init.Items;

import net.minecraft.item.Item;

import net.minecraft.item.ItemStack;

import net.minecraftforge.fml.client.registry.RenderingRegistry;

import net.minecraftforge.fml.common.Mod;

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

import net.minecraftforge.fml.common.event.FMLInitializationEvent;

import net.minecraftforge.fml.common.registry.EntityRegistry;

import net.minecraftforge.fml.common.registry.GameRegistry;

import net.minecraftforge.fml.relauncher.Side;

import plants.SuperFruit_Bush;

import tools.Candy_Axe;

import tools.Candy_Hoe;

import tools.Candy_Pickaxe;

import tools.Candy_Shovel;

import blocks.Candy_Ore;

import blocks.Gummy_Dirt;

import blocks.Red_Cactus;

import combat.Atomic_Launcher;

import combat.Candy_Armor;

import combat.Candy_Bow;

import combat.Candy_Sword;

import combat.Lightning_Launcher;

import combat.Stealth_Armor;

import entities.Candy_Zombie;

import entities.Entity_Atomic_Fireball;

import entities.Entity_Candy_Arrow;

import entities.Entity_Cat;

import entities.Render_Atomic_Fireball;

import entities.Render_Candy_Arrow;

import entities.Render_Candy_Zombie;

import entities.Render_Cat;

 

@Mod(modid = ExampleMod.MODID, version = ExampleMod.VERSION)

public class ExampleMod

{

    public static final String MODID = "examplemod";

    public static final String VERSION = "1.0";

 

    public static CreativeTabs tabCustom = new CreativeTabs("MyStuff") {

 

    public Item getTabIconItem() {

    return GameRegistry.findItem("examplemod", "atomic_launcher");

    }

    }; 

   

 

   

    @EventHandler

    public void init(FMLInitializationEvent event)

    {

 

    if(event.getSide() == Side.CLIENT){

 

    RenderItem renderItem = Minecraft.getMinecraft().getRenderItem();

 

    //Paste Code for ITEMS Below

 

    renderItem.getItemModelMesher().register(new Gummy_Worm(2, 0.3F, false), 0,

    new ModelResourceLocation("examplemod:gummy_worm", "inventory")); 

 

    renderItem.getItemModelMesher().register(new Candy_Ingot(), 0,

    new ModelResourceLocation("examplemod:candy_ingot", "inventory")); 

 

    renderItem.getItemModelMesher().register(new Atomic_Fireball(1, 0.3F, true), 0,

    new ModelResourceLocation("examplemod:atomic_fireball", "inventory"));

   

    renderItem.getItemModelMesher().register(Item.getItemFromBlock(new Gummy_Dirt()), 0,

    new ModelResourceLocation("examplemod:gummy_dirt", "inventory")); 

 

    renderItem.getItemModelMesher().register(new Candy_Arrow(), 0,

    new ModelResourceLocation("examplemod:candy_arrow", "inventory"));

   

    renderItem.getItemModelMesher().register(new Super_Fruit(2,0.3F, false), 0,

    new ModelResourceLocation("examplemod:super_fruit", "inventory")); 

 

 

 

 

 

   

 

 

   

    //Paste Code for BLOCKS Below

    renderItem.getItemModelMesher().register(Item.getItemFromBlock(new Red_Cactus()), 0,

    new ModelResourceLocation("examplemod:redcactus", "inventory")); 

   

    renderItem.getItemModelMesher().register(Item.getItemFromBlock(new Candy_Ore()), 0,

    new ModelResourceLocation("examplemod:candy_ore", "inventory"));

   

    renderItem.getItemModelMesher().register(Item.getItemFromBlock(new SuperFruit_Bush()), 0,

    new ModelResourceLocation("examplemod:superfruit_bush", "inventory")); 

 

 

 

 

 

   

 

 

 

 

   

 

 

    //Paste Code for SMELTING Below

    GameRegistry.addSmelting(Block.getBlockFromName("examplemod:candy_ore"),

    new ItemStack(GameRegistry.findItem("examplemod", "candy_ingot"), 1), .15F);

 

    //Paste Code for TOOLS Below

 

    renderItem.getItemModelMesher().register(new Candy_Axe(), 0,

    new ModelResourceLocation("examplemod:candy_axe", "inventory"));

   

    renderItem.getItemModelMesher().register(new Candy_Hoe(), 0,

    new ModelResourceLocation("examplemod:candy_hoe", "inventory"));

 

    renderItem.getItemModelMesher().register(new Candy_Shovel(), 0,

    new ModelResourceLocation("examplemod:candy_shovel", "inventory"));

 

    renderItem.getItemModelMesher().register(new Candy_Pickaxe(), 0,

    new ModelResourceLocation("examplemod:candy_pickaxe", "inventory"));

 

 

   

    //Paste Code for COMBAT GEAR Below

 

    renderItem.getItemModelMesher().register(new Candy_Armor(0,0), 0,

    new ModelResourceLocation("examplemod:candy_helmet", "inventory"));

 

 

 

 

 

 

   

 

    renderItem.getItemModelMesher().register(new Candy_Armor(0,1), 0,

    new ModelResourceLocation("examplemod:candy_chestplate", "inventory"));

 

 

 

 

 

 

   

 

    renderItem.getItemModelMesher().register(new Candy_Armor(0,2), 0,

    new ModelResourceLocation("examplemod:candy_leggings", "inventory"));

 

 

 

 

 

 

   

 

    renderItem.getItemModelMesher().register(new Candy_Armor(0,3), 0,

    new ModelResourceLocation("examplemod:candy_boots", "inventory"));

 

 

    renderItem.getItemModelMesher().register(new Atomic_Launcher(), 0,

    new ModelResourceLocation("examplemod:atomic_launcher", "inventory")); 

 

 

    renderItem.getItemModelMesher().register(new Stealth_Armor(0,0), 0,

    new ModelResourceLocation("examplemod:stealth_helmet", "inventory"));

 

 

 

 

 

 

   

 

    renderItem.getItemModelMesher().register(new Stealth_Armor(0,1), 0,

    new ModelResourceLocation("examplemod:stealth_chestplate", "inventory"));

 

 

 

 

 

 

   

 

    renderItem.getItemModelMesher().register(new Stealth_Armor(0,2), 0,

    new ModelResourceLocation("examplemod:stealth_leggings", "inventory"));

 

 

 

 

 

 

   

 

    renderItem.getItemModelMesher().register(new Stealth_Armor(0,3), 0,

    new ModelResourceLocation("examplemod:stealth_boots", "inventory"));

 

 

 

 

 

 

   

 

 

 

    //Paste code for COMBAT Below

    renderItem.getItemModelMesher().register(new Candy_Sword(), 0,

    new ModelResourceLocation("examplemod:candy_sword", "inventory"));

 

 

 

    ModelBakery.addVariantName(new Candy_Bow(), new String[] {"examplemod:candy_bow","examplemod:candy_bow_pulling_0", "examplemod:candy_bow_pulling_1", "examplemod:candy_bow_pulling_2"}); 

 

 

 

 

 

 

    renderItem.getItemModelMesher().register(new Lightning_Launcher(), 0,

    new ModelResourceLocation("examplemod:lightning_launcher", "inventory")); 

 

 

 

 

   

 

 

   

 

    //Paste Code For RECIPES Below

 

    GameRegistry.addShapedRecipe(new ItemStack(GameRegistry.findItem

    ("examplemod", "candy_axe")),

      "XX ",

      "X# ",

      " # ",

      'X',GameRegistry.findItem("examplemod", "candy_ingot"), 

      '#',Items.stick); 

 

    GameRegistry.addShapedRecipe(new ItemStack(GameRegistry.findItem

    ("examplemod", "candy_hoe")),

      "XX ",

      " # ",

      " # ",

      'X',GameRegistry.findItem("examplemod", "candy_ingot"), 

      '#',Items.stick); 

   

    GameRegistry.addShapedRecipe(new ItemStack(GameRegistry.findItem

    ("examplemod", "candy_shovel")),

      " X ",

      " # ",

      " # ",

      'X',GameRegistry.findItem("examplemod", "candy_ingot"), 

      '#',Items.stick); 

   

    GameRegistry.addShapedRecipe(new ItemStack(GameRegistry.findItem

    ("examplemod", "candy_pickaxe")),

      "XXX",

      " # ",

      " # ",

      'X',GameRegistry.findItem("examplemod", "candy_ingot"), 

      '#',Items.stick); 

 

    GameRegistry.addShapedRecipe(new ItemStack(GameRegistry.findItem

    ("examplemod", "candy_helmet")),

      "XXX",

      "X X",

      'X',GameRegistry.findItem("examplemod", "candy_ingot")); 

 

    GameRegistry.addShapedRecipe(new ItemStack(GameRegistry.findItem

    ("examplemod", "candy_chestplate")),

      "X X",

      "XXX",

      "XXX",

      'X',GameRegistry.findItem("examplemod", "candy_ingot")); 

 

    GameRegistry.addShapedRecipe(new ItemStack(GameRegistry.findItem

    ("examplemod", "candy_leggings")),

      "XXX",

      "X X",

      "X X",

      'X',GameRegistry.findItem("examplemod", "candy_ingot")); 

 

    GameRegistry.addShapedRecipe(new ItemStack(GameRegistry.findItem

    ("examplemod", "candy_boots")),

      "X X",

      "X X",

      'X',GameRegistry.findItem("examplemod", "candy_ingot")); 

 

 

    GameRegistry.addShapedRecipe(new ItemStack(GameRegistry.findItem

    ("examplemod", "candy_sword")),

      " X ",

      " X ",

      " # ",

      'X',GameRegistry.findItem("examplemod", "candy_ingot"), 

      '#',Items.stick);

    GameRegistry.addShapedRecipe(new ItemStack(GameRegistry.findItem

    ("examplemod", "candy_arrow")),

      "  C",

      " $ ",

      "X  ",

      'C',GameRegistry.findItem("examplemod", "candy_ingot"), 

    '$',Items.stick,

    'X',Items.feather);

   

    GameRegistry.addShapedRecipe(new ItemStack(GameRegistry.findItem

    ("examplemod", "candy_bow")),

      " C$",

      "C $",

      " C$",

      'C',GameRegistry.findItem("examplemod", "candy_ingot"), 

    '$',Items.string);

 

    GameRegistry.addShapedRecipe(new ItemStack(GameRegistry.findItem

    ("examplemod", "atomic_launcher")),

      "X  ",

      " X#",

      "$ X",

      'X',GameRegistry.findItem("examplemod", "candy_ingot"), 

    '$',Items.redstone,

    '#',Items.iron_ingot);

 

    GameRegistry.addShapedRecipe(new ItemStack(GameRegistry.findItem

    ("examplemod", "atomic_launcher")),

      "X  ",

      " X#",

      "$ X",

      'X',GameRegistry.findItem("examplemod", "candy_ingot"), 

    '$',Items.redstone,

    '#',Items.iron_ingot);

 

    GameRegistry.addShapedRecipe(new ItemStack(GameRegistry.findItem

    ("examplemod", "stealth_helmet")),

    "XXX",

    "X X",

    'X',GameRegistry.findItem("examplemod", "candy_ingot"));

 

    GameRegistry.addShapedRecipe(new ItemStack(GameRegistry.findItem

    ("examplemod", "stealth_chestplate")),

    "X X",

    "XXX",

    "XXX",

    'X',GameRegistry.findItem("examplemod", "candy_ingot"));

 

    GameRegistry.addShapedRecipe(new ItemStack(GameRegistry.findItem

    ("examplemod", "stealth_leggings")),

    "XXX",

    "X X",

    "X X",

    'X',GameRegistry.findItem("examplemod", "candy_ingot"));

 

    GameRegistry.addShapedRecipe(new ItemStack(GameRegistry.findItem

    ("examplemod", "stealth_boots")),

    "X X",

    "X X",

    'X',GameRegistry.findItem("examplemod", "iron_ingot"));

 

   

    //Paste Code for ENTITIES Below

 

    EntityRegistry.registerModEntity(Entity_Candy_Arrow.class, "candy_arrow", 13, this, 80, 3, true);

    RenderingRegistry.registerEntityRenderingHandler(Entity_Candy_Arrow.class, new Render_Candy_Arrow(Minecraft.getMinecraft().getRenderManager())); 

 

    EntityRegistry.registerModEntity(Candy_Zombie.class, "candy_zombie", 3, this, 80, 3, true);

   

EntityRegistry.registerModEntity(Entity_Atomic_Fireball.class, "atomicfireball", 4, this, 80, 3, true);

RenderingRegistry.registerEntityRenderingHandler(Entity_Atomic_Fireball.class, new Render_Atomic_Fireball(Minecraft.getMinecraft().getRenderManager())); 

 

EntityRegistry.registerModEntity(Entity_Cat.class, "Cat", 1, this, 80, 5, true);

RenderingRegistry.registerEntityRenderingHandler(Entity_Atomic_Fireball.class, new Render_Cat(Minecraft.getMinecraft().getRenderManager())); 

 

 

 

 

 

 

 

//Paste Code for PLANTS TYPES Below

 

renderItem.getItemModelMesher().register(new SuperFruit_Seed(3, 0.3F,

Block.getBlockFromName("examplemod:superfruit_bush"), Blocks.farmland), 0,

new ModelResourceLocation("examplemod:superfruit_seed", "inventory"));

 

   

    //Paste Code for MOBS Below

 

   

 

 

 

     

      RenderingRegistry.registerEntityRenderingHandler(Candy_Zombie.class, new Render_Candy_Zombie(Minecraft.getMinecraft().getRenderManager()));

      EntityList.addMapping(Candy_Zombie.class,  "Cz", 300);

 

     

 

 

 

 

 

 

     

 

 

     

 

   

    }

   

   

    }

}

 

Posted

You are doing amost everything wrong:

- You have to make static instances of the class, not make a new instance everytime.

- You need to register those static instances using

GameRegistry.registerItem()

.

- Reference your static Item instances directly, not using

GameRegistry.findItem(

.

- Register your recipes after Item and Block initialization.

- Your Items and Blocks have to be registered in the

FMLPreInitializationEvent

, not the

FMLInitializationEvent

.

- You have to setup proxies and register your item renderers in the client proxy.

- Use a proper mod-id and mod name.

- Don't reference client-only classes in shared code, but do it in a client-only environment, eg. the client proxy.

 

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.