Makin' a mod, its called Hypremite arrows. I KNOW, that many people have made arrows mod, but mine's different.
There's a Novae bow, Paralisium Bow, Novae Arrow, Paralisium Arrow, Infernelia Bow and Arrows.
And I have a problem.
I have been ripping off codes from the game itself (fast, isn't it?)but I don't know how to make a entity arrow, on impact with the ground, make another entity join the world. Help please!
Oh, Good point!
VERY TRUE, never thought of that. thanks!
From my spawn block code:
//mobID is String mob name
EntityLiving entityliving = (EntityLiving)EntityList.createEntityInWorld("Buddy", world);
entityliving.setLocationAndAngles(i, j+1, k, world.rand.nextFloat() * 360F, 0.0F);
world.entityJoinedWorld(entityliving);
replace "Buddy" with the spawn list name (names can be found in Entity.java, such as "Wolf", or by the name your registered your own creations with). i, j+1, k are the x,y and z you want it to be placed.
I've actually done that... basically, look for the area where it uses "damagesource" and then kinda figure out where it determines whether you've hit a mob or the ground, and put inlanoche's code in with that stuff. If you don't want it to spawn an entity when it hits another entity, then you should only put it where it determines what happens when it hits the ground.
Snowballs, as the other guy in here mentioned, are also a great source for this stuff, since they're thrown, and not shot, and thus they have all the code for that built into the item's class. Additionally, they have a bit that spawns a bunch of particles when they hit something, therefore it becomes easier to tell where that bit of code is :tongue.gif:
AND you don't have to worry about the stupid thing hitting the ground and then sticking there, and popping back into your inventory as an arrow after that (I know how to fix that part, but I really, -really-, don't feel like explaining it, since you're obviously not all that familiar with java...)
Egnio98 here.
Makin' a mod, its called Hypremite arrows. I KNOW, that many people have made arrows mod, but mine's different.
There's a Novae bow, Paralisium Bow, Novae Arrow, Paralisium Arrow, Infernelia Bow and Arrows.
And I have a problem.
I have been ripping off codes from the game itself (fast, isn't it?)but I don't know how to make a entity arrow, on impact with the ground, make another entity join the world. Help please!
VERY TRUE, never thought of that. thanks!
From my spawn block code:
replace "Buddy" with the spawn list name (names can be found in Entity.java, such as "Wolf", or by the name your registered your own creations with). i, j+1, k are the x,y and z you want it to be placed.
OLD 1.7: http://www.minecraftforum.net/topic/529327-modloader173-adding-custom-mobs-and-more/ ---inLanoche says : USE ECLIPSE
Snowballs, as the other guy in here mentioned, are also a great source for this stuff, since they're thrown, and not shot, and thus they have all the code for that built into the item's class. Additionally, they have a bit that spawns a bunch of particles when they hit something, therefore it becomes easier to tell where that bit of code is :tongue.gif:
AND you don't have to worry about the stupid thing hitting the ground and then sticking there, and popping back into your inventory as an arrow after that (I know how to fix that part, but I really, -really-, don't feel like explaining it, since you're obviously not all that familiar with java...)