I have all of those classes, but your right for saying there problems not there, once i commented out everything, the game still wouldn't start. The error message:
b---- Minecraft Crash Report ----
// Oops.
Time: 6/3/15 4:17 PM
Description: Initializing game
http://www.minecraftforge.net/forum/Themes/default/images/bbc/spoiler.gifjava.lang.NullPointerException: Initializing game
at net.minecraft.item.crafting.CraftingManager.addRecipe(CraftingManager.java:270)
at net.minecraftforge.fml.common.registry.GameRegistry.addShapedRecipe(GameRegistry.java:236)
at net.minecraftforge.fml.common.registry.GameRegistry.addRecipe(GameRegistry.java:231)
at com.Babuska.init.TutorialBlocks.recipe(TutorialBlocks.java:63)
at com.Babuska.TutorialMod.preInit(TutorialMod.java:25)
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.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:518)
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 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(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 net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:118)
at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:514)
at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:243)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:447)
at net.minecraft.client.Minecraft.run(Minecraft.java:356)
at net.minecraft.client.main.Main.main(Main.java:117)
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(Unknown Source)
at GradleStart.main(Unknown Source)
Hope the detailed walkthrow isn't needed. what i did before trying to change the block drops was make a crafting recipe, and it perfectly worked. after that i tried to change what drops when you break a block. And thats where it went all wrong, now even if i comment out everything i did after the recipe, it still wont launch. Heres the code that the recipe is in:
http://www.minecraftforge.net/forum/Themes/default/images/bbc/spoiler.gifpackage com.Babuska.init;
import net.minecraft.block.Block;
import net.minecraft.block.material.MapColor;
import net.minecraft.block.material.Material;
import net.minecraft.client.Minecraft;
import net.minecraft.client.resources.model.ModelResourceLocation;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraftforge.fml.common.registry.GameRegistry;
import com.Babuska.References;
import com.Babuska.blocks.BlockTest;
import com.Babuska.material.MaterialTest;
public class TutorialBlocks {
public static Block test_1;
public static Block test_block;
public static Block test_2;
public static Block test_3;
public static void init() {
test_1 = new BlockTest(Material.iron).setUnlocalizedName("test_1");
test_block = new BlockTest(Material.iron).setUnlocalizedName("test_block");
test_2 = new BlockTest(Material.iron).setUnlocalizedName("test_2");
test_3 = new BlockTest(Material.iron).setUnlocalizedName("test_3");
}
public static void register() {
GameRegistry.registerBlock(test_1, test_1.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(test_block, test_block.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(test_2, test_2.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(test_3, test_3.getUnlocalizedName().substring(5));
}
public static void registerRenders()
{
registerRender(test_1);
registerRender(test_block);
registerRender(test_2);
registerRender(test_3);
}
public static void registerRender(Block block)
{
Item item = Item.getItemFromBlock(block);
Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation(References.MOD_ID + ":" + item.getUnlocalizedName().substring(5), "inventory"));
}
public static void recipe()
{
GameRegistry.addRecipe(new ItemStack(test_2), new Object[]{"RRR",
" S ",
" S ", 'R', TutorialItems.gem_1, 'S', Items.stick});
}
}