Quote fromQuote fromI got better pictures of it now :smile.gif: (Natural lighting is best)
http://img132.imageshack.us/img132/322/hni0045.jpg
From an angle.
http://img30.imageshack.us/img30/1466/hni0046g.jpg
From more of an angle.
http://img40.imageshack.us/img40/7626/hni0044h.jpg
Yes it is exactly what it looks like, that cat wanted to eat citricsquid.
Why do you have giant cats? Where are you from?!
That is classified and all you need to know is that the cat you just saw is a highly trained professional elite assassin coming to eat you.
2
Replace the 10 in...
To whatever you want the damage to be.
(Rep points please? :3)
1
Hm, what do you mean getting it to render?
No problem (I really want some reputation points, could ya help me out? :P)
4
(It uses ModLoader)
I just started modding a few months ago, and now that 1.4.2 has come out, I had to update all my mods. First time I had to do that . So, even in 1.3, I couldn't find a very good bow tutorial. They were either broken, or didn't work so well. So, I found how to make it, although it doesn't function exactly as a normal bow. The FOV is not changed, and the animation appears in the hotbar. Anyways, without anymore delay, lets begin the tutorial!
So. First, you want to add the following code to your mod_****.class
-Remember to rename everything to what you want.
So what's happening in the code.
You're creating a new Item, and a new class. You'll get errors at this point, but that's okay. We're not done.
The new item that is created is ItemYourBowNameHere. You'll want to create a new ItemYourBowNameHere.class, but I'll show you what to put in there later.
The other 4 items,
, are just what I call temporary items, placeholders. They aren't those literally, but you can't actually do anything with them in-game.
Where it says "/yourBowNameHere(#).png", that sets the image file. So if you set it to "/Textures/bow1.png your texture will be in minecraft.jar/Textures/bow1.png
Now do the standard procedure for making items, for the main bow item.
In case you don't know how to do that, put this into your public void load(){}
What's happening is you're adding the coded version into the game, declaring it's texture (the previous textures are for the stages of the bow, more explained later), declaring it's in-game name, and creating the recipe. Look up other tutorials for creating recipes.
The next step, we're going to create the class for the bow. Everything that happens with the bow is coded here.
Create a new class, and name it ItemYourBowNameHere -Remember to rename it to what you want. Inside the class, paste the following code...
And rename everything to what you called everything in your mod_**** class.
So what's happening in this class, is...
In case you didn't read, it sets the max stack size for you bow. You probably want it to be 1. If you do more than that, when the bow is used, every bow in the stack will be damaged.
Here, you set the amount of uses your bow has. For reference, the default bow has 351 uses.
I think this just tells minecraft to render the item in your hand 3D. Correct me if I'm wrong.
This sets the creative tab you want the bow to appear on. You probably want to keep it at tabComat.
Other tab options are:
Now back to the bow class. In the public void onUpdate part, we're adding the drawback animation.
What's happening, is you're taking those 4 'temporary' items you created in your mod_**** class, and using them. Each tick you draw back the bow, the more your bow will drawback. See the if [(var8 >=18]? That's the first step, yourBowNameHere4. I think I'm about to fail to explain something to you, but what it does is, it starts the drawback animation at 0 ticks, yourBowNameHere2. Then, 5 ticks later, [else if (var8 > 13)], it changes the item to yourBowNameHere3, which is the second step. 5 more ticks later, it switches to yourBowNameHere4, at 18 ticks. I think then, it waits until you release. If you aren't drawing the bow, it'll just be your bow, yourBowNameHere.
The next part is checking if you have an arrow in your inventory, spawning a new 'EntityArrow', launching it, and deleting the arrow in you inventory. If your bow is enchanted, it calculates what it needs to do, and applies that stuff.
That part, I think it's just saying if you try to eat the bow, go to var1, which I think is to start the drawback. Again, correct me if I'm wrong.
Don't know what
does.
This,
Again, I'm pretty sure it just starts the drawback.
This part just sets how easy it is to enchant the bow, I think. So if you want it to be easier to get high enchantments, make it a higher number. Again, I'm not 100% sure that's what it is. Correct me if I'm wrong.
I think that's about it for the coding.
Your textures will need to be your bow name, and then numbered 1-4, along with another texture of the bow, with no number.
1 is the first stage, the default bow, 2 is the next drawback phase, 3 and 4 as well. Just so you know, 4 is the last phase, the tightest form of the bow.
Hope this helps. Again, this is my first tutorial. Please correct any of my mistakes, and if this helped, please please please hit that little green up arrow.
-peon. Ah. Now I can stop typing
1
Errors in 1.4.2
3
2
Kai. I`m assuming this is your first try at modding. Well, you're doing the wrong thing with your files. After you have finished coding and are ready to upload/test your mod, you go to your MCP folder, and run the 'recompile.bat'. Wait for it to finish compiling, close it, then run 'reobfuscate.bat.' It will find the classes you have edited/created, and put them in (MCPfolder)\reobf\minecraft
Those are the CLASSES you need to put inside your minecraft.jar. Do not put .java files in your jar, nothing will happen. And do not put .zips in your .jar. Just put the .class files.
Hope this helped!
(If it did, I wouldn't mind a +)
2
If this helps, please press the little green + sign
1
Omg your such a noob. If your gunna play minecraft dont whine for a mod cause your outa food...
1
Um I PLAN to be 24/7, but I'm just starting up my server, it's Hamachi. For the little bit that i am setting it up, it won't be 24/7, but will be soon. Link here
1
In Game Name: peonftw
Faction:Mercs
Do you accept the rules:yes
Why you wish to join:I want my server back...