MagicArrows
Featured in the April 26th Minecraft Spotlight! Thanks, Xenios01! Use a bow and arrow to perform tasks you never thought possible! Place torches in faraway locations, blow up everything with explosive arrows, and spread fire with fire arrows that actually burn! Maybe you could even control the weather?
Essentially, this plugin allows you to shoot "special" arrows by using other items along with your bow.
Currently, these are the available arrow types and material requirements:
- Torch: torch arrow - places a torch wherever it hits
- Flint and Steel: fire arrow - starts a fire
- TNT: explosive arrow - creates an explosion(strength is configurable)
- Fire charge: Fireball - changes the arrow into a ghast fireball
- Diamond: Smite arrow - summons a bolt of lightning
Experimental arrows: - Ice - freeze arrow - freezes the surrounding blocks and entities, turning water into ice and lava into obsidian and cobble. Currently unfinished- entity freeze isn't added yet, and the freezing mechanism doesn't quite work how I want it to yet. You can still use it if you want to, though. It's possible that I may add an action that allows you to simulate snowfall in a small area around you with this arrow.
Announcements
Okay, so, version 0.1.13 is finished, and hopefully this will fix the NPEs that people have been experiencing due to the various causes. From what I've found so far, the main causes that I can explain were arrows fired by skeletons, dispensers, and other things that are not players. This update SHOULD fix this problem, but if anyone continues to see errors, then please upload your server log file (or at least the part containing the error report) to pastebin and submit an issue on the github page.
Second, I have attempted to get some support for Towny added, but at this point I have no idea how this will go, since I have difficulty testing Towny region support on my own. I am still unable to figure out adding WorldGuard support, but if the Shield API gets updated and I can figure out how to use that, then that will solve the entire problem. If anyone has any advice as to how to manage any of this, I would greatly appreciate it if you would drop me a PM or an email or anything to let me know!
Any feedback, results, information, and suggestions would be greatly appreciated and I will try to respond as soon as my schedule permits.
Instructions
To use a special arrow, simply place the bow directly to the right of the required item on your hotbar, and shoot.
It should be noted that torch arrows are somewhat fickle, currently, and don't work well with some angles for whatever the reason. As such, don't get frustrated if your torches keep popping off- just change your vantage point and try again.
Permissions
magicarrows.torch
magicarrows.fire
magicarrows.tnt
magicarrows.fireball
magicarrows.smite
magicarrows.freeze
WARNING! Ice/Freeze arrows are experimental, I make no guarantees on whether or not it will work how you expect!
Metrics/Emetrics
This plugin uses EMetrics, an extended version of Plugin Metrics, to gather statistics on usage. If you would like to learn more about this feature, you can find out about it on their website: http://mcstats.org
To Do/Future Versions
To Do:
- In Progress snowballs: Ice/Freeze arrow
- water bucket: water balloon/fire extinguisher
- eye of ender: fetch arrow
- feather: repulsion arrow
- ender pearl: teleport arrow
- ???: weather arrows (local/global?)
- string: tripwire arrow (require hooks?)
- Fixed, need verification Fix null pointer exception that happens when an arrow from a skeleton or a dispenser hits something
@catprowler
Emetrics is already in the plugin, so no need to worry about that. I'm still in the process of getting this working on 1.6, and I'll try to have an update out for both 1.6 and 1.7 (if it doesn't work on both, I'll have separate versions) It doesn't currently work in dispensers, but I will look into that, since that's actually a pretty good idea. and you place the item directly to the left.
Hi there, I'm not sure if I'm doing something wrong, but I can't seem to get any of the arrows to work? Is this compatible with minecraft 1.6.4? I have put the item on either side of the bow in the item bar and nothing happens when I shoot. Only normal arrows. Do I have to load Emetrics too or is that built into the plugin already? Do these items work in dispensers wired with redstone? Is there a picture or video to show exactly where to place the bow and item on the hotbar or dispenser? I just want to confirm I am doing it correctly? Hope someone can help.
@xStarJorn
@kaitoyuuki
Yeah, it's magicarrows.freeze. I updated the description to have it on the list.
@xStarJorn
It should be magicarrows.ice if that's not it, then it's magicarrows.freeze
and this arrow is still experimental, I'm having trouble getting it to freeze the proper radius and change all the blocks. I should have it working by the next release, though.
@klysu
you can find the source here: https://github.com/kaitoyuuki/MagicArrows
I'm happy to see that my work has inspired others if you need any help, please let me know! I'd be happy to assist you with brainstorming, interpreting my code, or anything else you might need. Who knows, maybe we can combine our ideas into a single awesome plugin!
Hi, where is the source?
I will like to implement and uprade this plugin.
Good plugin by the way.
@kaitoyuuki
what are the permiss for freezing arrow thanks
@xStarJorn
Yes, but I'm still working on adding a feature that allows you to disable block damage only from my arrows. until that's ready, try worldguard or any one of the other hundreds of plugins that let you disable block damage by explosions. I hope to be able to add this to the configuration soon ^^
Is there any way to disable damage to blocks from the tnt and fireball, just the damage?
thanks
@cosalert
Yes, this is a known issue. I'm still working on that. If I can get my plugin hooked into the shield API, it should be much easier, otherwise I'll have to do the checks for each plugin individually. Anyways, I'm really hoping I will be able to put this in on the next version.
@kaitoyuuki
yup,fireball arrow does death kill counted as killed by player, another problem is the torch arrow can be placed everywhere in any protected region as well ,like worldguard,faction and etc,so could you try to get that fixed ? thanks =] ,love the plugin
@Novrum
I don't really think that using up arrows when firing torch arrows is that much of a problem. It keeps things somewhat balanced, and if you think about it, you can't really shoot a torch from a bow in real life either. Since it doesn't have fletching, it would just fly off in random directions with little to no control. Second, for the max charging bow thing: there probably is a way for me to do that, but unless I can find a method that specifically tells me how far back the player drew the bow, I'm going to have to do some convoluted crap with velocity vectors- and I hate messing with velocity vectors. Anyways, if they get spammed a lot, just take them away from people.. In the next version, I should have options in the config for setting what items and how much are required for some of the arrows, so that you can just increase the cost if it feels too powerful. Oh, and if you turn down the blast power of the tnt arrows in the config, people are less likely to waste as much tnt on it. Particularly if it's weaker than tnt is normally (normal blast strength of tnt is 4)
@Hangar
I'm not 100% sure what you said here, given that I don't speak engrish, but from what I understood, you want an arrow that creates a rain of fire, which sounds really OP and really annoying to code. If I can get the ice arrows working properly, then I'll consider adding this as the first arrow with multiple requirements: a flint and steel and a crap-ton of blaze powder (probably). one way or another, if I add it at all, it's going to require as much stuff as I feel is necessary to balance out how OP it is. if that's even possible.
@kaitoyuuki
It would be nice to don't waste arrows for launching torcharrows. And what I said before of shooting only special arrows when you have the bow charged at maximum is for preventing fire/tnt or others spam, because this is a big problem :/
Can you make an area that where it places temporary on the ground in random locations centered around the point where the arrow lands? Kind of like a napalm arrow... the arrow itself does normal damage but if you are standing where the fire spawns you will be burned.
@Novrum
I believe all of those are possible, and I will look into it. However, I cannot guarantee that I will add them, since I put a lot of thought into how I would make this system work, and adding more requirements for the use of the arrows would likely over-complicate things. Also, for the activation key thing, only keys that are tied to movement, crouching, and jumping would be valid, as they are the only ones that continuously send information to the server while held down. If I were to allow the use of activators rather than just hotbar placement, I would likely just add commands.
@marquillos12 @marquillos12 Wither arrows are in progress :3 and I know about the fireball arrows thing. I'm working on it. This only happens on some servers, but I know that it is caused because the arrow that you shoot immediately hits the fireball that is created, causing it to go in another direction. In the future, please don't Capitalize The First Letter In Every Word You Type Because It's Really Really Annoying.
Another Thing, The Fireball Arrows Don't Shoot Where You Look At, So You Need To Fix That
Add Wither Arrows So If You Have A Wither Head You Can Shoot A Wither Head, This Would Make This Plugin 10x Better :D
@kaitoyuuki
Thx for this nice plugin!
Could you make that you can decide in the config if the effects only apear when you charge the bow at maximum (with a full configuration of each arrow type)? and also that you can decide if you shot the special arrow or a normal one without changing all the time the objects in the actionbar, like crouching or using a key (I don't know if this last one is possible)?
Note: This plugin still works perfect in cbukkit 1.5 and 1.5.1!
@xStarJorn
well, to keep it from making craters, you would have to completely disable explosions using a plugin like WorldGuard (which is my personal favorite, although it can be a little bit complex to some people) or one of the numerous explosion-blocking plugins. I suppose I can look for a way to nerf them and add an option to the config, so that they generate an explosion but don't damage blocks. Don't get your hopes up, though, because I honestly have no idea if I can do that at my current level. (I do know that I can make fake explosions, though. I don't think those damage players and entities, though.)
Maybe a really dumb question but how can i stop the TNT-bow making craters? is there any plugin or is it in the config?
xoxoxoxo
@cosalert
I will look into it. Not 100% sure if I can make that work for the explosion or fire, but I think I can get the fireball to show as being caused by the player. I also have no idea if I can make lightning arrows work like that. For now, just don't give them permission to use those.
Update: Okay, the ghast fireballs should already do that. In theory. If you can confirm that for me, that would be awesome.
For the other three special arrows, it looks like there is a way (in theory) for me to make it register to the player who fired the arrow if it kills the other player, but I'm pretty sure it won't register it in any death message plugins. This means that if you want to be able to penalize players for doing this, you will have to get/make another plugin that registers whenever a player dies and the value for "killer" is set to another player entity.
An alternate solution is to disable pvp and explosion damage to players that isn't caused by a mob. Unfortunately, fire damage will most likely always be the main way to get around disabled pvp. As for the lightning arrow, you might as well count that as a god-power arrow and not give people permission to use it. Even though it requires diamonds, it's still incredibly unbalanced.