Started by
DutchTristan
on
Topic category: Help with Minecraft modding (Java Edition)
Hey everyone!!!
I have a little problem with the Shoot Arrow Event... I am trying to make a Harry Potter Mod using commands to do the spells. I have Avada Kadavra (The killing curse), And I try to Shoot an arrow with power 100. I just have the problem that when it shoots the arrow, after it shoots like 1 block, and then it disapears. If you know how to fix this problem, please react to this topic. If you know a better alternative to the Avada Kadavra curse than an arrow, Also please let me know... I'd love to know.
Thanks alot!!!
This is so coincidental! I also am working on Harry Potter mod. As for the Arrow problem I am not too sure since my projectiles are all custom coded. But, it could be lag, try to look in gun code for how it shoots the arrow. Also, try reducing the number and see if it works. If not it could be a bug.
The reason the arrow "disapears" is because it is going forward at power 100. The power level also controls how far and fast it goes. For example, power 0.5 would pretty much fall down 2 blocks in front of you, while power 100 is gone the moment you shoot it.
@#2 So what do I do?? How do I make sure that the arrow does so much damage that it's a instant kill, and flies far enough?
@#2.1 Without codeing you could make a gun element and change the bullet damage to be very high. Rather then using summon arrow event. That way you could have custom models and even animated textures for your spells.
@#2.1.1 But then I would need ammo, right?
@#2.1.1.1 simple set the wand durability to 0 in code editor. Then in the elemant editor set the ammo to the gun itself. Than back in the code editor delete the method that removes the ammo (in this case the gun) from your inventory
@#2.1.1.1.1 uh... How?? I'm really bad at coding...