---- Minecraft Crash Report ---- // Don't do that.
Time: 3/26/13 8:25 PM Description: Exception occured in ModLoader
java.lang.RuntimeException: Invalid shapeless recipy! at net.minecraft.src.CraftingManager.addShapelessRecipe(CraftingManager.java:243) at net.minecraft.src.ModLoader.addShapelessRecipe(ModLoader.java:448) at net.minecraft.src.mod_chrome.<init>(mod_chrome.java:60) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:525) at java.lang.Class.newInstance0(Class.java:374) at java.lang.Class.newInstance(Class.java:327) at net.minecraft.src.ModLoader.addMod(ModLoader.java:366) at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1221) at net.minecraft.src.ModLoader.init(ModLoader.java:779) at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:180) at net.minecraft.src.RenderManager.<init>(RenderManager.java:96) at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:14) at net.minecraft.client.Minecraft.startGame(Minecraft.java:417) at net.minecraft.src.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:41) at net.minecraft.client.Minecraft.run(Minecraft.java:726) at java.lang.Thread.run(Thread.java:722)
Pleze respond cuz i have no idea at all wats rong
Take a look at "java.lang.RuntimeException: Invalid shapeless recipy!" You have entered an invalid shapeless recipe so find where that is in your eclipes and fix it.
The Meaning of Life, the Universe, and Everything.
Location:
Sydney
Join Date:
8/26/2012
Posts:
50
Minecraft:
tehherb
Xbox:
Viol3ntHerb
Member Details
I'm getting an error in eclipse when trying to make a block, it says that addOverride(String, String) is undefined for the type ModLoader. same issue with the method .setBlockName. Are these not methods from the ModLoader class?
EDIT: found the fix but i'm trying to make a flower and the tutorial here hasn't been updated.
If anyone knows how to make custom crops and flower generation in 1.5.1 or knows a link to a tutorial that'd be great
Hello people you all seem to forget you don't need to modify any main code of minecraft as I have found a way to run keep the original files natural and add new files to make it easier and compatible.
Creating an EnumToolMaterial in mod
package net.minecraft.src;
public enum mod_(can be nickname of mod or just mod_blah)_EnumToolMaterial
{
(Name of weapon or tool Material)(4, 1692, 10.0F, 4, 33),
(Another Name of weapon or tool Material)(5, 3000, 12.0F, 6, 34);
/**
* The level of material this tool can harvest (3 = DIAMOND, 2 = IRON, 1 = STONE, 0 = IRON/GOLD)
*/
private final int harvestLevel;
/**
* The number of uses this material allows. (wood = 59, stone = 131, iron = 250, diamond = 1561, gold = 32)
*/
private final int maxUses;
/**
* The strength of this tool material against blocks which it is effective against.
*/
private final float efficiencyOnProperMaterial;
/** Damage versus entities. */
private final int damageVsEntity;
/** Defines the natural enchantability factor of the material. */
private final int enchantability;
private mod_Worse_EnumToolMaterial(int par3, int par4, float par5, int par6, int par7)
{
this.harvestLevel = par3;
this.maxUses = par4;
this.efficiencyOnProperMaterial = par5;
this.damageVsEntity = par6;
this.enchantability = par7;
}
/**
* The number of uses this material allows. (wood = 59, stone = 131, iron = 250, diamond = 1561, gold = 32)
*/
public int getMaxUses()
{
return this.maxUses;
}
/**
* The strength of this tool material against blocks which it is effective against.
*/
public float getEfficiencyOnProperMaterial()
{
return this.efficiencyOnProperMaterial;
}
/**
* Damage versus entities.
*/
public int getDamageVsEntity()
{
return this.damageVsEntity;
}
/**
* The level of material this tool can harvest (3 = DIAMOND, 2 = IRON, 1 = STONE, 0 = IRON/GOLD)
*/
public int getHarvestLevel()
{
return this.harvestLevel;
}
/**
* Return the natural enchantability factor of the material.
*/
public int getEnchantability()
{
return this.enchantability;
}
public int getToolCraftingMaterial() {
return 0;
}
}
Look through code for what items of the parenthesis are.
Rollback Post to RevisionRollBack
I may be crazy, or maybe you're the crazy one, time will spill it soon enough click us, or we die
Hello people you all seem to forget you don't need to modify any main code of minecraft as I have found a way to run keep the original files natural and add new files to make it easier and compatible.
Creating an EnumToolMaterial in mod
package net.minecraft.src;
public enum mod_(can be nickname of mod or just mod_blah)_EnumToolMaterial
{
(Name of weapon or tool Material)(4, 1692, 10.0F, 4, 33),
(Another Name of weapon or tool Material)(5, 3000, 12.0F, 6, 34);
/**
* The level of material this tool can harvest (3 = DIAMOND, 2 = IRON, 1 = STONE, 0 = IRON/GOLD)
*/
private final int harvestLevel;
/**
* The number of uses this material allows. (wood = 59, stone = 131, iron = 250, diamond = 1561, gold = 32)
*/
private final int maxUses;
/**
* The strength of this tool material against blocks which it is effective against.
*/
private final float efficiencyOnProperMaterial;
/** Damage versus entities. */
private final int damageVsEntity;
/** Defines the natural enchantability factor of the material. */
private final int enchantability;
private mod_Worse_EnumToolMaterial(int par3, int par4, float par5, int par6, int par7)
{
this.harvestLevel = par3;
this.maxUses = par4;
this.efficiencyOnProperMaterial = par5;
this.damageVsEntity = par6;
this.enchantability = par7;
}
/**
* The number of uses this material allows. (wood = 59, stone = 131, iron = 250, diamond = 1561, gold = 32)
*/
public int getMaxUses()
{
return this.maxUses;
}
/**
* The strength of this tool material against blocks which it is effective against.
*/
public float getEfficiencyOnProperMaterial()
{
return this.efficiencyOnProperMaterial;
}
/**
* Damage versus entities.
*/
public int getDamageVsEntity()
{
return this.damageVsEntity;
}
/**
* The level of material this tool can harvest (3 = DIAMOND, 2 = IRON, 1 = STONE, 0 = IRON/GOLD)
*/
public int getHarvestLevel()
{
return this.harvestLevel;
}
/**
* Return the natural enchantability factor of the material.
*/
public int getEnchantability()
{
return this.enchantability;
}
public int getToolCraftingMaterial() {
return 0;
}
}
Look through code for what items of the parenthesis are.
i know thats why its not marked as updated but im waiting for next minecraft release when getIndirectPowerOutput gets changed back to setUnlocalizedName
you have to put your textures in the respective folders (/textures/blocks or /textures/items in the minecraft.jar) of course, or specify different ones
Cheers
Hmmm, I have that in my constructors, but for some reason Its not letting me. The error is under the .addOverride and says "The method addOverride(String, String) is undefined for the type ModLoader."
Of course, thanks for the answer, though.
Your IDE (Eclipse I guess) tells you the right thing - it is undefined because it is no longer needed
The textures are loaded through those lines I provided above. (Btw they need to be in the constructor of the items/blocks)
So remove ModLoader.addOverride... and it should work fine.
It says I'm missing a texture, even after putting the folder(and .png files) inside minecraft.jar
Would I want to replace
Sorry man, I'm a real noob and don't want to start a new thread for probably a simple mistake. Thanks for your help though, that's extremely kind of you. I probably look pretty stupid right now.
Nah it's all okay, you are were I was a few months ago (we all have to start somewhere)
I haven't tried it myself, but I think it should work as long as your folders are inside the /textures folder of the minecraft.jar.
I can't get it to work, I've tried putting the images inside the textures folder, i've tried putting the folder that the images are in inside the textures folder. Can't seem to get it to work, maybe I can try to google for it.
!!!error!!!: The method addOveride(String, String) is undefined for the type ModLoader
please help! :/
"ItemBlueStoneIngot(2085).setItemName("BlueStoneIngot");" Shouldn't be there instead replace that whole line with this:
public static final Item test8 = new Item(5002).setCreativeTab(CreativeTabs.tabMaterials).setUnlocalizedName("ruby");
In the public get sting thingy ma bob, and put this is public void load:
ModLoader.addName(test8, "Ruby");
That will add a name to the item, and the texture will be under minecraft.jar, in textures, under items and the name of the image is what goes in .setUnlocalizedName("(Whatever)") And replace ruby with your things name and replace test8 with bluestoneingot
Take a look at "java.lang.RuntimeException: Invalid shapeless recipy!" You have entered an invalid shapeless recipe so find where that is in your eclipes and fix it.
EDIT: found the fix but i'm trying to make a flower and the tutorial here hasn't been updated.
If anyone knows how to make custom crops and flower generation in 1.5.1 or knows a link to a tutorial that'd be great
That will be really hard because you need the worldgenmytree and the BiomeGenDecorator and other stuff
But he could pull it off.
are the stage crops broken too?
Creating an EnumToolMaterial in mod
I may be crazy, or maybe you're the crazy one, time will spill it soon enough
click us, or we die
"ModLoader.addOverride" is?
I'm getting errors.
Hmmm, I have that in my constructors, but for some reason Its not letting me. The error is under the .addOverride and says "The method addOverride(String, String) is undefined for the type ModLoader."
Of course, thanks for the answer, though.
It says I'm missing a texture, even after putting the folder(and .png files) inside minecraft.jar
Would I want to replace
with?
Sorry man, I'm a real noob and don't want to start a new thread for probably a simple mistake. Thanks for your help though, that's extremely kind of you. I probably look pretty stupid right now.
I can't get it to work, I've tried putting the images inside the textures folder, i've tried putting the folder that the images are in inside the textures folder. Can't seem to get it to work, maybe I can try to google for it.
I think I got it working, it was something with where the images were in the folders, thanks for your help man!
Here are the lines of code with the errors:
public static final Item bluestoneingot = new ItemBlueStoneIngot(2085).setItemName("BlueStoneIngot");
!!!error!!!: The method setitemName(String) is undefined for the type ItemBlueStoneIngot
and
bluestoneingot.iconIndex = ModLoader.addOverride("/gui/items.png" , "/items/pic.png");
!!!error!!!: The method addOveride(String, String) is undefined for the type ModLoader
please help! :/