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)
Really weird suggestion, but could we maybe get a command version too? Then we can create special bows to fire the different arrow types :)
@NikoKun
Yes, I have been planning usage scenarios for enchantments already :) Proper bow charging feature will be added in the next plugin update. I had to wait a long time before the charging event, that I suggested to the dev team, was implemented to Bukkit, but It is now finally implemented, and I can fix this problem. If you have more feature suggestions, please post them through the ticket system, so I can organize the suggestions more clearly.
OMG! I am SO happy to see an update for this!
I never got a chance to try this out on my server, before it was outdated.. So thanks for workin on this now. =D
Random ideas/suggestions:
I wonder if this could eventually be made to work with enchanted bows, which have can have a flame effect, or even infinite arrows. Also, once/if Bukkit makes it possible for you to take advantage of Charging arrows, maybe instead of having the "bowDelay" you could set a precondition, that TorchArrows wont fire unless you fully charge the bow first.
Oh my god... I thought it would never update. Nice job! I might test sometime tomorrow if I get the chance.
Do this works with 1.1?
The plugin works now with CB 1.1-R6 and with CB 1.2.3-R0.1 Beta Build. :)
Is it almost updated to 1.0.0?
Same question on your other mod - can you use PEX nodes on this plugin?
Solved - yes
@MinecraftTakeover
Hi, you should read the "Known caveats"-section on the file download page before downloading the plugin. I'll just cite the related bit to you from it. "Bow charging does not work yet with this plugin. This means that when you shoot a torch arrow, the bow will act in the classic way: shooting the arrow instantly on first click. I hope the Bukkit team will approve my suggestion or I'll come up with some kind of magic trick to solve this issue." This means, that there is not currently any sensible and robust solution for the bow charging issue for this plugin, so I'm afraid you'll have to bear with it for awhile.
Ya I have the same problem as well, The arrows fire and place torches, and emit light. Yet the arrow fires before I'm done charging. PLZ FIX THIS. P.S. Please add a feature that can light a block on fire if you fire at it :D
TorchArrow is a Bukkit plugin and Bukkit is a minecraft server mod, so it works only on multiplayer.
works on multiplayer?
oh!!!
@timetoslide How exactly did you place the needed items? What other plugins are you using? Are you using any permission plugins and are the settings ok? (torcharrow should work fine with default permissions active ==> you don't have to activate or change any permission). Please provide more information and don't just say it won't work. I have already received positive feedback from many people and it seems the plugin works for them. In addition, I have not encountered any problems myself while testing the plugin. Also, for more support, you could send a message to the forum thread. There may be users that can also help you with problems you are experiencing.
Me to timetoslide. It's not working -.- I think the Bow charge on 1.8.1 is the Problem
doesnt work for me... Craftbukkit 1185, and a stack of torches, a stack of arrows. nothing, just a normal arrow
@SirMonsterSlayer
Thank you :) I have planned a similar feature for TorchArrow after I can somehow hook the bow charge event to my plugin. (Might have to wait a bit for that) With the functionality a player could keep the bow in charged mode and the torch arrow light would follow the player, maybe a certain predefined time, and the light would then die. And if the light dies the bow would just shoot a normal arrow when the charge is released. Much like a real fire arrow.
This is awesome really!
could you make another plugin maybe where players holding torches get the light around them maybe ? :D or on left click (torch consumption) ? :D
once more awesome!
@Bdl2
Hi, that was a good suggestion. I implemented it in the new version.
Hey, me again from the old forum thread. The plugin is still very awesome, but I have a quick suggestion pertaining to the redstone feature you implemented. Some users may want to restrict what groups can use whichever torch type. I'd suggest maybe two new permission nodes to do this. Something along the lines of torcharrow.torch and torcharrow.redstone, perhaps?