TorchArrow
TorchArrow - In thy light shall we see light
Adds three new arrow types that emit light while flying: a torch arrow, a redstone torch arrow and a flare arrow. While flying in the air, the torch arrows illuminate the blocks around them and finally spawn a torch when the target is reached. The torch arrow will place a normal torch on impact and redstone torch places a redstone torch.The normal torch arrow can be also set to melt ice and snow instantly in arrow glow radius by changing permissions. With redstone torch arrow you can also e.g solve different kind of redstone circuit puzzles or activate circuitry from distance. Finally, you can set the torch arrows to burn hit enemies by a defined change by tuning values in the config-file. The flare arrow does not spawn any torches, but emits light and goes out after a predefined time. Check out the full feature list below and read the instructions!
Current version: v0.9 (Supports CraftBukkit RB 1.2.5-R1.0)
Changelog
Note: If you find a bug, please post a detailed Ticket, no vague error message copypasta to the forum thread!
Usage
One can shoot arrows of one of the arrow types if he has an arrow stack in any slot in the inventory and a torch stack, a redstone stack or a glowstone dust stack on the right side of the bow. If previously mentioned conditions are not met, the bow will shoot arrows normally.
Torch arrow works best in very dark places and in night time on the surface area, and can be also used to brighten dark areas under water to see what is in the bottom of the watery grave.
Features
- An arrow with a cool dynamic light effect that illuminates dark places in air or water in predefined radius.
- Light around player that illuminates the blocks around and follows the player. The light can be turned on by charging the bow or by right clicking the mouse while the bow is active and the required materials are in place.
- Torches or a redstone torches can be placed with torch arrows.
- Placed torches can be removed by shooting them with a normal arrow.
- Torch arrow glow melts ice and evaporates snow.
- Set block on fire with flare arrow or with torch arrows when torch placing is disabled
- Hit enemies can catch fire by a defined chance
- The arrow light of flare arrows will go out after impact and after a predefined time has passed.
- Customize your arrows by changing the settings!
- Supports Bukkit permissions API.
The Arrow Types
Torch Arrow
- Places a normal torch on impact.
- Melts ice and evaporates snow instantly.
- Sets enemy on fire by a predefined chance.
- Does more damage than a normal arrow.
- Emits light around it while flying.
- Sets blocks on fire (if setting enabled and torch spawning disabled)
Redstone Torch Arrow
- Emits light while flying.
- Places a redstone torch on impact.
- Sets enemy on fire. (Half time on fire compared to torch arrow)
- Does half of the damage compared to normal arrow.
- Sets blocks on fire (if setting enabled and torch spawning disabled)
Flare Arrow
- You can change the flare arrow material (default material is glowstone dust)
- Emits light while flying.
- Goes out after predefined time has passed after impact.
- Has bigger light radius on impact than while flying
- Does no damage.
- Sets blocks on fire (if setting enabled)
Light around player
Before you shoot one of the torch arrow types, the arrow illuminates the area around the player for a predefined time period. The light has same intensity and radius as the active torch arrow type and it will follow the player while it is on. When the light turns off it will consume one piece of the material needed for the active arrow type, but no arrows will be consumed. This feature can be turned off by changing playerLightTime-setting to 0 in config.
How to activate the light?
- Charge the bow while torch arrow materials are in place: If you keep the bow charged the light will illuminate the area around you and it will go out after a defined time (defined in config).
- Click the right mouse button once fast while the torch arrow materials are in place: Same as above.
How to turn off the light?
- The light will turn off automatically when a certain time has passed (defined in config) and it will consume a piece of the required material.
- Click the left mouse button when the bow is in hand: The light will turn off and it will consume a piece of the required material.
- Change the active item from bow to another item in hand inventory:: Same as above
- Shoot the active arrow type: The light will go off and apiece of material and an arrow will be consumed normally.
Commands
- /torcharrow reload (Reloads the config file)
Default Permissions
permissions: torcharrow.melt: description: Allow/disallow player to melt snow, snow blocks and ice blocks instantly with tArrow. default: active for op only torcharrow.burn: description: Allow/disallow player to set enemy on fire default: active for every player torcharrow.setBlockOnFire: description: Allow/disallow player to set block on fire (if no torch is spawned) default: active for every player torcharrow.torch: description: Allow/disallow normal torches to be spawned. default: active for every player torcharrow.redstone: description: Allow/disallow redstone torches to be spawned. default: active for every player torcharrow.tArrow: description: Allow/disallow normal torch arrows default: active for every player torcharrow.rArrow: description: Allow/disallow redstone torch arrows default: active for every player torcharrow.fArrow: description: Allow/disallow flare arrows default: active for every player torcharrow.reloadcmd: description: Allows player to use "/torcharrow reload" in game to reload config. default: active for op only torcharrow.enable: description: Enable/disable the whole plugin for a player. default: Enabled for every player
Config
- spawnTorches: Enable/disable torch spawning on arrow impact. If set to false, this overrides the preset permissions
- smoothLighting: Activates a smoother lighting effect. This may slow down your server a bit.
- playerLightTime: The time (in seconds) that the arrow will light the area surrounding the player while charging the bow (or otherwise activated). IF set to 0, this light effect will not be used.
- arrowGlowIntensity: Intensity of the light coming out from the arrow while it is flying. (allowed values: 0-15)
- lightRadiusFactor: Increases or decreases the light radius around a flying arrow (values: 0.1-3.0). (NOTE: Setting this too big will make your server cry :C)
- delay: The delay affects on how rapidly you can shoot the torch arrows. A normal arrow is used if trying to shoot before the delay timer is finished! (unit: milliseconds) It doesn't affect the usage of normal arrows. (The delay is added to avoid spamming of the torch arrows because the lighting effect of the arrow can be computationally expensive and slow down the server.)
- dmgMultiplier: Damage multiplier for the arrow. (Dmg = Normal arrow dmg * multiplier)
- burnChance: Chance that the arrow lights hit entity on fire. Values: 0.0 - 1.0
- burnDuration: Indicates how long time (in seconds) the hit entity is on fire.
- setBlockOnFire: Sets block on fire (if no torches spawn).
- flareGlowTime: Defines the time (in seconds approximately) how long the flare will glow after impact.
- impactRadius: Works like the 'lightRadiusFactor'. This affects the light radius of the flare when it hits the ground. (NOTE: Setting this too big will make your server cry :C)
- material: Material used for the flare arrow (use item IDs)
- warningMsg: Warns if you try to shoot without arrows. (leave empty to remove the warning)
Hi all,
I'm seeing errors in the server log like the following after updating to 1.4.4-R0.1 (specifically this build: craftbukkit-1.4.4-R0.1-20121116.060239-11.jar):
Maybe something changed in the server update that broke compatibility with this plugin?
pleas update 1.4.2
can we get a 1.3.2 update. i get errors and stuff now
This looks amazing! Please update! Can't wait to try it with an archery range kind of thing in next update!
i hope this will be updated for 1.3.2
i hope this will be updated for 1.3.1 :P
I last saw this in February and wanted to add it to my server, but it seems pretty out of date :/
This is a cool plugin, though it seems quite buggy now. Any chance of this being updated?
@DragonOfLight43
"One can shoot arrows of one of the arrow types if he has an arrow stack in any slot in the inventory and a torch stack, a redstone stack or a glowstone dust stack on the right side of the bow. If previously mentioned conditions are not met, the bow will shoot arrows normally."
Holy. Crap. I. Feel. Stupid. i raged for like 4 hours trying to figure it out, i was putting them int he crafting bench..so. mad! please specify taht you need to put it not in the crafting bench
Things to confirm if it isn't working:
We're using it on CB 1.2.5-R2.0 and it has been working, aside from the 'occasionally, it just drops a torch' issue.
It works except the torches don't stick to any terrain >_> they just turn directly into items
Ma bad! It works fine now...
Just kept reloading, after 2 hours it worked.. :D
EDIT:
Now it doesnt work again.. dang it.. :(
Plzz find bug
Doesnt work.. sorry to say
Only shoots normal arrows
Tried this, but it doesn't seem to work. I followed the instructions to the letter while I was OP (Torches to the right of my bow in my hotbar) and nothing happened. :/
I've followed all the instructions, I have all of the permissions, but nothing is happening excpet shooting normal arrows.
How do I activate torch arrows?
Hi all,
I tested the plugin with the newest recommended build (CB 1.2.5-R1.0) and it seems to work properly. Inform me if you find any bugs (that are not in the ticket system already) by posting a ticket.
@TheSabotender
Hello, thanks for the praises. I will try to add the support for the creative mode in the next update. Your second suggestion has already been suggested before (check the tickets) and that kind of feature has been on my mind as a next step for this plugin for a while :) I'll probably add this feature in the next bigger update (that would be version 1.0). I'll possibly also change the plugin name, because the update will make this plugin much more than just torch arrows (Though this plugin is already much more than just torch arrows)
Hi, I love this mod, it works really good, so thanks. I have two suggestions though, first I noticed that the arrows also consume torches, while this is good in most cases, its not so good when i'm in creative mode.
Please add a field to the settings "consumeTorch" or something, and then override this to 'true' when in creative mode.
--
My second suggestion is quite simple i think, let us make as many arrows as we want! Just make the settings file support more groups, change the 'material' field to 'requiredMaterial' or something to define the item needed next to the bow, then add a 'onHitSpawnMaterial' to define what is placed on impact.
You could also remove the 'spawnTorches' field and have it included in the 'onHitSpawnMaterial' by checking if the id is 0. In the example I also changed the name of my first suggestion to "consumeMaterial"
--
Example
@Meclizine11
Well, I can assure you is not random :) Something in the recent minecraft/bukkit updates has made the torch placing unaccurate. It worked quite well in the earlier versions. I will try to fix this for the next plugin update.
Thank you for your report!