change this bit in entity spear (its near the end of the code)
worldObj.playSoundAtEntity(this, "random.pop", 0.2F, ((rand.nextFloat() - rand.nextFloat()) * 0.7F +
where it says random.pop is the sound it plays when thrown, change that to random.bow for a bow sound
change this bit in entity spear (its near the end of the code)
worldObj.playSoundAtEntity(this, "random.pop", 0.2F, ((rand.nextFloat() - rand.nextFloat()) * 0.7F +
where it says random.pop is the sound it plays when thrown, change that to random.bow for a bow sound
Thank you very much
but wat about the damage
It doesnt damage when i shoot
Hey does this work with 1.8.1? Because I pretty much copied the whole code and changed the names, but my mod causes MC to crash as such:
HELP pls
Mods loaded: 2
ModLoader Beta 1.8.1
net.minecraft.src.mod_TitaniumArmor 1.8.1
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
If you wish to report this, please copy this entire text and email it to [email protected].
Please include a description of what you did when the error occured.
--- BEGIN ERROR REPORT 82dbbdb8 --------
Generated XXX
Minecraft: Minecraft Beta 1.8.1
OS: Windows 7 (x86) version 6.1
Java: 1.6.0_24, Sun Microsystems Inc.
VM: Java HotSpot(TM) Client VM (mixed mode), Sun Microsystems Inc.
LWJGL: 2.4.2
OpenGL: ATI Mobility Radeon HD 5650 version 3.2.9756 Compatibility Profile Context, ATI Technologies Inc.
java.lang.NullPointerException
at net.minecraft.src.CraftingManager.addRecipe(CraftingManager.java:279)
at net.minecraft.src.ModLoader.AddRecipe(ModLoader.java:330)
at net.minecraft.src.mod_TitaniumTools.<init>(mod_TitaniumTools.java:26)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at net.minecraft.src.ModLoader.addMod(ModLoader.java:224)
at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1027)
at net.minecraft.src.ModLoader.init(ModLoader.java:692)
at net.minecraft.src.ModLoader.AddAllRenderers(ModLoader.java:121)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:72)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:168)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:140)
at net.minecraft.client.Minecraft.run(Minecraft.java:438)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT da00e773 ----------
Hey does this work with 1.8.1? Because I pretty much copied the whole code and changed the names, but my mod causes MC to crash as such:
HELP pls
Mods loaded: 2
ModLoader Beta 1.8.1
net.minecraft.src.mod_TitaniumArmor 1.8.1
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
If you wish to report this, please copy this entire text and email it to [email protected].
Please include a description of what you did when the error occured.
--- BEGIN ERROR REPORT 82dbbdb8 --------
Generated XXX
Minecraft: Minecraft Beta 1.8.1
OS: Windows 7 (x86) version 6.1
Java: 1.6.0_24, Sun Microsystems Inc.
VM: Java HotSpot(TM) Client VM (mixed mode), Sun Microsystems Inc.
LWJGL: 2.4.2
OpenGL: ATI Mobility Radeon HD 5650 version 3.2.9756 Compatibility Profile Context, ATI Technologies Inc.
java.lang.NullPointerException
at net.minecraft.src.CraftingManager.addRecipe(CraftingManager.java:279)
at net.minecraft.src.ModLoader.AddRecipe(ModLoader.java:330)
at net.minecraft.src.mod_TitaniumTools.<init>(mod_TitaniumTools.java:26)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at net.minecraft.src.ModLoader.addMod(ModLoader.java:224)
at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1027)
at net.minecraft.src.ModLoader.init(ModLoader.java:692)
at net.minecraft.src.ModLoader.AddAllRenderers(ModLoader.java:121)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:72)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:168)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:140)
at net.minecraft.client.Minecraft.run(Minecraft.java:438)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT da00e773 ----------
Post ur code here may help u in solving the problem
ah k, the person who made the tutorial on the spear basicly copied the code from snowball, snowballs dont cause damage so the spear isnt causing any damage either
I have been looking through entityarrow code/bow code but i cant find where it adds the damage :/
ah k, the person who made the tutorial on the spear basicly copied the code from snowball, snowballs dont cause damage so the spear isnt causing any damage either
I have been looking through entityarrow code/bow code but i cant find where it adds the damage :/
Oh ok,thx anyway
Let wait for the person who made the tutorial fix it
PLS HELP! I get this error when i try to start client in MCP... I already recompiled it and added the pictures inside the jar file but this comes up...
--- BEGIN ERROR REPORT 5424363c --------
Generated 10/4/11 5:40 PM
Minecraft: Minecraft Beta 1.8.1
OS: Windows 7 (amd64) version 6.1
Java: 1.7.0_02-ea, Oracle Corporation
VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: Intel(R) HD Graphics Family version 3.0.0 - Build 8.15.10.2238, Intel
java.lang.StringIndexOutOfBoundsException: String index out of range: 8
at java.lang.String.charAt(String.java:695)
at net.minecraft.src.CraftingManager.addRecipe(CraftingManager.java:276)
at net.minecraft.src.ModLoader.AddRecipe(ModLoader.java:330)
at net.minecraft.src.mod_LavaDiamond.addRecipes(mod_LavaDiamond.java:73)
at net.minecraft.src.mod_LavaDiamond.<init>(mod_LavaDiamond.java:13)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at java.lang.Class.newInstance0(Class.java:372)
at java.lang.Class.newInstance(Class.java:325)
at net.minecraft.src.ModLoader.addMod(ModLoader.java:224)
at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1027)
at net.minecraft.src.ModLoader.init(ModLoader.java:692)
at net.minecraft.src.ModLoader.AddAllRenderers(ModLoader.java:121)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:72)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:168)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:140)
at net.minecraft.client.Minecraft.run(Minecraft.java:438)
at java.lang.Thread.run(Thread.java:722)
--- END ERROR REPORT 4e396040 ----------
PLS HELP! I get this error when i try to start client in MCP... I already recompiled it and added the pictures inside the jar file but this comes up...
--- BEGIN ERROR REPORT 5424363c --------
Generated 10/4/11 5:40 PM
Minecraft: Minecraft Beta 1.8.1
OS: Windows 7 (amd64) version 6.1
Java: 1.7.0_02-ea, Oracle Corporation
VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: Intel(R) HD Graphics Family version 3.0.0 - Build 8.15.10.2238, Intel
java.lang.StringIndexOutOfBoundsException: String index out of range: 8
at java.lang.String.charAt(String.java:695)
at net.minecraft.src.CraftingManager.addRecipe(CraftingManager.java:276)
at net.minecraft.src.ModLoader.AddRecipe(ModLoader.java:330)
at net.minecraft.src.mod_LavaDiamond.addRecipes(mod_LavaDiamond.java:73)
at net.minecraft.src.mod_LavaDiamond.<init>(mod_LavaDiamond.java:13)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at java.lang.Class.newInstance0(Class.java:372)
at java.lang.Class.newInstance(Class.java:325)
at net.minecraft.src.ModLoader.addMod(ModLoader.java:224)
at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1027)
at net.minecraft.src.ModLoader.init(ModLoader.java:692)
at net.minecraft.src.ModLoader.AddAllRenderers(ModLoader.java:121)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:72)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:168)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:140)
at net.minecraft.client.Minecraft.run(Minecraft.java:438)
at java.lang.Thread.run(Thread.java:722)
--- END ERROR REPORT 4e396040 ----------
I got this error too while starting client
But i was soooo lazy to find way to fix
i juz reob and put it in my minecraft to test
i tried the tutorial,it is just like an egg sound and doesnt damage anything
worldObj.playSoundAtEntity(this, "random.pop", 0.2F, ((rand.nextFloat() - rand.nextFloat()) * 0.7F +
where it says random.pop is the sound it plays when thrown, change that to random.bow for a bow sound
Thank you very much
but wat about the damage
It doesnt damage when i shoot
HELP pls
ok, i will try to find the problem
could you please post your mod_TitaniumTools code?
Ok thx
Post ur code here may help u in solving the problem
I have been looking through entityarrow code/bow code but i cant find where it adds the damage :/
Oh ok,thx anyway
Let wait for the person who made the tutorial fix it
Ok wait for you again
Tell me if u've fixed the code
I got this error too while starting client
But i was soooo lazy to find way to fix
i juz reob and put it in my minecraft to test
i also did that and the reobf was fine but when i put the files in the minecraft.jar and run minecraft it still gives the same error :\
I mean u use ur normal launcher to launch minecraft and test
entityliving = fire <<<<this
any other than fire?
yea i did.same error :sad.gif:
Explain more, and what are you trying make
Example
EntityLiving.scoreValue = 0; (sorry bit confused on what your asking)