Hello.
I'm making a pistol mod, but as a beginner I have currently no idea on how to model. Techne I cannot use, as it is a Windows exe (I'm on a Mac). I'm trying to make a small bullet projectile, and make the bullet be destroyed when it goes over layer 128. Any help would be appreciated.
Well, a basic um...cuboid, basicly a box that's slightly stretched, much like the ones you find in SDK's guns or Flan's guns or something like that. Something similar.
To shorten the bullet, make it like:
.addBox(-4F, -8F, -4F, 4, 1, 1, 0)
or
.addBox(-4F, -8F, -4F, 3, 1, 1, 0)
= you only have to edit the 4th parameter
and change "-4F, -8F, -4F"
to other coordinates for positioning
To shorten the bullet, make it like:
.addBox(-4F, -8F, -4F, 4, 1, 1, 0)
or
.addBox(-4F, -8F, -4F, 3, 1, 1, 0)
= you only have to edit the 4th parameter
and change "-4F, -8F, -4F"
to other coordinates for positioning
And oh, do I have to create an extra ModelBullet.java file? I only have RenderBullet.java . I've seen Flan do WWII Guns without any ModelBullet.class, so I want to create something similar.
leave the damage source as arrow damge, then it should work.
Got this error upon right-clicking.
java.lang.Error: Unresolved compilation problems:
The method causeArrowDamage(EntityArrow, Entity) in the type DamageSource is not applicable for the arguments (EntityBullet, EntityBullet)
The method causeArrowDamage(EntityArrow, Entity) in the type DamageSource is not applicable for the arguments (EntityBullet, Entity)
at net.minecraft.src.EntityBullet.onUpdate(EntityBullet.java:224)
at net.minecraft.src.World.updateEntityWithOptionalForce(World.java:1665)
at net.minecraft.src.World.updateEntity(World.java:1640)
at net.minecraft.src.World.updateEntities(World.java:1540)
at net.minecraft.client.Minecraft.runTick(Minecraft.java:1548)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:694)
at net.minecraft.client.Minecraft.run(Minecraft.java:634)
at java.lang.Thread.run(Thread.java:680)
Hello.
I'm making a pistol mod, but as a beginner I have currently no idea on how to model. Techne I cannot use, as it is a Windows exe (I'm on a Mac). I'm trying to make a small bullet projectile, and make the bullet be destroyed when it goes over layer 128. Any help would be appreciated.
The layer 128 thing, you'll want to put this in OnUpdate
I'm making a pistol mod, but as a beginner I have currently no idea on how to model. Techne I cannot use, as it is a Windows exe (I'm on a Mac). I'm trying to make a small bullet projectile, and make the bullet be destroyed when it goes over layer 128. Any help would be appreciated.
He's asking how -.-
Where am I supposed to put the code?
Where exactly would this go?
Got this error upon right-clicking.
The layer 128 thing, you'll want to put this in OnUpdate
Thanks!
KMeister said it would work. What should I change it to?
Help??