Ok I've put in the changes you told me to but i still get the same error.
I think it has something to do with this recipe
GameRegistry.addShapelessRecipe(new ItemStack(AppleJuice,1), new Object[]{
new ItemStack(Item.appleRed), new ItemStack(ModItem.Juicer), new ItemStack(Item.sugar), new ItemStack(Item.glassBottle)});
when i click on the error message line
at foodplus.FoodPlusMod.recipes(FoodPlusMod.java:144)
@Mod(modid = "FoodPlusMod", name = "Food Plus For 1.4.7", version = "v1.0")
@NetworkMod(clientSideRequired = true, serverSideRequired = true)
public class FoodPlusMod
{
//Blocks
public static Block OrangePlank;
//Items
public static Item PumpkinSoup;
public static Item ApplePie;
public static Item AppleJuice;
public static Item Juicer;
public static Item BoiledEgg;
public static Item ChocolateBar;
public static Item ChocolateBlock;
public static Item ChocolateMilk;
public static Item HotChocolate;
public static Item Custard;
public static Item BakedCustard;
public static Item CustardDanish;
public static Item BakedDanish;
public static Item Toffee;
public static Item ToffeeApple;
public static Item SugarWater;
public static Item GlucoseSyrup;
@PreInit
public void initConfig(FMLPreInitializationEvent fpe)
{
}
@Init
public void load(FMLInitializationEvent fie)
{
//Blocks
OrangePlank = (new ModBlock(500, 3, Material.wood ).setHardness(2.0F).setResistance(5.0F).setStepSound(Block.soundWoodFootstep).setBlockName("OrangePlank").setRequiresSelfNotify());
//Items
PumpkinSoup = (new ModItemSoup(1000, 3).setItemName("PumpkinSoup").setCreativeTab(CreativeTabs.tabFood).setIconCoord(2, 1));
ApplePie = (new ModItemFood (1001, 3,1.0F, false ). setItemName("ApplePie").setCreativeTab(CreativeTabs.tabFood).setIconCoord(1, 0));
AppleJuice = (new ModItemJuice (1002, 4).setItemName("AppleJuice").setCreativeTab(CreativeTabs.tabFood).setIconCoord(0, 0));
Juicer = (new ModItem (1003).setItemName("Juicer").setCreativeTab(CreativeTabs.tabTools).setIconCoord(13, 0));
BoiledEgg = (new ModItemFood (1004,2, false).setItemName("BoiledEgg").setCreativeTab(CreativeTabs.tabFood).setIconCoord(4, 0));
ChocolateBar = (new ModItemFood (1005,2,false).setItemName("ChocolateBar").setCreativeTab(CreativeTabs.tabFood).setIconCoord(5, 0));
ChocolateBlock = (new ModItemFood (1006,5,false).setItemName("ChocolateBlock").setCreativeTab(CreativeTabs.tabFood).setIconCoord(6, 0));
ChocolateMilk = (new ModItemSoup (1007,2).setItemName("ChocolateMilk").setCreativeTab(CreativeTabs.tabFood).setIconCoord(7, 0));
HotChocolate = (new ModItemSoup (1008,6).setItemName("HotChocolate").setCreativeTab(CreativeTabs.tabFood).setIconCoord(10, 0));
Custard = (new ModItemSoup (1009,2).setItemName("Custard").setCreativeTab(CreativeTabs.tabFood).setIconCoord(8, 0));
BakedCustard = (new ModItemSoup (1010,6).setItemName("BakedCustard").setCreativeTab(CreativeTabs.tabFood).setIconCoord(2, 0));
CustardDanish = (new ModItemFood (1011,2, false).setItemName("CustardDanish").setCreativeTab(CreativeTabs.tabFood).setIconCoord(9, 0));
BakedDanish = (new ModItemFood (1012,6, false).setItemName("BakedDanish").setCreativeTab(CreativeTabs.tabFood).setIconCoord(3, 0));
Toffee = (new ModItemFood (1013,1,false).setItemName("Toffee").setCreativeTab(CreativeTabs.tabFood).setIconCoord(3, 1));
ToffeeApple = (new ModItemFood (1014,5,false).setItemName("ToffeeApple").setCreativeTab(CreativeTabs.tabFood).setIconCoord(4, 1));
SugarWater = (new ModItemFood(1015,1,false).setItemName("SugarWater").setCreativeTab(CreativeTabs.tabFood).setIconCoord(12, 0));
GlucoseSyrup = (new ModItemFood(1016, 1,false).setItemName("GlucoseSyrup").setCreativeTab(CreativeTabs.tabFood).setIconCoord(11, 0));
public void recipes()
{
GameRegistry.addRecipe(new ItemStack(OrangePlank, 1), new Object[]{
" * ","*X*"," * ", Character.valueOf('*'), new ItemStack(Item.dyePowder, 1, 14), Character.valueOf('X'), Block.planks});
GameRegistry.addRecipe(new ItemStack(PumpkinSoup,1), new Object[]{
" * ", " X ", Character.valueOf('X'), Item.bowlEmpty, Character.valueOf('*'), Block.pumpkin});
GameRegistry.addShapelessRecipe(new ItemStack(ApplePie,1), new Object[]{
new ItemStack(Item.potion, 1, 0), new ItemStack(Item.appleRed), new ItemStack(Item.egg), new ItemStack(Item.sugar)});
GameRegistry.addShapelessRecipe(new ItemStack(AppleJuice,1), new Object[]{
new ItemStack(Item.appleRed), new ItemStack(ModItem.Juicer), new ItemStack(Item.sugar), new ItemStack(Item.glassBottle)});
GameRegistry.addRecipe(new ItemStack(Juicer,1), new Object[]{
" * ", " X ", " ! ", Character.valueOf('*'), Item.flint, Character.valueOf('X'), Item.stick,
Character.valueOf('!'), Item.bowlEmpty});
Juicer.setContainerItem(Juicer);
GameRegistry.addShapelessRecipe(new ItemStack(ChocolateBar,1), new Object[]{
new ItemStack(Item.dyePowder, 1, 3), new ItemStack(Item.sugar), new ItemStack(Item.bucketMilk)});
GameRegistry.addRecipe(new ItemStack(ChocolateBlock,1), new Object[]{
"***", Character.valueOf('*'), ModItem.ChocolateBar});
GameRegistry.addShapelessRecipe(new ItemStack(ChocolateMilk,1), new Object[]{
new ItemStack(ModItem.ChocolateBar), new ItemStack(Item.sugar), new ItemStack(Item.bucketMilk)});
GameRegistry.addShapelessRecipe(new ItemStack(Custard,1), new Object[]{
new ItemStack(Item.sugar), new ItemStack(Item.bucketMilk), new ItemStack(Item.egg)});
GameRegistry.addShapelessRecipe(new ItemStack(CustardDanish,1), new Object[]{
new ItemStack(ModItem.Custard), new ItemStack(Item.wheat), new ItemStack(Item.egg), new ItemStack(Item.sugar)});
GameRegistry.addRecipe(new ItemStack(ToffeeApple,1), new Object[]{
" ! ", " X ", " * ", Character.valueOf('*'), Item.stick, Character.valueOf('X'), Item.appleRed,Character.valueOf('!'), ModItem.Toffee});
GameRegistry.addShapelessRecipe(new ItemStack(SugarWater, 1), new Object[] {
new ItemStack(Item.potion, 1, 0), new ItemStack(Item.sugar)});
}
public void smelting()
{
GameRegistry.addSmelting(ModItem.SugarWater.itemID, new ItemStack(GlucoseSyrup, 1), 0.0F);
GameRegistry.addSmelting(Item.egg.itemID, new ItemStack (BoiledEgg, 1), 0.0F);
GameRegistry.addSmelting(ModItem.ChocolateMilk.itemID, new ItemStack (HotChocolate, 1), 0.0F);
GameRegistry.addSmelting(ModItem.Custard.itemID, new ItemStack (BakedCustard, 1), 0.0F);
GameRegistry.addSmelting(ModItem.CustardDanish.itemID, new ItemStack (BakedDanish, 1), 0.0F);
GameRegistry.addSmelting(Item.sugar.itemID, new ItemStack (Toffee, 1), 0.0F);
---- Minecraft Crash Report ----
// On the bright side, I bought you a teddy bear!
Time: 26/02/13 11:49 AM
Description: Failed to start game
java.lang.NullPointerException
at net.minecraft.item.ItemStack.<init>(ItemStack.java:64)
at foodplus.FoodPlusMod.recipes(FoodPlusMod.java:144)
at foodplus.FoodPlusMod.load(FoodPlusMod.java:90)
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:485)
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.EventHandler.handleEvent(EventHandler.java:69)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
at com.google.common.eventbus.EventBus.post(EventBus.java:268)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:140)
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.EventHandler.handleEvent(EventHandler.java:69)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
at com.google.common.eventbus.EventBus.post(EventBus.java:268)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:83)
at cpw.mods.fml.common.Loader.initializeMods(Loader.java:657)
at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:207)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:456)
at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)
at net.minecraft.client.Minecraft.run(Minecraft.java:744)
at java.lang.Thread.run(Unknown Source)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- System Details --
Details:
Minecraft Version: 1.4.7
Operating System: Windows 7 (x86) version 6.1
Java Version: 1.7.0_09, Oracle Corporation
Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
Memory: 989752544 bytes (943 MB) / 1060372480 bytes (1011 MB) up to 1060372480 bytes (1011 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Suspicious classes: FML and Forge are installed
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v7.26 FML v4.7.4.520 Minecraft Forge 6.6.0.497 4 mods loaded, 4 mods active
mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized
FML [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized
Forge [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized
FoodPlusMod [Food Plus For 1.4.7] (bin) Unloaded->Constructed->Pre-initialized->Errored
LWJGL: 2.4.2
OpenGL: GeForce GT 230M/PCI/SSE2 GL version 3.0.0, NVIDIA Corporation
Is Modded: Definitely; Client brand changed to 'forge,fml'
Type: Client (map_client.txt)
Texture Pack: Default
Profiler Position: N/A (disabled)
Vec3 Pool Size: ~~ERROR~~ NullPointerException: null
I have no idea why the recipe could be causing problems cause i've registered the juicer item and all that jazz and even put it inside the modItem class file to see if that worked to no avail. :/
This is the modItem file in case you wanted to see it
package foodplus;
import net.minecraft.item.Item;
public class ModItem extends Item
{
public ModItem(int par1)
{
super (par1);
}
//Mod Items for Crafting
public static ModItem Juicer;
public static ModItem ChocolateBar;
public static ModItem Custard;
public static ModItem Toffee;
public static ModItem SugarWater;
public static ModItem ChocolateMilk;
public static ModItem CustardDanish;
public String getTextureFile()
{
return "/Texture/moditems.png";
}
These tutorials are so useful. Could you add one on custom entities? Btw, do you learn how to do this from other tutorials, or just looking at the games source code?
I'm not really familiar with entities at the moment, but I am going to figure them out at some point soon
I mostly do it from working out, but slightly from tutorials I read a while back
Ok I've put in the changes you told me to but i still get the same error.
I think it has something to do with this recipe
GameRegistry.addShapelessRecipe(new ItemStack(AppleJuice,1), new Object[]{
new ItemStack(Item.appleRed), new ItemStack(ModItem.Juicer), new ItemStack(Item.sugar), new ItemStack(Item.glassBottle)});
when i click on the error message line
at foodplus.FoodPlusMod.recipes(FoodPlusMod.java:144)
@Mod(modid = "FoodPlusMod", name = "Food Plus For 1.4.7", version = "v1.0")
@NetworkMod(clientSideRequired = true, serverSideRequired = true)
public class FoodPlusMod
{
//Blocks
public static Block OrangePlank;
//Items
public static Item PumpkinSoup;
public static Item ApplePie;
public static Item AppleJuice;
public static Item Juicer;
public static Item BoiledEgg;
public static Item ChocolateBar;
public static Item ChocolateBlock;
public static Item ChocolateMilk;
public static Item HotChocolate;
public static Item Custard;
public static Item BakedCustard;
public static Item CustardDanish;
public static Item BakedDanish;
public static Item Toffee;
public static Item ToffeeApple;
public static Item SugarWater;
public static Item GlucoseSyrup;
@PreInit
public void initConfig(FMLPreInitializationEvent fpe)
{
}
@Init
public void load(FMLInitializationEvent fie)
{
//Blocks
OrangePlank = (new ModBlock(500, 3, Material.wood ).setHardness(2.0F).setResistance(5.0F).setStepSound(Block.soundWoodFootstep).setBlockName("OrangePlank").setRequiresSelfNotify());
//Items
PumpkinSoup = (new ModItemSoup(1000, 3).setItemName("PumpkinSoup").setCreativeTab(CreativeTabs.tabFood).setIconCoord(2, 1));
ApplePie = (new ModItemFood (1001, 3,1.0F, false ). setItemName("ApplePie").setCreativeTab(CreativeTabs.tabFood).setIconCoord(1, 0));
AppleJuice = (new ModItemJuice (1002, 4).setItemName("AppleJuice").setCreativeTab(CreativeTabs.tabFood).setIconCoord(0, 0));
Juicer = (new ModItem (1003).setItemName("Juicer").setCreativeTab(CreativeTabs.tabTools).setIconCoord(13, 0));
BoiledEgg = (new ModItemFood (1004,2, false).setItemName("BoiledEgg").setCreativeTab(CreativeTabs.tabFood).setIconCoord(4, 0));
ChocolateBar = (new ModItemFood (1005,2,false).setItemName("ChocolateBar").setCreativeTab(CreativeTabs.tabFood).setIconCoord(5, 0));
ChocolateBlock = (new ModItemFood (1006,5,false).setItemName("ChocolateBlock").setCreativeTab(CreativeTabs.tabFood).setIconCoord(6, 0));
ChocolateMilk = (new ModItemSoup (1007,2).setItemName("ChocolateMilk").setCreativeTab(CreativeTabs.tabFood).setIconCoord(7, 0));
HotChocolate = (new ModItemSoup (1008,6).setItemName("HotChocolate").setCreativeTab(CreativeTabs.tabFood).setIconCoord(10, 0));
Custard = (new ModItemSoup (1009,2).setItemName("Custard").setCreativeTab(CreativeTabs.tabFood).setIconCoord(8, 0));
BakedCustard = (new ModItemSoup (1010,6).setItemName("BakedCustard").setCreativeTab(CreativeTabs.tabFood).setIconCoord(2, 0));
CustardDanish = (new ModItemFood (1011,2, false).setItemName("CustardDanish").setCreativeTab(CreativeTabs.tabFood).setIconCoord(9, 0));
BakedDanish = (new ModItemFood (1012,6, false).setItemName("BakedDanish").setCreativeTab(CreativeTabs.tabFood).setIconCoord(3, 0));
Toffee = (new ModItemFood (1013,1,false).setItemName("Toffee").setCreativeTab(CreativeTabs.tabFood).setIconCoord(3, 1));
ToffeeApple = (new ModItemFood (1014,5,false).setItemName("ToffeeApple").setCreativeTab(CreativeTabs.tabFood).setIconCoord(4, 1));
SugarWater = (new ModItemFood(1015,1,false).setItemName("SugarWater").setCreativeTab(CreativeTabs.tabFood).setIconCoord(12, 0));
GlucoseSyrup = (new ModItemFood(1016, 1,false).setItemName("GlucoseSyrup").setCreativeTab(CreativeTabs.tabFood).setIconCoord(11, 0));
public void recipes()
{
GameRegistry.addRecipe(new ItemStack(OrangePlank, 1), new Object[]{
" * ","*X*"," * ", Character.valueOf('*'), new ItemStack(Item.dyePowder, 1, 14), Character.valueOf('X'), Block.planks});
GameRegistry.addRecipe(new ItemStack(PumpkinSoup,1), new Object[]{
" * ", " X ", Character.valueOf('X'), Item.bowlEmpty, Character.valueOf('*'), Block.pumpkin});
GameRegistry.addShapelessRecipe(new ItemStack(ApplePie,1), new Object[]{
new ItemStack(Item.potion, 1, 0), new ItemStack(Item.appleRed), new ItemStack(Item.egg), new ItemStack(Item.sugar)});
GameRegistry.addShapelessRecipe(new ItemStack(AppleJuice,1), new Object[]{
new ItemStack(Item.appleRed), new ItemStack(ModItem.Juicer), new ItemStack(Item.sugar), new ItemStack(Item.glassBottle)});
GameRegistry.addRecipe(new ItemStack(Juicer,1), new Object[]{
" * ", " X ", " ! ", Character.valueOf('*'), Item.flint, Character.valueOf('X'), Item.stick,
Character.valueOf('!'), Item.bowlEmpty});
Juicer.setContainerItem(Juicer);
GameRegistry.addShapelessRecipe(new ItemStack(ChocolateBar,1), new Object[]{
new ItemStack(Item.dyePowder, 1, 3), new ItemStack(Item.sugar), new ItemStack(Item.bucketMilk)});
GameRegistry.addRecipe(new ItemStack(ChocolateBlock,1), new Object[]{
"***", Character.valueOf('*'), ModItem.ChocolateBar});
GameRegistry.addShapelessRecipe(new ItemStack(ChocolateMilk,1), new Object[]{
new ItemStack(ModItem.ChocolateBar), new ItemStack(Item.sugar), new ItemStack(Item.bucketMilk)});
GameRegistry.addShapelessRecipe(new ItemStack(Custard,1), new Object[]{
new ItemStack(Item.sugar), new ItemStack(Item.bucketMilk), new ItemStack(Item.egg)});
GameRegistry.addShapelessRecipe(new ItemStack(CustardDanish,1), new Object[]{
new ItemStack(ModItem.Custard), new ItemStack(Item.wheat), new ItemStack(Item.egg), new ItemStack(Item.sugar)});
GameRegistry.addRecipe(new ItemStack(ToffeeApple,1), new Object[]{
" ! ", " X ", " * ", Character.valueOf('*'), Item.stick, Character.valueOf('X'), Item.appleRed,Character.valueOf('!'), ModItem.Toffee});
GameRegistry.addShapelessRecipe(new ItemStack(SugarWater, 1), new Object[] {
new ItemStack(Item.potion, 1, 0), new ItemStack(Item.sugar)});
}
public void smelting()
{
GameRegistry.addSmelting(ModItem.SugarWater.itemID, new ItemStack(GlucoseSyrup, 1), 0.0F);
GameRegistry.addSmelting(Item.egg.itemID, new ItemStack (BoiledEgg, 1), 0.0F);
GameRegistry.addSmelting(ModItem.ChocolateMilk.itemID, new ItemStack (HotChocolate, 1), 0.0F);
GameRegistry.addSmelting(ModItem.Custard.itemID, new ItemStack (BakedCustard, 1), 0.0F);
GameRegistry.addSmelting(ModItem.CustardDanish.itemID, new ItemStack (BakedDanish, 1), 0.0F);
GameRegistry.addSmelting(Item.sugar.itemID, new ItemStack (Toffee, 1), 0.0F);
---- Minecraft Crash Report ----
// On the bright side, I bought you a teddy bear!
Time: 26/02/13 11:49 AM
Description: Failed to start game
java.lang.NullPointerException
at net.minecraft.item.ItemStack.<init>(ItemStack.java:64)
at foodplus.FoodPlusMod.recipes(FoodPlusMod.java:144)
at foodplus.FoodPlusMod.load(FoodPlusMod.java:90)
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:485)
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.EventHandler.handleEvent(EventHandler.java:69)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
at com.google.common.eventbus.EventBus.post(EventBus.java:268)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:140)
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.EventHandler.handleEvent(EventHandler.java:69)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
at com.google.common.eventbus.EventBus.post(EventBus.java:268)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:83)
at cpw.mods.fml.common.Loader.initializeMods(Loader.java:657)
at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:207)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:456)
at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)
at net.minecraft.client.Minecraft.run(Minecraft.java:744)
at java.lang.Thread.run(Unknown Source)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- System Details --
Details:
Minecraft Version: 1.4.7
Operating System: Windows 7 (x86) version 6.1
Java Version: 1.7.0_09, Oracle Corporation
Java VM Version: Java HotSpot™ Client VM (mixed mode), Oracle Corporation
Memory: 989752544 bytes (943 MB) / 1060372480 bytes (1011 MB) up to 1060372480 bytes (1011 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Suspicious classes: FML and Forge are installed
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v7.26 FML v4.7.4.520 Minecraft Forge 6.6.0.497 4 mods loaded, 4 mods active
mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized
FML [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized
Forge [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized
FoodPlusMod [Food Plus For 1.4.7] (bin) Unloaded->Constructed->Pre-initialized->Errored
LWJGL: 2.4.2
OpenGL: GeForce GT 230M/PCI/SSE2 GL version 3.0.0, NVIDIA Corporation
Is Modded: Definitely; Client brand changed to 'forge,fml'
Type: Client (map_client.txt)
Texture Pack: Default
Profiler Position: N/A (disabled)
Vec3 Pool Size: ~~ERROR~~ NullPointerException: null
I have no idea why the recipe could be causing problems cause i've registered the juicer item and all that jazz and even put it inside the modItem class file to see if that worked to no avail. :/
This is the modItem file in case you wanted to see it
package foodplus;
import net.minecraft.item.Item;
public class ModItem extends Item
{
public ModItem(int par1)
{
super (par1);
}
//Mod Items for Crafting
public static ModItem Juicer;
public static ModItem ChocolateBar;
public static ModItem Custard;
public static ModItem Toffee;
public static ModItem SugarWater;
public static ModItem ChocolateMilk;
public static ModItem CustardDanish;
public String getTextureFile()
{
return "/Texture/moditems.png";
}
}
Not sure if it'll fix your problems, but try putting the items in preinit
@Mod(modid = "FoodPlusMod", name = "Food Plus For 1.4.7", version = "v1.0")
@NetworkMod(clientSideRequired = true, serverSideRequired = true)
public class FoodPlusMod
{
//Blocks
public static Block OrangePlank;
//Items
public static Item PumpkinSoup;
public static Item ApplePie;
public static Item AppleJuice;
public static Item Juicer;
public static Item BoiledEgg;
public static Item ChocolateBar;
public static Item ChocolateBlock;
public static Item ChocolateMilk;
public static Item HotChocolate;
public static Item Custard;
public static Item BakedCustard;
public static Item CustardDanish;
public static Item BakedDanish;
public static Item Toffee;
public static Item ToffeeApple;
public static Item SugarWater;
public static Item GlucoseSyrup;
@PreInit
public void initConfig(FMLPreInitializationEvent fpe)
{
PumpkinSoup = (new ModItemSoup(1000, 3).setItemName("PumpkinSoup").setCreativeTab(CreativeTabs.tabFood).setIconCoord(2, 1));
ApplePie = (new ModItemFood (1001, 3,1.0F, false ). setItemName("ApplePie").setCreativeTab(CreativeTabs.tabFood).setIconCoord(1, 0));
AppleJuice = (new ModItemJuice (1002, 4).setItemName("AppleJuice").setCreativeTab(CreativeTabs.tabFood).setIconCoord(0, 0));
Juicer = (new ModItem (1003).setItemName("Juicer").setCreativeTab(CreativeTabs.tabTools).setIconCoord(13, 0));
BoiledEgg = (new ModItemFood (1004,2, false).setItemName("BoiledEgg").setCreativeTab(CreativeTabs.tabFood).setIconCoord(4, 0));
ChocolateBar = (new ModItemFood (1005,2,false).setItemName("ChocolateBar").setCreativeTab(CreativeTabs.tabFood).setIconCoord(5, 0));
ChocolateBlock = (new ModItemFood (1006,5,false).setItemName("ChocolateBlock").setCreativeTab(CreativeTabs.tabFood).setIconCoord(6, 0));
ChocolateMilk = (new ModItemSoup (1007,2).setItemName("ChocolateMilk").setCreativeTab(CreativeTabs.tabFood).setIconCoord(7, 0));
HotChocolate = (new ModItemSoup (1008,6).setItemName("HotChocolate").setCreativeTab(CreativeTabs.tabFood).setIconCoord(10, 0));
Custard = (new ModItemSoup (1009,2).setItemName("Custard").setCreativeTab(CreativeTabs.tabFood).setIconCoord(8, 0));
BakedCustard = (new ModItemSoup (1010,6).setItemName("BakedCustard").setCreativeTab(CreativeTabs.tabFood).setIconCoord(2, 0));
CustardDanish = (new ModItemFood (1011,2, false).setItemName("CustardDanish").setCreativeTab(CreativeTabs.tabFood).setIconCoord(9, 0));
BakedDanish = (new ModItemFood (1012,6, false).setItemName("BakedDanish").setCreativeTab(CreativeTabs.tabFood).setIconCoord(3, 0));
Toffee = (new ModItemFood (1013,1,false).setItemName("Toffee").setCreativeTab(CreativeTabs.tabFood).setIconCoord(3, 1));
ToffeeApple = (new ModItemFood (1014,5,false).setItemName("ToffeeApple").setCreativeTab(CreativeTabs.tabFood).setIconCoord(4, 1));
SugarWater = (new ModItemFood(1015,1,false).setItemName("SugarWater").setCreativeTab(CreativeTabs.tabFood).setIconCoord(12, 0));
GlucoseSyrup = (new ModItemFood(1016, 1,false).setItemName("GlucoseSyrup").setCreativeTab(CreativeTabs.tabFood).setIconCoord(11, 0));
}
@Init
public void load(FMLInitializationEvent fie)
{
//Blocks
OrangePlank = (new ModBlock(500, 3, Material.wood ).setHardness(2.0F).setResistance(5.0F).setStepSound(Block.soundWoodFootstep).setBlockName("OrangePlank").setRequiresSelfNotify());
//Items
PumpkinSoup = (new ModItemSoup(1000, 3).setItemName("PumpkinSoup").setCreativeTab(CreativeTabs.tabFood).setIconCoord(2, 1));
ApplePie = (new ModItemFood (1001, 3,1.0F, false ). setItemName("ApplePie").setCreativeTab(CreativeTabs.tabFood).setIconCoord(1, 0));
AppleJuice = (new ModItemJuice (1002, 4).setItemName("AppleJuice").setCreativeTab(CreativeTabs.tabFood).setIconCoord(0, 0));
Juicer = (new ModItem (1003).setItemName("Juicer").setCreativeTab(CreativeTabs.tabTools).setIconCoord(13, 0));
BoiledEgg = (new ModItemFood (1004,2, false).setItemName("BoiledEgg").setCreativeTab(CreativeTabs.tabFood).setIconCoord(4, 0));
ChocolateBar = (new ModItemFood (1005,2,false).setItemName("ChocolateBar").setCreativeTab(CreativeTabs.tabFood).setIconCoord(5, 0));
ChocolateBlock = (new ModItemFood (1006,5,false).setItemName("ChocolateBlock").setCreativeTab(CreativeTabs.tabFood).setIconCoord(6, 0));
ChocolateMilk = (new ModItemSoup (1007,2).setItemName("ChocolateMilk").setCreativeTab(CreativeTabs.tabFood).setIconCoord(7, 0));
HotChocolate = (new ModItemSoup (1008,6).setItemName("HotChocolate").setCreativeTab(CreativeTabs.tabFood).setIconCoord(10, 0));
Custard = (new ModItemSoup (1009,2).setItemName("Custard").setCreativeTab(CreativeTabs.tabFood).setIconCoord(8, 0));
BakedCustard = (new ModItemSoup (1010,6).setItemName("BakedCustard").setCreativeTab(CreativeTabs.tabFood).setIconCoord(2, 0));
CustardDanish = (new ModItemFood (1011,2, false).setItemName("CustardDanish").setCreativeTab(CreativeTabs.tabFood).setIconCoord(9, 0));
BakedDanish = (new ModItemFood (1012,6, false).setItemName("BakedDanish").setCreativeTab(CreativeTabs.tabFood).setIconCoord(3, 0));
Toffee = (new ModItemFood (1013,1,false).setItemName("Toffee").setCreativeTab(CreativeTabs.tabFood).setIconCoord(3, 1));
ToffeeApple = (new ModItemFood (1014,5,false).setItemName("ToffeeApple").setCreativeTab(CreativeTabs.tabFood).setIconCoord(4, 1));
SugarWater = (new ModItemFood(1015,1,false).setItemName("SugarWater").setCreativeTab(CreativeTabs.tabFood).setIconCoord(12, 0));
GlucoseSyrup = (new ModItemFood(1016, 1,false).setItemName("GlucoseSyrup").setCreativeTab(CreativeTabs.tabFood).setIconCoord(11, 0));
public void recipes()
{
GameRegistry.addRecipe(new ItemStack(OrangePlank, 1), new Object[]{
" * ","*X*"," * ", Character.valueOf('*'), new ItemStack(Item.dyePowder, 1, 14), Character.valueOf('X'), Block.planks});
GameRegistry.addRecipe(new ItemStack(PumpkinSoup,1), new Object[]{
" * ", " X ", Character.valueOf('X'), Item.bowlEmpty, Character.valueOf('*'), Block.pumpkin});
GameRegistry.addShapelessRecipe(new ItemStack(ApplePie,1), new Object[]{
new ItemStack(Item.potion, 1, 0), new ItemStack(Item.appleRed), new ItemStack(Item.egg), new ItemStack(Item.sugar)});
GameRegistry.addShapelessRecipe(new ItemStack(AppleJuice,1), new Object[]{
new ItemStack(Item.appleRed), new ItemStack(ModItem.Juicer), new ItemStack(Item.sugar), new ItemStack(Item.glassBottle)});
GameRegistry.addRecipe(new ItemStack(Juicer,1), new Object[]{
" * ", " X ", " ! ", Character.valueOf('*'), Item.flint, Character.valueOf('X'), Item.stick,
Character.valueOf('!'), Item.bowlEmpty});
Juicer.setContainerItem(Juicer);
GameRegistry.addShapelessRecipe(new ItemStack(ChocolateBar,1), new Object[]{
new ItemStack(Item.dyePowder, 1, 3), new ItemStack(Item.sugar), new ItemStack(Item.bucketMilk)});
GameRegistry.addRecipe(new ItemStack(ChocolateBlock,1), new Object[]{
"***", Character.valueOf('*'), ModItem.ChocolateBar});
GameRegistry.addShapelessRecipe(new ItemStack(ChocolateMilk,1), new Object[]{
new ItemStack(ModItem.ChocolateBar), new ItemStack(Item.sugar), new ItemStack(Item.bucketMilk)});
GameRegistry.addShapelessRecipe(new ItemStack(Custard,1), new Object[]{
new ItemStack(Item.sugar), new ItemStack(Item.bucketMilk), new ItemStack(Item.egg)});
GameRegistry.addShapelessRecipe(new ItemStack(CustardDanish,1), new Object[]{
new ItemStack(ModItem.Custard), new ItemStack(Item.wheat), new ItemStack(Item.egg), new ItemStack(Item.sugar)});
GameRegistry.addRecipe(new ItemStack(ToffeeApple,1), new Object[]{
" ! ", " X ", " * ", Character.valueOf('*'), Item.stick, Character.valueOf('X'), Item.appleRed,Character.valueOf('!'), ModItem.Toffee});
GameRegistry.addShapelessRecipe(new ItemStack(SugarWater, 1), new Object[] {
new ItemStack(Item.potion, 1, 0), new ItemStack(Item.sugar)});
}
public void smelting()
{
GameRegistry.addSmelting(ModItem.SugarWater.itemID, new ItemStack(GlucoseSyrup, 1), 0.0F);
GameRegistry.addSmelting(Item.egg.itemID, new ItemStack (BoiledEgg, 1), 0.0F);
GameRegistry.addSmelting(ModItem.ChocolateMilk.itemID, new ItemStack (HotChocolate, 1), 0.0F);
GameRegistry.addSmelting(ModItem.Custard.itemID, new ItemStack (BakedCustard, 1), 0.0F);
GameRegistry.addSmelting(ModItem.CustardDanish.itemID, new ItemStack (BakedDanish, 1), 0.0F);
GameRegistry.addSmelting(Item.sugar.itemID, new ItemStack (Toffee, 1), 0.0F);
@Mod(modid = "FoodPlusMod", name = "Food Plus For 1.4.7", version = "v1.0")
@NetworkMod(clientSideRequired = true, serverSideRequired = true)
public class FoodPlusMod
{
//Blocks
public static Block OrangePlank;
//Items
public static Item PumpkinSoup;
public static Item ApplePie;
public static Item AppleJuice;
public static Item Juicer;
public static Item BoiledEgg;
public static Item ChocolateBar;
public static Item ChocolateBlock;
public static Item ChocolateMilk;
public static Item HotChocolate;
public static Item Custard;
public static Item BakedCustard;
public static Item CustardDanish;
public static Item BakedDanish;
public static Item Toffee;
public static Item ToffeeApple;
public static Item SugarWater;
public static Item GlucoseSyrup;
@PreInit
public void initConfig(FMLPreInitializationEvent fpe)
{
PumpkinSoup = (new ModItemSoup(1000, 3).setItemName("PumpkinSoup").setCreativeTab(CreativeTabs.tabFood).setIconCoord(2, 1));
ApplePie = (new ModItemFood (1001, 3,1.0F, false ). setItemName("ApplePie").setCreativeTab(CreativeTabs.tabFood).setIconCoord(1, 0));
AppleJuice = (new ModItemJuice (1002, 4).setItemName("AppleJuice").setCreativeTab(CreativeTabs.tabFood).setIconCoord(0, 0));
Juicer = (new ModItem (1003).setItemName("Juicer").setCreativeTab(CreativeTabs.tabTools).setIconCoord(13, 0));
BoiledEgg = (new ModItemFood (1004,2, false).setItemName("BoiledEgg").setCreativeTab(CreativeTabs.tabFood).setIconCoord(4, 0));
ChocolateBar = (new ModItemFood (1005,2,false).setItemName("ChocolateBar").setCreativeTab(CreativeTabs.tabFood).setIconCoord(5, 0));
ChocolateBlock = (new ModItemFood (1006,5,false).setItemName("ChocolateBlock").setCreativeTab(CreativeTabs.tabFood).setIconCoord(6, 0));
ChocolateMilk = (new ModItemSoup (1007,2).setItemName("ChocolateMilk").setCreativeTab(CreativeTabs.tabFood).setIconCoord(7, 0));
HotChocolate = (new ModItemSoup (1008,6).setItemName("HotChocolate").setCreativeTab(CreativeTabs.tabFood).setIconCoord(10, 0));
Custard = (new ModItemSoup (1009,2).setItemName("Custard").setCreativeTab(CreativeTabs.tabFood).setIconCoord(8, 0));
BakedCustard = (new ModItemSoup (1010,6).setItemName("BakedCustard").setCreativeTab(CreativeTabs.tabFood).setIconCoord(2, 0));
CustardDanish = (new ModItemFood (1011,2, false).setItemName("CustardDanish").setCreativeTab(CreativeTabs.tabFood).setIconCoord(9, 0));
BakedDanish = (new ModItemFood (1012,6, false).setItemName("BakedDanish").setCreativeTab(CreativeTabs.tabFood).setIconCoord(3, 0));
Toffee = (new ModItemFood (1013,1,false).setItemName("Toffee").setCreativeTab(CreativeTabs.tabFood).setIconCoord(3, 1));
ToffeeApple = (new ModItemFood (1014,5,false).setItemName("ToffeeApple").setCreativeTab(CreativeTabs.tabFood).setIconCoord(4, 1));
SugarWater = (new ModItemFood(1015,1,false).setItemName("SugarWater").setCreativeTab(CreativeTabs.tabFood).setIconCoord(12, 0));
GlucoseSyrup = (new ModItemFood(1016, 1,false).setItemName("GlucoseSyrup").setCreativeTab(CreativeTabs.tabFood).setIconCoord(11, 0));
}
@Init
public void load(FMLInitializationEvent fie)
{
//Blocks
OrangePlank = (new ModBlock(500, 3, Material.wood ).setHardness(2.0F).setResistance(5.0F).setStepSound(Block.soundWoodFootstep).setBlockName("OrangePlank").setRequiresSelfNotify());
//Items
PumpkinSoup = (new ModItemSoup(1000, 3).setItemName("PumpkinSoup").setCreativeTab(CreativeTabs.tabFood).setIconCoord(2, 1));
ApplePie = (new ModItemFood (1001, 3,1.0F, false ). setItemName("ApplePie").setCreativeTab(CreativeTabs.tabFood).setIconCoord(1, 0));
AppleJuice = (new ModItemJuice (1002, 4).setItemName("AppleJuice").setCreativeTab(CreativeTabs.tabFood).setIconCoord(0, 0));
Juicer = (new ModItem (1003).setItemName("Juicer").setCreativeTab(CreativeTabs.tabTools).setIconCoord(13, 0));
BoiledEgg = (new ModItemFood (1004,2, false).setItemName("BoiledEgg").setCreativeTab(CreativeTabs.tabFood).setIconCoord(4, 0));
ChocolateBar = (new ModItemFood (1005,2,false).setItemName("ChocolateBar").setCreativeTab(CreativeTabs.tabFood).setIconCoord(5, 0));
ChocolateBlock = (new ModItemFood (1006,5,false).setItemName("ChocolateBlock").setCreativeTab(CreativeTabs.tabFood).setIconCoord(6, 0));
ChocolateMilk = (new ModItemSoup (1007,2).setItemName("ChocolateMilk").setCreativeTab(CreativeTabs.tabFood).setIconCoord(7, 0));
HotChocolate = (new ModItemSoup (1008,6).setItemName("HotChocolate").setCreativeTab(CreativeTabs.tabFood).setIconCoord(10, 0));
Custard = (new ModItemSoup (1009,2).setItemName("Custard").setCreativeTab(CreativeTabs.tabFood).setIconCoord(8, 0));
BakedCustard = (new ModItemSoup (1010,6).setItemName("BakedCustard").setCreativeTab(CreativeTabs.tabFood).setIconCoord(2, 0));
CustardDanish = (new ModItemFood (1011,2, false).setItemName("CustardDanish").setCreativeTab(CreativeTabs.tabFood).setIconCoord(9, 0));
BakedDanish = (new ModItemFood (1012,6, false).setItemName("BakedDanish").setCreativeTab(CreativeTabs.tabFood).setIconCoord(3, 0));
Toffee = (new ModItemFood (1013,1,false).setItemName("Toffee").setCreativeTab(CreativeTabs.tabFood).setIconCoord(3, 1));
ToffeeApple = (new ModItemFood (1014,5,false).setItemName("ToffeeApple").setCreativeTab(CreativeTabs.tabFood).setIconCoord(4, 1));
SugarWater = (new ModItemFood(1015,1,false).setItemName("SugarWater").setCreativeTab(CreativeTabs.tabFood).setIconCoord(12, 0));
GlucoseSyrup = (new ModItemFood(1016, 1,false).setItemName("GlucoseSyrup").setCreativeTab(CreativeTabs.tabFood).setIconCoord(11, 0));
public void recipes()
{
GameRegistry.addRecipe(new ItemStack(OrangePlank, 1), new Object[]{
" * ","*X*"," * ", Character.valueOf('*'), new ItemStack(Item.dyePowder, 1, 14), Character.valueOf('X'), Block.planks});
GameRegistry.addRecipe(new ItemStack(PumpkinSoup,1), new Object[]{
" * ", " X ", Character.valueOf('X'), Item.bowlEmpty, Character.valueOf('*'), Block.pumpkin});
GameRegistry.addShapelessRecipe(new ItemStack(ApplePie,1), new Object[]{
new ItemStack(Item.potion, 1, 0), new ItemStack(Item.appleRed), new ItemStack(Item.egg), new ItemStack(Item.sugar)});
GameRegistry.addShapelessRecipe(new ItemStack(AppleJuice,1), new Object[]{
new ItemStack(Item.appleRed), new ItemStack(ModItem.Juicer), new ItemStack(Item.sugar), new ItemStack(Item.glassBottle)});
GameRegistry.addRecipe(new ItemStack(Juicer,1), new Object[]{
" * ", " X ", " ! ", Character.valueOf('*'), Item.flint, Character.valueOf('X'), Item.stick,
Character.valueOf('!'), Item.bowlEmpty});
Juicer.setContainerItem(Juicer);
GameRegistry.addShapelessRecipe(new ItemStack(ChocolateBar,1), new Object[]{
new ItemStack(Item.dyePowder, 1, 3), new ItemStack(Item.sugar), new ItemStack(Item.bucketMilk)});
GameRegistry.addRecipe(new ItemStack(ChocolateBlock,1), new Object[]{
"***", Character.valueOf('*'), ModItem.ChocolateBar});
GameRegistry.addShapelessRecipe(new ItemStack(ChocolateMilk,1), new Object[]{
new ItemStack(ModItem.ChocolateBar), new ItemStack(Item.sugar), new ItemStack(Item.bucketMilk)});
GameRegistry.addShapelessRecipe(new ItemStack(Custard,1), new Object[]{
new ItemStack(Item.sugar), new ItemStack(Item.bucketMilk), new ItemStack(Item.egg)});
GameRegistry.addShapelessRecipe(new ItemStack(CustardDanish,1), new Object[]{
new ItemStack(ModItem.Custard), new ItemStack(Item.wheat), new ItemStack(Item.egg), new ItemStack(Item.sugar)});
GameRegistry.addRecipe(new ItemStack(ToffeeApple,1), new Object[]{
" ! ", " X ", " * ", Character.valueOf('*'), Item.stick, Character.valueOf('X'), Item.appleRed,Character.valueOf('!'), ModItem.Toffee});
GameRegistry.addShapelessRecipe(new ItemStack(SugarWater, 1), new Object[] {
new ItemStack(Item.potion, 1, 0), new ItemStack(Item.sugar)});
}
public void smelting()
{
GameRegistry.addSmelting(ModItem.SugarWater.itemID, new ItemStack(GlucoseSyrup, 1), 0.0F);
GameRegistry.addSmelting(Item.egg.itemID, new ItemStack (BoiledEgg, 1), 0.0F);
GameRegistry.addSmelting(ModItem.ChocolateMilk.itemID, new ItemStack (HotChocolate, 1), 0.0F);
GameRegistry.addSmelting(ModItem.Custard.itemID, new ItemStack (BakedCustard, 1), 0.0F);
GameRegistry.addSmelting(ModItem.CustardDanish.itemID, new ItemStack (BakedDanish, 1), 0.0F);
GameRegistry.addSmelting(Item.sugar.itemID, new ItemStack (Toffee, 1), 0.0F);
The Meaning of Life, the Universe, and Everything.
Join Date:
5/16/2012
Posts:
52
Member Details
I have two questions.
1. I made a mod and it runs fine in SSP but when I add it to the server mod folder for SMP it crashes the server on start up
---- Minecraft Crash Report ----
// Oops.
Time: 2/26/13 9:00 AM
Description: Exception in server tick loop
cpw.mods.fml.common.LoaderException: java.lang.ClassNotFoundException: planksincolor.common.CommonProxy
at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:69)
at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:464)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
at com.google.common.eventbus.EventBus.post(EventBus.java:268)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:153)
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.EventHandler.handleEvent(EventHandler.java:69)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
at com.google.common.eventbus.EventBus.post(EventBus.java:268)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:86)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:494)
at cpw.mods.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:86)
at cpw.mods.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:351)
at ho.c(DedicatedServer.java:64)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:458)
at fy.run(SourceFile:849)
Caused by: java.lang.ClassNotFoundException: planksincolor.common.CommonProxy
at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:185)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at cpw.mods.fml.common.ModClassLoader.loadClass(ModClassLoader.java:57)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:52)
... 26 more
Caused by: java.lang.NullPointerException
at org.objectweb.asm.ClassReader.<init>(Unknown Source)
at net.minecraftforge.transformers.EventTransformer.transform(EventTransformer.java:29)
at cpw.mods.fml.relauncher.RelaunchClassLoader.runTransformers(RelaunchClassLoader.java:228)
at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:173)
... 32 more
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
2. How to make a shapeless recipe require two metadatas items one required item will have a specific metadata but the other required item would not matter which you using.
say, the two items needed are dye and wood.
The first would require a specific dye but for the second it would not matter what wood you used.
Here's the code I was trying to use before I went to a normal recipe.
GameRegistry.addShapelessRecipe(new ItemStack(this.redPlanks, 1), new Object[] {
new ItemStack(Item.dyePowder, 1, 1),
Block.planks
});
This should require red dye and planks of any kind to make red planks but it doesn't in game only Oak Planks work, not Spruce, Birch, or Jungle.
so until I can fix that I went back to the normal recipe which is the same thing only I have to have the items in the correct spot on the workbench.
GameRegistry.addRecipe(new ItemStack(this.redPlanks, 1), new Object[] {
" D ", " P ", 'D', new ItemStack(Item.dyePowder, 1, 1), 'P',
Block.planks });
I have two questions.
1. I made a mod and it runs fine in SSP but when I add it to the server mod folder for SMP it crashes the server on start up
---- Minecraft Crash Report ----
// Oops.
Time: 2/26/13 9:00 AM
Description: Exception in server tick loop
cpw.mods.fml.common.LoaderException: java.lang.ClassNotFoundException: planksincolor.common.CommonProxy
at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:69)
at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:464)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
at com.google.common.eventbus.EventBus.post(EventBus.java:268)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:153)
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.EventHandler.handleEvent(EventHandler.java:69)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
at com.google.common.eventbus.EventBus.post(EventBus.java:268)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:86)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:494)
at cpw.mods.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:86)
at cpw.mods.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:351)
at ho.c(DedicatedServer.java:64)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:458)
at fy.run(SourceFile:849)
Caused by: java.lang.ClassNotFoundException: planksincolor.common.CommonProxy
at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:185)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at cpw.mods.fml.common.ModClassLoader.loadClass(ModClassLoader.java:57)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:52)
... 26 more
Caused by: java.lang.NullPointerException
at org.objectweb.asm.ClassReader.<init>(Unknown Source)
at net.minecraftforge.transformers.EventTransformer.transform(EventTransformer.java:29)
at cpw.mods.fml.relauncher.RelaunchClassLoader.runTransformers(RelaunchClassLoader.java:228)
at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:173)
... 32 more
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
2. How to make a shapeless recipe require two metadatas items one required item will have a specific metadata but the other required item would not matter which you using.
say, the two items needed are dye and wood.
The first would require a specific dye but for the second it would not matter what wood you used.
Here's the code I was trying to use before I went to a normal recipe.
GameRegistry.addShapelessRecipe(new ItemStack(this.redPlanks, 1), new Object[] {
new ItemStack(Item.dyePowder, 1, 1),
Block.planks
});
This should require red dye and planks of any kind to make red planks but it doesn't in game only Oak Planks work, not Spruce, Birch, or Jungle.
so until I can fix that I went back to the normal recipe which is the same thing only I have to have the items in the correct spot on the workbench.
GameRegistry.addRecipe(new ItemStack(this.redPlanks, 1), new Object[] {
" D ", " P ", 'D', new ItemStack(Item.dyePowder, 1, 1), 'P',
Block.planks });
1) Are you using the same file? mods are universal nowadays
2) To make it use any metadata, write in the metadata as -1
The Meaning of Life, the Universe, and Everything.
Join Date:
5/16/2012
Posts:
52
Member Details
Yeah same file I got from reobf>minecraft.
It works when I play a single player world, but I get that crash when copying and pasting the file in vanilla minecraft server mods folder.
Is it because when recompiling at the end I get,
cannot find server sources, try decompiling
and when reobfuscating I get,
cannot find server md5s
?
It works when I play a single player world, but I get that crash when copying and pasting the file in vanilla minecraft server mods folder.
Is it because when recompiling at the end I get,
cannot find server sources, try decompiling
and when reobfuscating I get,
cannot find server md5s
?
Hmm, I'm not sure why it's working, but don't think that's the problem...
The Meaning of Life, the Universe, and Everything.
Join Date:
5/16/2012
Posts:
52
Member Details
Does it not need to be added to the mods folder in the server folder and I only need to make sure everyone that plays on the server has it in the .minecraft/mods folder?
Hmm, I'm not sure why it's working, but don't think that's the problem...
I fixed it.
I took a close look at the crash report and at the bottom the bit that says
"A detailed walkthrough of the error, its code path and all known details is as follows:"
And it said Unloaded->Errored, so I zipped it up so it could unload and put it in the mods folder for the server and it started without crash.
For some reason in my .minecraft>mods I have to have it unzipped or it wont read and in the server>mods I have to have it zipped.
Also Huge thanks with the shapeless recipe, I should have known you could use -1...
Edit: Never mind when zipped up the server is not picking it up either.
I'm not sure where to put the .png for my items any help?
Go to your MCP folder > jars > bin and open the minecraft.jar with something like winRAR, make a folder on your desktop with the .png image in it and drag it into the minecraft.jar winRAR window
Iv'e got some questions, would i be able to have blocks with different models using one ID? and if it were possible/impossible could you do a tutorial some time on how to make blocks with different models, possibly using techne? (If you don't know what that it is just look it up in google, its a modeler for minecraft) or if you could point me to a tutorial that has already been made for this? Thanks
Oh, you were asking how xD My bad
Change * to your number ;P
I think it has something to do with this recipe
GameRegistry.addShapelessRecipe(new ItemStack(AppleJuice,1), new Object[]{
new ItemStack(Item.appleRed), new ItemStack(ModItem.Juicer), new ItemStack(Item.sugar), new ItemStack(Item.glassBottle)});
at foodplus.FoodPlusMod.recipes(FoodPlusMod.java:144)
Here's the full code
package foodplus;
import net.minecraft.block.Block;
import net.minecraft.block.BlockLog;
import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraftforge.client.MinecraftForgeClient;
import net.minecraftforge.oredict.OreDictionary;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.Init;
import cpw.mods.fml.common.Mod.PreInit;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.network.NetworkMod;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;
@Mod(modid = "FoodPlusMod", name = "Food Plus For 1.4.7", version = "v1.0")
@NetworkMod(clientSideRequired = true, serverSideRequired = true)
public class FoodPlusMod
{
//Blocks
public static Block OrangePlank;
//Items
public static Item PumpkinSoup;
public static Item ApplePie;
public static Item AppleJuice;
public static Item Juicer;
public static Item BoiledEgg;
public static Item ChocolateBar;
public static Item ChocolateBlock;
public static Item ChocolateMilk;
public static Item HotChocolate;
public static Item Custard;
public static Item BakedCustard;
public static Item CustardDanish;
public static Item BakedDanish;
public static Item Toffee;
public static Item ToffeeApple;
public static Item SugarWater;
public static Item GlucoseSyrup;
@PreInit
public void initConfig(FMLPreInitializationEvent fpe)
{
}
@Init
public void load(FMLInitializationEvent fie)
{
//Blocks
OrangePlank = (new ModBlock(500, 3, Material.wood ).setHardness(2.0F).setResistance(5.0F).setStepSound(Block.soundWoodFootstep).setBlockName("OrangePlank").setRequiresSelfNotify());
//Items
PumpkinSoup = (new ModItemSoup(1000, 3).setItemName("PumpkinSoup").setCreativeTab(CreativeTabs.tabFood).setIconCoord(2, 1));
ApplePie = (new ModItemFood (1001, 3,1.0F, false ). setItemName("ApplePie").setCreativeTab(CreativeTabs.tabFood).setIconCoord(1, 0));
AppleJuice = (new ModItemJuice (1002, 4).setItemName("AppleJuice").setCreativeTab(CreativeTabs.tabFood).setIconCoord(0, 0));
Juicer = (new ModItem (1003).setItemName("Juicer").setCreativeTab(CreativeTabs.tabTools).setIconCoord(13, 0));
BoiledEgg = (new ModItemFood (1004,2, false).setItemName("BoiledEgg").setCreativeTab(CreativeTabs.tabFood).setIconCoord(4, 0));
ChocolateBar = (new ModItemFood (1005,2,false).setItemName("ChocolateBar").setCreativeTab(CreativeTabs.tabFood).setIconCoord(5, 0));
ChocolateBlock = (new ModItemFood (1006,5,false).setItemName("ChocolateBlock").setCreativeTab(CreativeTabs.tabFood).setIconCoord(6, 0));
ChocolateMilk = (new ModItemSoup (1007,2).setItemName("ChocolateMilk").setCreativeTab(CreativeTabs.tabFood).setIconCoord(7, 0));
HotChocolate = (new ModItemSoup (1008,6).setItemName("HotChocolate").setCreativeTab(CreativeTabs.tabFood).setIconCoord(10, 0));
Custard = (new ModItemSoup (1009,2).setItemName("Custard").setCreativeTab(CreativeTabs.tabFood).setIconCoord(8, 0));
BakedCustard = (new ModItemSoup (1010,6).setItemName("BakedCustard").setCreativeTab(CreativeTabs.tabFood).setIconCoord(2, 0));
CustardDanish = (new ModItemFood (1011,2, false).setItemName("CustardDanish").setCreativeTab(CreativeTabs.tabFood).setIconCoord(9, 0));
BakedDanish = (new ModItemFood (1012,6, false).setItemName("BakedDanish").setCreativeTab(CreativeTabs.tabFood).setIconCoord(3, 0));
Toffee = (new ModItemFood (1013,1,false).setItemName("Toffee").setCreativeTab(CreativeTabs.tabFood).setIconCoord(3, 1));
ToffeeApple = (new ModItemFood (1014,5,false).setItemName("ToffeeApple").setCreativeTab(CreativeTabs.tabFood).setIconCoord(4, 1));
SugarWater = (new ModItemFood(1015,1,false).setItemName("SugarWater").setCreativeTab(CreativeTabs.tabFood).setIconCoord(12, 0));
GlucoseSyrup = (new ModItemFood(1016, 1,false).setItemName("GlucoseSyrup").setCreativeTab(CreativeTabs.tabFood).setIconCoord(11, 0));
registeringBlocks();
blockNames();
itemNames();
recipes();
smelting();
//Minecraft Forge Texture Functions
MinecraftForgeClient.preloadTexture("/Texture/modterrain.png");
MinecraftForgeClient.preloadTexture("/Texture/moditems.png");
}
public void registeringBlocks()
{
GameRegistry.registerBlock(OrangePlank);
}
public void blockNames()
{
LanguageRegistry.addName(OrangePlank, "Orange Wood Planks");
}
public void itemNames()
{
LanguageRegistry.addName(PumpkinSoup, "Pumpkin Soup");
LanguageRegistry.addName(ApplePie, "Apple Pie");
LanguageRegistry.addName(AppleJuice, "Apple Juice");
LanguageRegistry.addName(Juicer, "Juicer");
LanguageRegistry.addName(BoiledEgg, "Boiled Egg");
LanguageRegistry.addName(ChocolateBar, "Chocolate Bar");
LanguageRegistry.addName(ChocolateBlock, "Chocolate Block");
LanguageRegistry.addName(ChocolateMilk, "Chocolate Milk");
LanguageRegistry.addName(HotChocolate, "Hot Chocolate");
LanguageRegistry.addName(Custard, "Custard");
LanguageRegistry.addName(BakedCustard, "Baked Custard");
LanguageRegistry.addName(CustardDanish, "Custard Danish");
LanguageRegistry.addName(BakedDanish, "Baked Danish");
LanguageRegistry.addName(Toffee, "Toffee");
LanguageRegistry.addName(ToffeeApple, "Toffee Apple");
LanguageRegistry.addName(SugarWater, "Sugar Water");
LanguageRegistry.addName(GlucoseSyrup, "Glucose Syrup");
}
public void recipes()
{
GameRegistry.addRecipe(new ItemStack(OrangePlank, 1), new Object[]{
" * ","*X*"," * ", Character.valueOf('*'), new ItemStack(Item.dyePowder, 1, 14), Character.valueOf('X'), Block.planks});
GameRegistry.addRecipe(new ItemStack(PumpkinSoup,1), new Object[]{
" * ", " X ", Character.valueOf('X'), Item.bowlEmpty, Character.valueOf('*'), Block.pumpkin});
GameRegistry.addShapelessRecipe(new ItemStack(ApplePie,1), new Object[]{
new ItemStack(Item.potion, 1, 0), new ItemStack(Item.appleRed), new ItemStack(Item.egg), new ItemStack(Item.sugar)});
GameRegistry.addShapelessRecipe(new ItemStack(AppleJuice,1), new Object[]{
new ItemStack(Item.appleRed), new ItemStack(ModItem.Juicer), new ItemStack(Item.sugar), new ItemStack(Item.glassBottle)});
GameRegistry.addRecipe(new ItemStack(Juicer,1), new Object[]{
" * ", " X ", " ! ", Character.valueOf('*'), Item.flint, Character.valueOf('X'), Item.stick,
Character.valueOf('!'), Item.bowlEmpty});
Juicer.setContainerItem(Juicer);
GameRegistry.addShapelessRecipe(new ItemStack(ChocolateBar,1), new Object[]{
new ItemStack(Item.dyePowder, 1, 3), new ItemStack(Item.sugar), new ItemStack(Item.bucketMilk)});
GameRegistry.addRecipe(new ItemStack(ChocolateBlock,1), new Object[]{
"***", Character.valueOf('*'), ModItem.ChocolateBar});
GameRegistry.addShapelessRecipe(new ItemStack(ChocolateMilk,1), new Object[]{
new ItemStack(ModItem.ChocolateBar), new ItemStack(Item.sugar), new ItemStack(Item.bucketMilk)});
GameRegistry.addShapelessRecipe(new ItemStack(Custard,1), new Object[]{
new ItemStack(Item.sugar), new ItemStack(Item.bucketMilk), new ItemStack(Item.egg)});
GameRegistry.addShapelessRecipe(new ItemStack(CustardDanish,1), new Object[]{
new ItemStack(ModItem.Custard), new ItemStack(Item.wheat), new ItemStack(Item.egg), new ItemStack(Item.sugar)});
GameRegistry.addRecipe(new ItemStack(ToffeeApple,1), new Object[]{
" ! ", " X ", " * ", Character.valueOf('*'), Item.stick, Character.valueOf('X'), Item.appleRed,Character.valueOf('!'), ModItem.Toffee});
GameRegistry.addShapelessRecipe(new ItemStack(SugarWater, 1), new Object[] {
new ItemStack(Item.potion, 1, 0), new ItemStack(Item.sugar)});
}
public void smelting()
{
GameRegistry.addSmelting(ModItem.SugarWater.itemID, new ItemStack(GlucoseSyrup, 1), 0.0F);
GameRegistry.addSmelting(Item.egg.itemID, new ItemStack (BoiledEgg, 1), 0.0F);
GameRegistry.addSmelting(ModItem.ChocolateMilk.itemID, new ItemStack (HotChocolate, 1), 0.0F);
GameRegistry.addSmelting(ModItem.Custard.itemID, new ItemStack (BakedCustard, 1), 0.0F);
GameRegistry.addSmelting(ModItem.CustardDanish.itemID, new ItemStack (BakedDanish, 1), 0.0F);
GameRegistry.addSmelting(Item.sugar.itemID, new ItemStack (Toffee, 1), 0.0F);
}
public void registerOre()
{
OreDictionary.registerOre("AppleJuice", FoodPlusMod.AppleJuice);
OreDictionary.registerOre("ApplePie", FoodPlusMod.ApplePie);
OreDictionary.registerOre("BakedCustard", FoodPlusMod.BakedCustard);
OreDictionary.registerOre("BakedDanish", FoodPlusMod.BakedDanish);
OreDictionary.registerOre("BoiledEgg", FoodPlusMod.BoiledEgg);
OreDictionary.registerOre("ChocolateBar", FoodPlusMod.ChocolateBar);
OreDictionary.registerOre("ChocolateBlock", FoodPlusMod.ChocolateBlock);
OreDictionary.registerOre("Custard", FoodPlusMod.Custard);
OreDictionary.registerOre("Danish", FoodPlusMod.CustardDanish);
OreDictionary.registerOre("GlucoseSyrup", FoodPlusMod.GlucoseSyrup);
OreDictionary.registerOre("HotChocolate", FoodPlusMod.HotChocolate);
OreDictionary.registerOre("ChocolateMilk", FoodPlusMod.ChocolateMilk);
OreDictionary.registerOre("PumpkinSoup", FoodPlusMod.PumpkinSoup);
OreDictionary.registerOre("SugarWater", FoodPlusMod.SugarWater);
OreDictionary.registerOre("Toffee", FoodPlusMod.Toffee);
OreDictionary.registerOre("ToffeeApple", FoodPlusMod.ToffeeApple);
}
}
and the full error report
---- Minecraft Crash Report ----
// On the bright side, I bought you a teddy bear!
Time: 26/02/13 11:49 AM
Description: Failed to start game
java.lang.NullPointerException
at net.minecraft.item.ItemStack.<init>(ItemStack.java:64)
at foodplus.FoodPlusMod.recipes(FoodPlusMod.java:144)
at foodplus.FoodPlusMod.load(FoodPlusMod.java:90)
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:485)
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.EventHandler.handleEvent(EventHandler.java:69)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
at com.google.common.eventbus.EventBus.post(EventBus.java:268)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:140)
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.EventHandler.handleEvent(EventHandler.java:69)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
at com.google.common.eventbus.EventBus.post(EventBus.java:268)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:83)
at cpw.mods.fml.common.Loader.initializeMods(Loader.java:657)
at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:207)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:456)
at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)
at net.minecraft.client.Minecraft.run(Minecraft.java:744)
at java.lang.Thread.run(Unknown Source)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- System Details --
Details:
Minecraft Version: 1.4.7
Operating System: Windows 7 (x86) version 6.1
Java Version: 1.7.0_09, Oracle Corporation
Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
Memory: 989752544 bytes (943 MB) / 1060372480 bytes (1011 MB) up to 1060372480 bytes (1011 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Suspicious classes: FML and Forge are installed
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v7.26 FML v4.7.4.520 Minecraft Forge 6.6.0.497 4 mods loaded, 4 mods active
mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized
FML [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized
Forge [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized
FoodPlusMod [Food Plus For 1.4.7] (bin) Unloaded->Constructed->Pre-initialized->Errored
LWJGL: 2.4.2
OpenGL: GeForce GT 230M/PCI/SSE2 GL version 3.0.0, NVIDIA Corporation
Is Modded: Definitely; Client brand changed to 'forge,fml'
Type: Client (map_client.txt)
Texture Pack: Default
Profiler Position: N/A (disabled)
Vec3 Pool Size: ~~ERROR~~ NullPointerException: null
I have no idea why the recipe could be causing problems cause i've registered the juicer item and all that jazz and even put it inside the modItem class file to see if that worked to no avail. :/
This is the modItem file in case you wanted to see it
package foodplus;
import net.minecraft.item.Item;
public class ModItem extends Item
{
public ModItem(int par1)
{
super (par1);
}
//Mod Items for Crafting
public static ModItem Juicer;
public static ModItem ChocolateBar;
public static ModItem Custard;
public static ModItem Toffee;
public static ModItem SugarWater;
public static ModItem ChocolateMilk;
public static ModItem CustardDanish;
public String getTextureFile()
{
return "/Texture/moditems.png";
}
}
Nope, didn't really help, its still giving me errors about "ServerPacketHandler.class"
I'm not really familiar with entities at the moment, but I am going to figure them out at some point soon
I mostly do it from working out, but slightly from tutorials I read a while back
Not sure if it'll fix your problems, but try putting the items in preinit
I can't see an import for it in the code you gave me... Can I see the error message?
You mean like so?
package foodplus;
import net.minecraft.block.Block;
import net.minecraft.block.BlockLog;
import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraftforge.client.MinecraftForgeClient;
import net.minecraftforge.oredict.OreDictionary;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.Init;
import cpw.mods.fml.common.Mod.PreInit;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.network.NetworkMod;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;
@Mod(modid = "FoodPlusMod", name = "Food Plus For 1.4.7", version = "v1.0")
@NetworkMod(clientSideRequired = true, serverSideRequired = true)
public class FoodPlusMod
{
//Blocks
public static Block OrangePlank;
//Items
public static Item PumpkinSoup;
public static Item ApplePie;
public static Item AppleJuice;
public static Item Juicer;
public static Item BoiledEgg;
public static Item ChocolateBar;
public static Item ChocolateBlock;
public static Item ChocolateMilk;
public static Item HotChocolate;
public static Item Custard;
public static Item BakedCustard;
public static Item CustardDanish;
public static Item BakedDanish;
public static Item Toffee;
public static Item ToffeeApple;
public static Item SugarWater;
public static Item GlucoseSyrup;
@PreInit
public void initConfig(FMLPreInitializationEvent fpe)
{
PumpkinSoup = (new ModItemSoup(1000, 3).setItemName("PumpkinSoup").setCreativeTab(CreativeTabs.tabFood).setIconCoord(2, 1));
ApplePie = (new ModItemFood (1001, 3,1.0F, false ). setItemName("ApplePie").setCreativeTab(CreativeTabs.tabFood).setIconCoord(1, 0));
AppleJuice = (new ModItemJuice (1002, 4).setItemName("AppleJuice").setCreativeTab(CreativeTabs.tabFood).setIconCoord(0, 0));
Juicer = (new ModItem (1003).setItemName("Juicer").setCreativeTab(CreativeTabs.tabTools).setIconCoord(13, 0));
BoiledEgg = (new ModItemFood (1004,2, false).setItemName("BoiledEgg").setCreativeTab(CreativeTabs.tabFood).setIconCoord(4, 0));
ChocolateBar = (new ModItemFood (1005,2,false).setItemName("ChocolateBar").setCreativeTab(CreativeTabs.tabFood).setIconCoord(5, 0));
ChocolateBlock = (new ModItemFood (1006,5,false).setItemName("ChocolateBlock").setCreativeTab(CreativeTabs.tabFood).setIconCoord(6, 0));
ChocolateMilk = (new ModItemSoup (1007,2).setItemName("ChocolateMilk").setCreativeTab(CreativeTabs.tabFood).setIconCoord(7, 0));
HotChocolate = (new ModItemSoup (1008,6).setItemName("HotChocolate").setCreativeTab(CreativeTabs.tabFood).setIconCoord(10, 0));
Custard = (new ModItemSoup (1009,2).setItemName("Custard").setCreativeTab(CreativeTabs.tabFood).setIconCoord(8, 0));
BakedCustard = (new ModItemSoup (1010,6).setItemName("BakedCustard").setCreativeTab(CreativeTabs.tabFood).setIconCoord(2, 0));
CustardDanish = (new ModItemFood (1011,2, false).setItemName("CustardDanish").setCreativeTab(CreativeTabs.tabFood).setIconCoord(9, 0));
BakedDanish = (new ModItemFood (1012,6, false).setItemName("BakedDanish").setCreativeTab(CreativeTabs.tabFood).setIconCoord(3, 0));
Toffee = (new ModItemFood (1013,1,false).setItemName("Toffee").setCreativeTab(CreativeTabs.tabFood).setIconCoord(3, 1));
ToffeeApple = (new ModItemFood (1014,5,false).setItemName("ToffeeApple").setCreativeTab(CreativeTabs.tabFood).setIconCoord(4, 1));
SugarWater = (new ModItemFood(1015,1,false).setItemName("SugarWater").setCreativeTab(CreativeTabs.tabFood).setIconCoord(12, 0));
GlucoseSyrup = (new ModItemFood(1016, 1,false).setItemName("GlucoseSyrup").setCreativeTab(CreativeTabs.tabFood).setIconCoord(11, 0));
}
@Init
public void load(FMLInitializationEvent fie)
{
//Blocks
OrangePlank = (new ModBlock(500, 3, Material.wood ).setHardness(2.0F).setResistance(5.0F).setStepSound(Block.soundWoodFootstep).setBlockName("OrangePlank").setRequiresSelfNotify());
//Items
PumpkinSoup = (new ModItemSoup(1000, 3).setItemName("PumpkinSoup").setCreativeTab(CreativeTabs.tabFood).setIconCoord(2, 1));
ApplePie = (new ModItemFood (1001, 3,1.0F, false ). setItemName("ApplePie").setCreativeTab(CreativeTabs.tabFood).setIconCoord(1, 0));
AppleJuice = (new ModItemJuice (1002, 4).setItemName("AppleJuice").setCreativeTab(CreativeTabs.tabFood).setIconCoord(0, 0));
Juicer = (new ModItem (1003).setItemName("Juicer").setCreativeTab(CreativeTabs.tabTools).setIconCoord(13, 0));
BoiledEgg = (new ModItemFood (1004,2, false).setItemName("BoiledEgg").setCreativeTab(CreativeTabs.tabFood).setIconCoord(4, 0));
ChocolateBar = (new ModItemFood (1005,2,false).setItemName("ChocolateBar").setCreativeTab(CreativeTabs.tabFood).setIconCoord(5, 0));
ChocolateBlock = (new ModItemFood (1006,5,false).setItemName("ChocolateBlock").setCreativeTab(CreativeTabs.tabFood).setIconCoord(6, 0));
ChocolateMilk = (new ModItemSoup (1007,2).setItemName("ChocolateMilk").setCreativeTab(CreativeTabs.tabFood).setIconCoord(7, 0));
HotChocolate = (new ModItemSoup (1008,6).setItemName("HotChocolate").setCreativeTab(CreativeTabs.tabFood).setIconCoord(10, 0));
Custard = (new ModItemSoup (1009,2).setItemName("Custard").setCreativeTab(CreativeTabs.tabFood).setIconCoord(8, 0));
BakedCustard = (new ModItemSoup (1010,6).setItemName("BakedCustard").setCreativeTab(CreativeTabs.tabFood).setIconCoord(2, 0));
CustardDanish = (new ModItemFood (1011,2, false).setItemName("CustardDanish").setCreativeTab(CreativeTabs.tabFood).setIconCoord(9, 0));
BakedDanish = (new ModItemFood (1012,6, false).setItemName("BakedDanish").setCreativeTab(CreativeTabs.tabFood).setIconCoord(3, 0));
Toffee = (new ModItemFood (1013,1,false).setItemName("Toffee").setCreativeTab(CreativeTabs.tabFood).setIconCoord(3, 1));
ToffeeApple = (new ModItemFood (1014,5,false).setItemName("ToffeeApple").setCreativeTab(CreativeTabs.tabFood).setIconCoord(4, 1));
SugarWater = (new ModItemFood(1015,1,false).setItemName("SugarWater").setCreativeTab(CreativeTabs.tabFood).setIconCoord(12, 0));
GlucoseSyrup = (new ModItemFood(1016, 1,false).setItemName("GlucoseSyrup").setCreativeTab(CreativeTabs.tabFood).setIconCoord(11, 0));
registeringBlocks();
blockNames();
itemNames();
recipes();
smelting();
//Minecraft Forge Texture Functions
MinecraftForgeClient.preloadTexture("/Texture/modterrain.png");
MinecraftForgeClient.preloadTexture("/Texture/moditems.png");
}
public void registeringBlocks()
{
GameRegistry.registerBlock(OrangePlank);
}
public void blockNames()
{
LanguageRegistry.addName(OrangePlank, "Orange Wood Planks");
}
public void itemNames()
{
LanguageRegistry.addName(PumpkinSoup, "Pumpkin Soup");
LanguageRegistry.addName(ApplePie, "Apple Pie");
LanguageRegistry.addName(AppleJuice, "Apple Juice");
LanguageRegistry.addName(Juicer, "Juicer");
LanguageRegistry.addName(BoiledEgg, "Boiled Egg");
LanguageRegistry.addName(ChocolateBar, "Chocolate Bar");
LanguageRegistry.addName(ChocolateBlock, "Chocolate Block");
LanguageRegistry.addName(ChocolateMilk, "Chocolate Milk");
LanguageRegistry.addName(HotChocolate, "Hot Chocolate");
LanguageRegistry.addName(Custard, "Custard");
LanguageRegistry.addName(BakedCustard, "Baked Custard");
LanguageRegistry.addName(CustardDanish, "Custard Danish");
LanguageRegistry.addName(BakedDanish, "Baked Danish");
LanguageRegistry.addName(Toffee, "Toffee");
LanguageRegistry.addName(ToffeeApple, "Toffee Apple");
LanguageRegistry.addName(SugarWater, "Sugar Water");
LanguageRegistry.addName(GlucoseSyrup, "Glucose Syrup");
}
public void recipes()
{
GameRegistry.addRecipe(new ItemStack(OrangePlank, 1), new Object[]{
" * ","*X*"," * ", Character.valueOf('*'), new ItemStack(Item.dyePowder, 1, 14), Character.valueOf('X'), Block.planks});
GameRegistry.addRecipe(new ItemStack(PumpkinSoup,1), new Object[]{
" * ", " X ", Character.valueOf('X'), Item.bowlEmpty, Character.valueOf('*'), Block.pumpkin});
GameRegistry.addShapelessRecipe(new ItemStack(ApplePie,1), new Object[]{
new ItemStack(Item.potion, 1, 0), new ItemStack(Item.appleRed), new ItemStack(Item.egg), new ItemStack(Item.sugar)});
GameRegistry.addShapelessRecipe(new ItemStack(AppleJuice,1), new Object[]{
new ItemStack(Item.appleRed), new ItemStack(ModItem.Juicer), new ItemStack(Item.sugar), new ItemStack(Item.glassBottle)});
GameRegistry.addRecipe(new ItemStack(Juicer,1), new Object[]{
" * ", " X ", " ! ", Character.valueOf('*'), Item.flint, Character.valueOf('X'), Item.stick,
Character.valueOf('!'), Item.bowlEmpty});
Juicer.setContainerItem(Juicer);
GameRegistry.addShapelessRecipe(new ItemStack(ChocolateBar,1), new Object[]{
new ItemStack(Item.dyePowder, 1, 3), new ItemStack(Item.sugar), new ItemStack(Item.bucketMilk)});
GameRegistry.addRecipe(new ItemStack(ChocolateBlock,1), new Object[]{
"***", Character.valueOf('*'), ModItem.ChocolateBar});
GameRegistry.addShapelessRecipe(new ItemStack(ChocolateMilk,1), new Object[]{
new ItemStack(ModItem.ChocolateBar), new ItemStack(Item.sugar), new ItemStack(Item.bucketMilk)});
GameRegistry.addShapelessRecipe(new ItemStack(Custard,1), new Object[]{
new ItemStack(Item.sugar), new ItemStack(Item.bucketMilk), new ItemStack(Item.egg)});
GameRegistry.addShapelessRecipe(new ItemStack(CustardDanish,1), new Object[]{
new ItemStack(ModItem.Custard), new ItemStack(Item.wheat), new ItemStack(Item.egg), new ItemStack(Item.sugar)});
GameRegistry.addRecipe(new ItemStack(ToffeeApple,1), new Object[]{
" ! ", " X ", " * ", Character.valueOf('*'), Item.stick, Character.valueOf('X'), Item.appleRed,Character.valueOf('!'), ModItem.Toffee});
GameRegistry.addShapelessRecipe(new ItemStack(SugarWater, 1), new Object[] {
new ItemStack(Item.potion, 1, 0), new ItemStack(Item.sugar)});
}
public void smelting()
{
GameRegistry.addSmelting(ModItem.SugarWater.itemID, new ItemStack(GlucoseSyrup, 1), 0.0F);
GameRegistry.addSmelting(Item.egg.itemID, new ItemStack (BoiledEgg, 1), 0.0F);
GameRegistry.addSmelting(ModItem.ChocolateMilk.itemID, new ItemStack (HotChocolate, 1), 0.0F);
GameRegistry.addSmelting(ModItem.Custard.itemID, new ItemStack (BakedCustard, 1), 0.0F);
GameRegistry.addSmelting(ModItem.CustardDanish.itemID, new ItemStack (BakedDanish, 1), 0.0F);
GameRegistry.addSmelting(Item.sugar.itemID, new ItemStack (Toffee, 1), 0.0F);
}
public void registerOre()
{
OreDictionary.registerOre("AppleJuice", FoodPlusMod.AppleJuice);
OreDictionary.registerOre("ApplePie", FoodPlusMod.ApplePie);
OreDictionary.registerOre("BakedCustard", FoodPlusMod.BakedCustard);
OreDictionary.registerOre("BakedDanish", FoodPlusMod.BakedDanish);
OreDictionary.registerOre("BoiledEgg", FoodPlusMod.BoiledEgg);
OreDictionary.registerOre("ChocolateBar", FoodPlusMod.ChocolateBar);
OreDictionary.registerOre("ChocolateBlock", FoodPlusMod.ChocolateBlock);
OreDictionary.registerOre("Custard", FoodPlusMod.Custard);
OreDictionary.registerOre("Danish", FoodPlusMod.CustardDanish);
OreDictionary.registerOre("GlucoseSyrup", FoodPlusMod.GlucoseSyrup);
OreDictionary.registerOre("HotChocolate", FoodPlusMod.HotChocolate);
OreDictionary.registerOre("ChocolateMilk", FoodPlusMod.ChocolateMilk);
OreDictionary.registerOre("PumpkinSoup", FoodPlusMod.PumpkinSoup);
OreDictionary.registerOre("SugarWater", FoodPlusMod.SugarWater);
OreDictionary.registerOre("Toffee", FoodPlusMod.Toffee);
OreDictionary.registerOre("ToffeeApple", FoodPlusMod.ToffeeApple);
}
}
Also remove them from the init method, they shouldn't be in both
1. I made a mod and it runs fine in SSP but when I add it to the server mod folder for SMP it crashes the server on start up
// Oops.
Time: 2/26/13 9:00 AM
Description: Exception in server tick loop
cpw.mods.fml.common.LoaderException: java.lang.ClassNotFoundException: planksincolor.common.CommonProxy
at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:69)
at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:464)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
at com.google.common.eventbus.EventBus.post(EventBus.java:268)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:153)
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.EventHandler.handleEvent(EventHandler.java:69)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
at com.google.common.eventbus.EventBus.post(EventBus.java:268)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:86)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:494)
at cpw.mods.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:86)
at cpw.mods.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:351)
at ho.c(DedicatedServer.java:64)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:458)
at fy.run(SourceFile:849)
Caused by: java.lang.ClassNotFoundException: planksincolor.common.CommonProxy
at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:185)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at cpw.mods.fml.common.ModClassLoader.loadClass(ModClassLoader.java:57)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:52)
... 26 more
Caused by: java.lang.NullPointerException
at org.objectweb.asm.ClassReader.<init>(Unknown Source)
at net.minecraftforge.transformers.EventTransformer.transform(EventTransformer.java:29)
at cpw.mods.fml.relauncher.RelaunchClassLoader.runTransformers(RelaunchClassLoader.java:228)
at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:173)
... 32 more
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- System Details --
Details:
Minecraft Version: 1.4.7
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.7.0_09, Oracle Corporation
Java VM Version: Java HotSpot™ 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 1004786152 bytes (958 MB) / 1029046272 bytes (981 MB) up to 1029046272 bytes (981 MB)
JVM Flags: 2 total; -Xms1024m -Xmx1024m
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Suspicious classes: FML and Forge are installed
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v7.26a FML v4.7.32.553 Minecraft Forge 6.6.1.524 32 mods loaded, 31 mods active
mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed
FML [Forge Mod Loader] (coremods) Unloaded->Constructed
Forge [Minecraft Forge] (coremods) Unloaded->Constructed
ArsMagica [Ars Magica] (ArsMagica_5.36.040-Universal.zip) Unloaded->Constructed
CameraCraft [CameraCraft] (CameraCraft2.3.zip) Unloaded->Constructed
MetallurgyCore [Metallurgy Core] (Metallurgy Core 2.4.2.jar) Unloaded->Constructed
MetallurgyBase [Metallurgy Base] (Metallurgy Base Metals 2.4.jar) Unloaded->Constructed
MetallurgyEnder [Metallurgy Ender] (Metallurgy Ender Metals 2.4.jar) Unloaded->Constructed
MetallurgyFantasy [Metallurgy Fantasy] (Metallurgy Fantasy Metals 2.4.0.1.jar) Unloaded->Constructed
MetallurgyNether [Metallurgy Nether] (Metallurgy Nether Metals 2.4.jar) Unloaded->Constructed
MetallurgyPrecious [Metallurgy Precious] (Metallurgy Precious Metals 2.4.jar) Unloaded->Constructed
MetallurgyUtility [Metallurgy Utility] (Metallurgy Utility Ores 2.4.jar) Unloaded->Constructed
Mystcraft [Mystcraft] (mystcraft-uni-1.4.7-0.10.0.00.zip) Unloaded->Constructed
OrizonPastels [Stone, Pastels, and Marble] (Orizon-Stone_1.4.7_2013.2.17.zip) Unloaded->Constructed
Thaumcraft [Thaumcraft] (Thaumcraft3.0.3.zip) Unloaded->Constructed
KBITC3EssenceAddon [ThaumCraft3 Essence Addons] ((v2.3.2b) KBI TC3 Addon - Essentia Everything.zip) Unloaded->Constructed
SAP_Man [SanAndreasPs Managers] (0_SAPManPack_v13.jar) Unloaded->Constructed
Backpack [Backpack] (backpack-latest.zip) Unloaded->Constructed
JSOne_Studios.CampfireMod [Campfire Mod] (CampfireMod_2.4_for_1.4.7.zip) Unloaded->Constructed
Castle Defenders [Castle Defenders] (CastleDefenders1.1.zip) Unloaded->Constructed
ClaySoldiersMod [Clay Soldiers Mod] (CSM_v9_05.jar) Unloaded->Constructed
CustomSpawner [DrZhark's CustomSpawner] (CustomMobSpawner 1.11.zip) Unloaded->Constructed
MoCreatures [DrZhark's Mo'Creatures Mod] (DrZharks MoCreatures Mod v4.5.1.zip) Unloaded->Constructed
DungeonPack [DungeonPack] (DungeonPack 1.4.7 v1 Universal.zip) Unloaded->Constructed
EnderStuffPlus [EnderStuff+ Mod] (EnderStuffP_v101.jar) Unloaded->Constructed
EssentialCraft [EssentialCraft] (EssentialCraft v2.10.146.23.zip) Unloaded->Constructed
mod_EssentialCraftGeneration [mod_EssentialCraftGeneration] (EssentialCraft v2.10.146.23.zip) Unloaded->Constructed
InfiCraftMicroblocks [InfiCraft MicroBlocks] (InfiMicroblocks_1.4.7_2013.1.13.zip) Unloaded->Constructed
ParticleDeco [Particle Decoration Mod] (ParticleDeco_v14.jar) Unloaded->Constructed
Planks in Colour [Planks in Colour] (Planks in Colour) Unloaded->Errored
SimpleOres [SimpleOres] (SimpleOres 1.4.7.2.zip) Unloaded->Constructed
MCore [MCore] (coremods) Unloaded->Disabled
Profiler Position: N/A (disabled)
Is Modded: Definitely; Server brand changed to 'forge,fml'
Type: Dedicated Server (map_server.txt)
2. How to make a shapeless recipe require two metadatas items one required item will have a specific metadata but the other required item would not matter which you using.
say, the two items needed are dye and wood.
The first would require a specific dye but for the second it would not matter what wood you used.
Here's the code I was trying to use before I went to a normal recipe.
GameRegistry.addShapelessRecipe(new ItemStack(this.redPlanks, 1), new Object[] {
new ItemStack(Item.dyePowder, 1, 1),
Block.planks
});
This should require red dye and planks of any kind to make red planks but it doesn't in game only Oak Planks work, not Spruce, Birch, or Jungle.
so until I can fix that I went back to the normal recipe which is the same thing only I have to have the items in the correct spot on the workbench.
GameRegistry.addRecipe(new ItemStack(this.redPlanks, 1), new Object[] {
" D ", " P ", 'D', new ItemStack(Item.dyePowder, 1, 1), 'P',
Block.planks });
1) Are you using the same file? mods are universal nowadays
2) To make it use any metadata, write in the metadata as -1
It works when I play a single player world, but I get that crash when copying and pasting the file in vanilla minecraft server mods folder.
Is it because when recompiling at the end I get,
cannot find server sources, try decompiling
and when reobfuscating I get,
cannot find server md5s
?
Hmm, I'm not sure why it's working, but don't think that's the problem...
I haven't quite figured that out yet, but trust me, I am working on it. Do not that it does require tile entities first though
I fixed it.
I took a close look at the crash report and at the bottom the bit that says
"A detailed walkthrough of the error, its code path and all known details is as follows:"
And it said Unloaded->Errored, so I zipped it up so it could unload and put it in the mods folder for the server and it started without crash.
For some reason in my .minecraft>mods I have to have it unzipped or it wont read and in the server>mods I have to have it zipped.
Also Huge thanks with the shapeless recipe, I should have known you could use -1...
Edit: Never mind when zipped up the server is not picking it up either.
Same as above, haven't quite figured it out yet
Go to your MCP folder > jars > bin and open the minecraft.jar with something like winRAR, make a folder on your desktop with the .png image in it and drag it into the minecraft.jar winRAR window
Go to src > minecraft and make a GFX folder there for it
At the moment, crops and flowers