CraftArrows

PLEASE DOWNLOAD THE UPDATED VERSION OVER HERE:
https://dev.bukkit.org/projects/lorinthscraftarrows
CraftArrows Suite:
(Click the picture)

News: CraftArrows 2 is here! It's almost like an entirely new plugin!

UPDATING TO CraftArrows v2? READ THIS FIRST:
CraftArrows 2.0 is almost a complete recode. A lot of bugs have been fixed, arrows have been added and more features added. However, as a result you are required to use a NEW config file. You can copy most parts of your old one, but you have to do it manually. YOU HAVE BEEN WARNED! BACKUP YOUR OLD CONFIG!

CraftArrows adds 24 new arrows to your server. Each arrow is highly customizable, you can disable, set the duration and power and even change it's crafting recipe! Some arrows have special settings like: Auto-Cleanup, Block-Damage, Extra-Damage, Heal-Amount etc.
PLEASE NOTE: These arrows are NOT identified by ID's. They all have the SAME ID as the normal arrow. If you ask me to give you the ID's, I will IGNORE your post. Get a better Kit's plugin which supports lore/name!
Currently included are:
- Teleport Arrows - Teleports you to where ever the arrow hits
- Shuffle Arrow - Change position with the player/monster hit
- Poison Arrow - Apply poison to your target
- Weakness Arrow - Apply weakness to your target
- Blinding Arrow - Blind your target
- Confusion Arrow - Confuse your target
- Explosive Arrow - Create an explosion where your arrow hits
- Tnt Arrow - Explode on contact with a player/monster (doesn't destroy blocks)
- Crippling Arrow - Slows down your target
- Lightning Arrow - Strike down a lightning where ever the arrow hits
- Piercing Arrow - Does bonus damage on armored targets
- Razor Arrow - Does bonus damage to unarmored targets
- Fire Arrow - Sets target on fire, sets blocks on fire
- Pull Arrow - Pulls enemy hit towards you
- Blood Arrow - Heals for an configurable amount when hitting an enemy
- Torch Arrow - Places a torch where you shoot the arrow at
- Net Arrow - Places webs around a location or player (Setting to auto-cleanup)
- Water Arrow - Places a water source block (Setting to auto-cleanup)
- Sound Arrow - Plays scary & loud sounds to whoever it hits
- Push Arrow - Pushes stuff away from you
- Vortex Arrow - Sucks enemies in the direction of the arrow
- Forcefield Arrow - Pushes enemies away from the arrow
- Wither Arrow - Shoots an actual witherskull
- Ice Arrow - Turns water to ice
- Medic Arrow - Heals hit player
All arrows can be individually disabled in the config file. The duration and power (where applicable) for potion effects can be changed to your preference. Blinding and Confusion don't scale with power (This is how it works in MineCraft!)

Additional features (can be disabled):
- Skeletons now shoot ALL non-environmental harmful arrows (no explosive arrows)
- Skeletons drop special arrows
- Dispensers can now shoot special arrows using: CraftDispenser
Video for v1.1
It ended up a bit longer than I expected, skip towards the end if you just want to see the config

Permission nodes:
Unless you disable a certain arrow, everyone will be able to craft it. If they do not have the correct permission, their arrows will act like regular arrows. Not using a permission plugin? Simply set "UsePermissions" to false in the config file!
- craftarrow.all - Allows the use of ALL arrows
- craftarrow.tnt - Allows the use of the TnT arrow
- craftarrow.lightning - Allows the use of the lightning arrow
- craftarrow.explosive - Allows the use of the explosive arrow
- craftarrow.teleport - Allows the use of the teleport arrow
- craftarrow.blinding - Allows the use of the blinding arrow
- craftarrow.weakness - Allows the use of the weakness arrow
- craftarrow.shuffle - Allows the use of the shuffle arrow
- craftarrow.poison - Allows the use of the poison arrow
- craftarrow.confusion - Allows the use of the confusion arrow
- craftarrow.cripple - Allows the use of the slowing arrow
- craftarrow.piercing -Allows the use of the piercing arrow
- craftarrow.razor - Allows the use of the razor arrow
- craftarrow.fire - Allows the use of the fire arrow
- craftarrow.pull - Allows the use of the pull arrow
- craftarrow.blood - Allows the use of the blood arrow
- craftarrow.torch - Allows the use of the torch arrow
- craftarrow.net - Allows the use of the net arrow
- craftarrow.medic - Allows the use of the medic arrow
- craftarrow.push - Allows the use of the push arrow
- craftarrow.sound - Allows the use of the sound arrow
- craftarrow.water - Allows the use of the water arrow
- craftarrow.vortex - Allows the use of the vortex arrow
- craftarrow.forcefield - Allows the use of the medic arrow
- craftarrow.medic - Allows the use of the medic arrow
- craftarrow.wither - Allows the use of the wither arrow
- craftarrow.ice - Allows the use of the ice arrow

Changelog
2.0 So many things:
- New arrows including: FusRohDah, Medical, Vortex, Forcefield, Ice, wither, water and more!
- Infinity arrow bugfixed for real!
- Water and Net arrow now clean up after use
- You can now specify META-VALUE of a crafting component
- Almost a complete re-code.
- Skeletons shoot special arrows
- Skeletons drop special arrows and more!
1.6
- Added "Amount" variable to each Arrow in the config file, it sets how many arrows should be produced per craft.
- Fixed a update loop that caused the plugin to try to update on every restart
- Improved teleport algorithm to preserve the players view direction when teleporting, instead of inverting it in the direction the arrow was facing.
1.5
- fixed blood arrows throwing an error if health was full
I tested this with 1.5.1 (CB build 2717) and neither crafting nor shooting arrows threw any errors. Please update to a newer build AND more importantly CHECK YOUR CONFIG FILE FOR ERRORS! Nullpointer exceptions often means your config file is missing something/a material is incorrect.
If the error persists, delete your config file and restart your server. (back up your config beforehand if you've made changes).
1.4
- Added Net Arrows (Webs spawned not yet configurable)
- Fire Arrows now set blocks on fire (can be turned off, see "BurnBlocks: true", set to false)
- Added option to turn off Infinity Enchantment not using up special arrows, will now shoot normal arrows instead (Default is off, if you want Infinity enchantment to work set "InfinityBowWorks: false" to true)
- You can now set the name of the arrow.
- Replaced old Description value and changed name value, IF YOU ARE ALREADY USING THIS PLUGIN, CHANGING DESC. WILL RENDER ALL YOUR OLD CRAFTED ARROWS USELESS! DO NOT GENERATE A NEW CONFIG FILE UNLESS YOU WANT YOUR OLD ARROWS TO BE USELESS!
How the config works:
Errors/Issues/Problems/Can't get it to work?
Use the ticket system:
Try to provide as much information as you can such as:
- Errors (if any)
- CB-version
- startup-log (the complete!)
- Steps to reproduce error (if possible)
And anything else that might be important. Incomplete tickets will be closed.



-
View User Profile
-
Send Message
Posted Jun 12, 2013It took a couple of restarts but the skeles no longer drop the arrows. However, players with infinity I bows don't lose the arrows even though I have the config set to false to prevent that. Any idea?
-
View User Profile
-
Send Message
Posted Jun 12, 2013@boushwa Try setting normal arrows to something like 50. I'm not sure if 100 breaks it. I'll check it out once I get home later. Might have been an oversight or typo in the code.
@CommodoreAlpha
I'm not sure why you would need a cooldown for the arrows seeing as they have to be crafted instead of being just pulled out of thin air (like other arrow plugins).
Sure I can add some crit chance into the next build, shouldn't be an issue.
Armor stuff will come with CraftArmors, this plugin is purely about arrows.
I'll think about something with sneak, maybe even in combination with crits.
-
View User Profile
-
Send Message
Posted Jun 11, 2013This might be out of the focus of this plugin (seeing as it's focused on adding new arrows), but would the following ideas be possible to implement? (You may notice these features from Mo' Arrows.)
Also, heal arrows should deal bonus damage to the undead. Being the undead and all.
-
View User Profile
-
Send Message
Posted Jun 11, 2013so I've turned off the ability for skeletons to drop arrows and even set the chance to drop special arrows to 0 while normal is 100. They are still dropping special arrows. Am I doing something wrong?
-
View User Profile
-
Send Message
Posted Jun 11, 2013@boushwa
Currently you can't have arrows of the same type with different strengths. I'll think about it but I'm not sure how.
As for Chestshop, unless they can somehow create items with lore then I don't see a way.
-
View User Profile
-
Send Message
Posted Jun 11, 2013Is there any way for server owners to duplicate arrows of the same name but with different configs? What I mean is, have something like Crippling Arrow I, Crippling Arrow II, Crippling Arrow III, etc... My thought is to have different levels of each arrow, each level higher becomes more powerful.
Also, there's no way we can sell these through something like Chest Shop is there? I read where you said the arrows use the same ID number as regular arrows so I'm guessing the answer is no.
-
View User Profile
-
Send Message
Posted Jun 11, 2013@Pedrods50
Can't you simply set regions around your area and set the world guard flag to deny for other-explosions? I tried the tnt arrow in my protected spawn area, no visible explosion or damage. Just noise.
-
View User Profile
-
Send Message
Posted Jun 11, 2013@Davdinges
Don't worry, as soon as I get home I'll do it. Kind of hard to change them via my iphone.
Alternatively you could simply look into the config file.
-
View User Profile
-
Send Message
Posted Jun 11, 2013creep, can you please update the list of arrows in this deiscription above? I defineatly like the features but the discription is a bit of a mess for me...
Sorry if you see this as an insult, but i like clear information.
Dav.
-
View User Profile
-
Send Message
Posted Jun 10, 2013@midnightfang22
Each arrow can work on a per-permission basis which means if your permission plugin supports multi-world functions you should be able to limit arrow functionality per-world.
Also to address the colored arrow name, I use RecipeManager to make my arrows (as I use it for a lot other things) and since the arrow is defined by lore data and not through magical measures you can just use the "@lore" flag to make the arrows. The lore has to be equal to the set description in your ArrowEffects.yml file (Might want to test this and the config.yml file, forget which is the main configure file.)
@CreepCraft Well it was a thought, would be cool if it was easier to do.
Now that gives me a new idea for a new arrow: Scatter Arrow - When it hits the target it launches an additional X arrows in random directions(angle just set a few up) at a set or random velecity.
-
View User Profile
-
Send Message
Posted Jun 10, 2013Is it possible to give the arrow names a different color or the lore a different color? Also, would it be possible to disable the arrows working in specific world(s) later on?
-
View User Profile
-
Send Message
Posted Jun 9, 2013@Sarathis
Yeah the main issue about letting the piercing arrow actually penetrate entities is that I can't exactly know WHEN they are about to hit, so I could preserve the vector and simply remove and spawn another arrow with it's velocity behind the target. Once the target is hit, the velocity will be 0 meaning I would have to apply some random velocity and direction based on what I know about the shooter which in return would require more calculations :/
-
View User Profile
-
Send Message
Posted Jun 9, 2013@CreepCraft
Actually now that I'm thinking about the pest arrow, you could extend its[pest arrow] configurable functionality to allow different kinds of mobs to spawn besides just silverfish (even though they will be the default).
Also I was wondering how impossible would it be to make the piercing and/or the razor arrow be able to pierce through targets as well? If my limited knowledge of bukkit(or craftbukkit) code is correct (which might as well not be), there might be a means of canceling the arrow entity from despawning on hitting another entity while still registering that it still did damage. But I don't know about how easy it would be. Otherwise there probably isn't any built in, direct way to calculate the direction of the arrow hitting a target and spawning another arrow facing the despawned arrows direction that doesn't require a large calculation to be done.
-
View User Profile
-
Send Message
Posted Jun 8, 2013@NoahDTheHorse
Please do not post here again without reading or your posts will be deleted again. You might also change your tone from "do it" to "could you please add".
Thank you :)
-
View User Profile
-
Send Message
Posted Jun 8, 2013@Pedrods50
I won't start supporting every plugin out there because it will create new problems. Some of the BETTER plugins already block custom explosions, complain with worldguard that they don't.
Also, saying this plugin will grow 2x faster with WorldGuard support is major bullshit. There are about 25-28 arrows in CraftArrows 2.0 including options to remove net's after X seconds, water after X seconds and even turn off explosions block damage. Make use of these or disable those 3 arrows. There are still plenty more.
EDIT:
Btw, TNT arrows don't do block damage. Just FYI, Explosive arrows do. (You can turn block damage off for Explosive and Wither arrows in 2.0!)
-
View User Profile
-
Send Message
Posted Jun 7, 2013I cant use this plugin. I like this plugin alot, its very useful in my RPG server, but it doesnt support Worldguard, it bypasses the block protetion and i had to block some arrows lile explosive, tnt and net arrow.
Please, make WorldGuard compatiblity, this plugin would grow 2x if had WorldGuard compatibility. Hope that helped :)
-
View User Profile
-
Send Message
Posted Jun 7, 2013@dustyhacker
Exactly. I haven't gotten around to fully update the post yet. I'll hopefully get that done tomorrow :)
-
View User Profile
-
Send Message
Posted Jun 7, 2013I couldn't see any sign of perm names in the files/here, but i assume they follow the naming convention of the previous versions and they use: craftarrows.vortex for example?
-
View User Profile
-
Send Message
Posted Jun 7, 2013CraftDispensers now has a link to it, still waiting for approval tho. I've also uploaded the file so check back in a few hours.
(Click on the CraftDispenser logo)
-
View User Profile
-
Send Message
Posted Jun 7, 2013@Sarathis
I really like those suggestions.
1. I can easily add that one. The "explodes into more arrows part" isn't particularly hard to do, just pretty resource intensive for an arrow (calculations etc). Maybe once it hit's something it rains down a few more arrows, I'll see.
2. Not a bad idea either, can easily add that one.
3. Really like this one.
Potion effect arrows already play the splash potion effect and sound, I'll see about adding more.