Plugin category: EXAMPLE Suggested name: Throwable Axes What I want: I need a plugin where you right click any axe it throws it and if it hits a player it does the damage that axe does. When you throw it at some one it than drops using 1 durability. Ideas for commands: No commands needed for this plugin. Ideas for permissions: No permissions needed for this plugin. When I'd like it by: ASAP.
Thanks It is, I've seen this on a server. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
the reason I want to know, is because I know how to do this in one way, but you can't guage damage with my way. So I want to see if they use a way that differs from mine.
Does the axe disappear from the inventory or just hit the player, like an arrow, but continues on the inventory?
Ventality I only found one and an outdated plugin apparently doing this, which is ThrowThatItem. Well, the idea is good, and seems to be possible, and, since i'm not able to do this, i can only wish that someone does it for you.
CeramicTitan Could you spawn a dropped form of the axe and set it to have a velocity of the player's directions (multiplied of course) then use PlayerPickUpItemEvent (or what ever it is called) to detect if it "hit" someone? Ifyou do then maybe to the get the item's current velocity in the event and use that velocity to decide if the item is to be considered a hit or just picked up?
I'm not sure if that would work. I would need to do some testing. If that doesn't work you would need to use protocolLib to collision check.
Oh ok , well then Ventality i can not make it like the one in the video . BUT i can make it very similar .
Umm.. well this request sounds a lot like the guns plugin, there is many out there. For example CrackShot, what you can do is name the gun something like "Tomahawk" set the gun ID to be a Diamond Axe then just set the ammo to be the Diamond Axe itself. Once the Axe is right clicked it will be removed from your inventory and the throwing animation will be a snowball, if you hit your target it will inflict damage. The only difference is that you cant pick it back up, thats it...
I will try to make it where if you right click with an axe, it will shoot an arrow because I am not that advanced in Java and this seems easy and i will add a command to enable and disable the "Axe Throwing"
JoTyler lol, i've thought of doing it for my own server too, so when someone else asks i just had to tell em how
Ventality Here: https://www.dropbox.com/s/59833kfn1nugio0/ThrowableAxe.jar?m= (only does it for diamond axes, tell me if you would like me to change this) Untested
Wow great thanks! TryB4 Can players pick up the axe when it's on the ground? EDIT by Moderator: merged posts, please use the edit button instead of double posting.
TryB4 Great thanks! TryB4 It sort of hurts the player who throws it when they get near it, and it some times depilates the axe :3 EDIT by Moderator: merged posts, please use the edit button instead of double posting.