I can't find that you've already answered this question, so if you have I am sorry, but it would mean a lot if you gave me some kind of answer. When I was setting up my mod no matter how hard I try I can't get the error under setItemName to disappear it says to make a method setItemName (String) in class ItemGem
I am coding 66+ items into minecraft. I think my mod_NAME will get huge.
ModLoader may not be able to work for this, there is a limit to the amount of textures it can add before it crashes, this is part of why my customTools mod hasn't updated
hi scmowns
i have a problem
I create my mod(no errors) but i click on run(eclipse)
and i create a world go to inventory and my item is not there i do /give
and not working can you help me?!
I think is the version becouse i am using 1.4.7!
i am getting another error
In ore generating
on class Block
i do return mod_minecraft.BlockBlue.shiftedIndex;
but my eclipse say' a error on a word .shiftedindex;
and public int idDropped(int par1, Random par2Random, int par3)
On a word idDroppedgetting another error
I do no why somebody can help me plese!
Change .shiftedIndex to .itemID
Also, you should include your code when you ask questions about possible errors you're getting
The Meaning of Life, the Universe, and Everything.
Join Date:
8/13/2012
Posts:
71
Minecraft:
blublaster
Xbox:
SuperPOW3RS
Member Details
Dear SCMowns.
I am one of the pack, And i am here to request a coding tutorial, If you can make it.
How about moving sprites? Like the ones in buildcraft, The little engines pump up down.
And also the smaller blocks, If you could show that type of tutorial, You will be one of my favorite tutorial coder.
But, I guess that favoriting you wouldn't mean that much...
When i copy my source code into the new mcp for minecraft version 1.5 i get many errors! I fixed all but there is a new one
In public void load !! There is a mistake with addOverride. Can someone help me?
Thanks!
With the new update, the .setunlocalizedname("superdirt") tells minecraft to look in the new textures file in minecraft .jar for a texture.
So if it's .setunlocalizedname("superdirt") it looks on textures and then in the blocks folder for superdirt.png so the name must match the texture name, I know I probably am not helping but it's like how armors look in the armor folder for diamond_1 and diamond_2
I love it. I love it. I love it. I have been looking for something like this for a while! Cant Believe I havent seen this Before! L0ve Et! GOod Work <3
Okay, I started modding, downloaded everything, installed EXACTLY how you did. Everything was fine until I noticed an error on my mod_one.java file. I looked at it and it says "The method setItemName(String) is undefined for the type ItemSmily" (don't ask bout why smily, just my first mod :3". In addition to this catastrophe, there was another flipping error! It reads "The method addOverride(String, String) is undefined for the type ModLoader". I've tried the "quick fixes" as they call them, but they just broke the simulation.
Hopefully you can figure out what I cannot,
Mos
See my post:
Get rid of addOverride!! Because of 1.5, you must do the steps below: To fix this issue, replace .setItemName with .setunlocalizedname. Whatever you put in those brackets is the texture minecraft's going to look for. After that, where you had all your textures in the 'items' folder, create a new folder called 'textures' Inside there, Make a folder called 'items' for all your items to go in and a folder called 'blocks' for your blocks. Hope this helps.
hi scmowns
i have a problem
I create my mod(no errors) but i click on run(eclipse)
and i create a world go to inventory and my item is not there i do /give
and not working can you help me?!
I think is the version becouse i am using 1.4.7!
If you would like to see your item, then try adding .setCreativeTab(CreativeTabs.tabMaterial)
At the end of your public static final NAMEHERE = new ItemNAME(2085).setItemName("ITEMNAME");
(e.g: public static final NAMEHERE = new ItemNAME(2085).setItemName("ITEMNAME").setCreativeTab(CreativeTabs.tabMaterial);
If it is a Block, Try adding .setCreativeTab(CreativeTabs.tabBlock).
If you would like to see your item, then try adding .setCreativeTab(CreativeTabs.tabMaterial)
At the end of your public static final NAMEHERE = new ItemNAME(2085).setItemName("ITEMNAME");
(e.g: public static final NAMEHERE = new ItemNAME(2085).setItemName("ITEMNAME").setCreativeTab(CreativeTabs.tabMaterial);
If it is a Block, Try adding .setCreativeTab(CreativeTabs.tabBlock).
That no longer works. It says outdated! Read this if you want help, it's from my Melee Skeletons mod.
package net.minecraft.src;
import java.util.Random;
public class ItemAncientDust extends Item
{
public String getItemDisplayName(ItemStack par1ItemStack)
{
String var2 = ("\u00a73" + StringTranslate.getInstance().translateNamedKey(this.getLocalizedName(par1ItemStack))).trim();
return var2;
}
public ItemAncientDust(int i)
{
super(i);
maxStackSize = 64;
this.setCreativeTab(CreativeTabs.tabMaterials);
}
public String Version()
{
return "1.4.0";
}
}
I NEED HELP REALY!!
I CAN't UPDATE MY MOD TO 1.5.1!!!!
i do decompile and says: !! Modified jar detected. Unpredictable results !! == Decompiling client using fernfflower == > Creating SRGs > Applying Retroguard ' " c:\Progam Files\ Java\jdk1.7.0_17\bin\java " -cp "runtime\bin\retroguard.jar ERROR FOUND ==
Unrecoverable error during obfuscation, see log file for details. RetroGuard error: COM.rl.obf.classfile.classfileException:ClassNotFound ain ============
Plese help me i can't update to 1.5.1
Are you 100% SURE you did it right? Did you install Modloader? Have you copied your Source code over to your new folder? Watch one of the Updating your Mod to 0.0.0 Videos again until you get it right. Hope this helps!
Rollback Post to RevisionRollBack
Generation 27: The next time you see this, copy this as your sig on any forum and add one to the generation. Social experiment.
ModLoader may not be able to work for this, there is a limit to the amount of textures it can add before it crashes, this is part of why my customTools mod hasn't updated
You need to add it to the creative menu.
Modloader has changed in 1.5, just google it.
Change .shiftedIndex to .itemID
Also, you should include your code when you ask questions about possible errors you're getting
I am one of the pack, And i am here to request a coding tutorial, If you can make it.
How about moving sprites? Like the ones in buildcraft, The little engines pump up down.
And also the smaller blocks, If you could show that type of tutorial, You will be one of my favorite tutorial coder.
But, I guess that favoriting you wouldn't mean that much...
With the new update, the .setunlocalizedname("superdirt") tells minecraft to look in the new textures file in minecraft .jar for a texture.
So if it's .setunlocalizedname("superdirt") it looks on textures and then in the blocks folder for superdirt.png so the name must match the texture name, I know I probably am not helping but it's like how armors look in the armor folder for diamond_1 and diamond_2
Have a look at EntityTamedWolf. That should help ya.
See my post:
Get rid of addOverride!! Because of 1.5, you must do the steps below:
To fix this issue, replace .setItemName with .setunlocalizedname.
Whatever you put in those brackets is the texture minecraft's going to look for.
After that, where you had all your textures in the 'items' folder, create a new folder called 'textures'
Inside there, Make a folder called 'items' for all your items to go in and a folder called 'blocks' for your blocks.
Hope this helps.
If you would like to see your item, then try adding .setCreativeTab(CreativeTabs.tabMaterial)
At the end of your public static final NAMEHERE = new ItemNAME(2085).setItemName("ITEMNAME");
(e.g: public static final NAMEHERE = new ItemNAME(2085).setItemName("ITEMNAME").setCreativeTab(CreativeTabs.tabMaterial);
If it is a Block, Try adding .setCreativeTab(CreativeTabs.tabBlock).
That no longer works. It says outdated! Read this if you want help, it's from my Melee Skeletons mod.
package net.minecraft.src; import java.util.Random; public class ItemAncientDust extends Item { public String getItemDisplayName(ItemStack par1ItemStack) { String var2 = ("\u00a73" + StringTranslate.getInstance().translateNamedKey(this.getLocalizedName(par1ItemStack))).trim(); return var2; } public ItemAncientDust(int i) { super(i); maxStackSize = 64; this.setCreativeTab(CreativeTabs.tabMaterials); } public String Version() { return "1.4.0"; } }Try doing that. It should work; it does for me.
You're not a pain at all! Fix: Get rid of addOverride!!!! It no longer works!!
Create a new mod_NAME and do it in there!
http://www.minecraftforum.net/topic/1744443-15151-getting-textures-to-work-in-15-when-making-a-mod-tutorial/
so i didn't seen my cheese in my creative tabs not even in the search. so i typed in:and i still can't see my cheese in the creative tabdon't mind it i found the solution
Are you 100% SURE you did it right? Did you install Modloader? Have you copied your Source code over to your new folder? Watch one of the Updating your Mod to 0.0.0 Videos again until you get it right. Hope this helps!
mod_minecraft.java
package net.minecraft.src; import java.util.Random; public class mod_minecraft extends BaseMod { public static final Item greengem = new ItemGreenGem(2085).setItemName("greengem"); public void load() { greengem.iconIndex = ModLoader.addOverride("/gui/items.png" , "/items/GreenGem.png"); ModLoader.addName(greengem, "Green Gem"); } public String getVersion() { return "3.14159265"; } }ItemGreenGem.java
package net.minecraft.src; import java.util.Random; public class ItemGreenGem extends Item { public ItemGreenGem(int i) { super(i); maxStackSize = 10; } public String Version() { return "3.14159265"; } }Please help.
Thanks in advance.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumI don't know about the item class but in the mod-name delete the setitemname and add overrideI have some 1.5 and 1.5.1 modding tutorials
http://www.minecraftforum.net/topic/1738325-mrgreen33gamers-15151modloader-modding-tutorials-achievements-ore-generation-biomes-and-more/