You lost me on "making an item" exactly right here
Close, save and open a new file now. Scroll up the side panel until you find lang. Expand it and click on "en_US.lang". This file can be opened with NotePad. Ok, once open, scroll down to the very bottom and underneath:
i am running eclipse and MCP but im not understanding what you mean by "open a new file now" weither its a .class file or a .java file or what and when you say scroll up the side panel i have no idea what panel your talking about cuz i find no such thing unless i go into my actual .minecraft folder and find lang in the mincraft.jar idk maybe im doing something wrong but i dont see that while i have eclipse open? could you explain a bit better other then that everythins great man!
Yes. I have returned. After many boring months of being interactive with my social life, I forgot about this post and so here I am to reclaim it. I will be starting a brand new topic for this thread you may leave any help issues or any questions you have.
This is going to require your full attention and may be broken up into separate posts to avoid confusion. So, at that, let's begin. We are going to make it so that we can use "ItemExample" as our material for our tools. If you don't understand "ItemExample" then please refer to my other tutorials. Open "Item.java" and some new things under the "public static Item" part.
public static Item swordExample;
public static Item shovelExample;
public static Item pickaxeExample;
public static Item axeExample;
public static Item hoeExample;
Right now we are just defining our tools so we use them later on. Scroll all the way down to the bottom and fine the line added like this:
redstoneRepeater = (new ItemReed(100, Block.redstoneRepeaterIdle)).setIconCoord(6, 5).setItemName("diode");
Hit enter and then add these underneath it:
swordExample = (new ItemSword(103, EnumToolMaterial.EXAMPLE)).setIconCoord(0, 9).setItemName("swordExample");
shovelExample = (new ItemSpade(104, EnumToolMaterial.EXAMPLE)).setIconCoord(0, 10).setItemName("shovelExample");
pickaxeExample = (new ItemPickaxe(105, EnumToolMaterial.EXAMPLE)).setIconCoord(0, 11).setItemName("pickaxeExample");
axeExample = (new ItemAxe(106, EnumToolMaterial.EXAMPLE)).setIconCoord(0, 12).setItemName("axeExample");
hoeExample = (new ItemHoe(107, EnumToolMaterial.EXAMPLE)).setIconCoord(0, 13).setItemName("hoeExample");
Calm down.It's not as complicated as it looks. The "IconCoord" we are using start at "0" which means it's the icon's
against the left wall of "items.png" found under gui and numbers "9"-"13". "9" is the icon that is just below the wooden hoe and goes down "5" spaces starting from the icon for the sword to the last icon for the hoe.
103-107 are "Item ID's" and the "ItemPickaxe" or "ItemHoe" are just extending what we've put here. The "EnumToolMaterial" thing will explain itself in just a second. So, now that we've got this going, open up "EnumToolMaterial". You will be presented with this:
Now. "5" is the ID of that material, the name before and after the brackets are the name of the material. "2" is the harvest level, meaning when trying to build crops, how effective is the our hoe material at getting seeds or creating farmland?
"200" is the max amount of uses our material has which, in this case, is higher than stone but less than iron. "5F" is the efficiency at destroy a block with the desired tool (eg. axe, pickaxe). This is also higher than stone but less than iron. Finally, "2" is the "damageVsEntity" which means, how much damage is dealt to a mob when used upon them. The ";" is important because it must be after the bracket of ONLY the last added material.
Now, we're going to scroll down and find this:
public static final EnumToolMaterial WOOD;
public static final EnumToolMaterial STONE;
public static final EnumToolMaterial IRON;
public static final EnumToolMaterial EMERALD;
public static final EnumToolMaterial GOLD;
We're going to edit this so that minecraft loves our new idea. So:
public static final EnumToolMaterial WOOD;
public static final EnumToolMaterial STONE;
public static final EnumToolMaterial IRON;
public static final EnumToolMaterial EMERALD;
public static final EnumToolMaterial GOLD;
public static final EnumToolMaterial EXAMPLE;
This merely just defines it again. So, scroll down further and find the next lines we need to edit:
GOLD = new EnumToolMaterial("GOLD", 4, 0, 32, 12F, 0);
j = (new EnumToolMaterial[] {
WOOD, STONE, IRON, EMERALD, GOLD
Ok. We are still defining our materials. Remember the properties of the material we added and the name of the material. So now it should look something like this:
GOLD = new EnumToolMaterial("GOLD", 4, 0, 32, 12F, 0);
EXAMPLE = new EnumToolMaterial("EXAMPLE", 5, 2, 200, 5F, 2);
j = (new EnumToolMaterial[] {
WOOD, STONE, IRON, EMERALD, GOLD, EXAMPLE
There, all defined and everything. Please visit here for the next part of the tutorial:
Hey, I'm making some food with modloader and it's not edible. Someone told me to define items in the mod_name file like:
public static final Item ScrambledEgg = new ItemScrambledEgg(361).setItemName("Scrambled Egg");
But originally I had it like:
public static final Item ScrambledEgg = new Item(361).setItemName("Scrambled Egg");
I made a thread about this matter which gives more detail on the matter, and if you could answer or tell me about something that could answer me, it's appreciated, since this is the LAST step in my mod. Thanks again.
Well, Themarioman, this is for Vanilla Minecraft, not for mod loader. From the experience that I have, I will create a new topic to address a lot of issues but for now, please wait.
Could you possibly do something on adding textures for items and foods? It would be massively appreciated.
Also, awesome tutorial. Tried simo's one first and failed quite miserably but found it way easier with yours! Keep up the good work!
Wait. So, when I'm done adding whatever I want to add, changing recipes, adding to blocks, what have you... What then?
I mean, what files do I get that I can distribute as a mod? Whenever I install a mod, you generally have to put some .class files into your minecraft jar... What happens here? Does it eventually result in some class files? I feel like I missed some detail. I'm confused, and I'm probably asking this question wrong. Please, if someone could explain..
I, for one, found your tutorials to be the easiest to understand and follow, so if you're not too busy, I'd like it if you re-vamped the tutorials. :biggrin.gif:
That would be quite a challenge basically you'd have to create a whole new ChunkProvider for your new dimension.
And going through the nether one, i think it'd be VERY difficult
Heres some of the nethers code (my god...)
i am running eclipse and MCP but im not understanding what you mean by "open a new file now" weither its a .class file or a .java file or what and when you say scroll up the side panel i have no idea what panel your talking about cuz i find no such thing unless i go into my actual .minecraft folder and find lang in the mincraft.jar idk maybe im doing something wrong but i dont see that while i have eclipse open? could you explain a bit better other then that everythins great man!
I'm trying to make a tooth item.
This is all I changed in my my Item.java:
and my ItemTooth.java:
Yes. I have returned. After many boring months of being interactive with my social life, I forgot about this post and so here I am to reclaim it. I will be starting a brand new topic for this thread you may leave any help issues or any questions you have.
Your sincerely,
pixelscript.
Help i get this error..
But originally I had it like:
I made a thread about this matter which gives more detail on the matter, and if you could answer or tell me about something that could answer me, it's appreciated, since this is the LAST step in my mod. Thanks again.
Thread is right here.
Also, awesome tutorial. Tried simo's one first and failed quite miserably but found it way easier with yours! Keep up the good work!
I mean, what files do I get that I can distribute as a mod? Whenever I install a mod, you generally have to put some .class files into your minecraft jar... What happens here? Does it eventually result in some class files? I feel like I missed some detail. I'm confused, and I'm probably asking this question wrong. Please, if someone could explain..
-make a mob
-tame a mob
-ride a mob
?
Count me as 'Interested'. :tongue.gif: