TorchArrow - 在你的光芒中,我们将看见光明
添加了三种在飞行时发光的新箭矢类型:火把箭、红石火把箭和信号箭。在空中飞行时,火把箭会照亮周围的方块,并在击中目标后生成一个火把。普通火把箭会在撞击时放置一个普通火把,而红石火把箭则会放置一个红石火把。通过更改权限设置,普通火把箭还可以设置为在箭矢发光半径内瞬间融化冰块和积雪。使用红石火把箭,你还可以解决各种类型的红石电路谜题或从远处激活电路。最后,你可以通过调整配置文件中的数值,将火把箭设置为按定义的概率烧伤命中的敌人。信号箭不会生成任何火把,但会发出光线,并在预定的时间后熄灭。请查看下方的完整功能列表并阅读说明!
当前版本:v0.9(支持 CraftBukkit RB 1.2.5-R1.0)
更新日志
注意:如果发现错误,请在 工单系统 中发布详细的报告,不要在论坛帖子中复制粘贴模糊的错误信息!
使用方法
如果玩家的物品栏中任意槽位都有箭矢堆,且弓的右侧有火把堆、红石块堆或萤石粉堆,就可以发射其中一种箭矢类型的箭。如果未满足上述条件,弓将正常发射箭矢。
火把箭在非常黑暗的地方以及地表夜间效果最佳,也可用于照亮水下的黑暗区域,以便看清水底墓穴中有什么。
功能特性
- 一种带有酷炫动态光照效果的箭矢,能在空气或水中以预定义的半径照亮黑暗区域。
- 跟随玩家的光照,照亮周围方块。当弓处于激活状态且所需材料就位时,可以通过给弓充能或右键点击鼠标来开启光照。
- 可以使用火把箭放置火把或红石火把。
- 放置的火把可以用普通箭射击来移除。
- 火把箭的光晕会融化冰块并使积雪蒸发。
- 使用信号箭或在禁用放置火把的设置下使用火把箭可将方块点燃。
- 命中敌人的概率性着火
- 信号箭的光照在撞击后经过预定时间会熄灭。
- 通过更改设置来自定义你的箭矢!
- 支持 Bukkit 权限 API。
箭矢类型
火把箭
- 撞击时放置一个普通火把。
- 瞬间融化冰块并使积雪蒸发。
- 按预定义的概率使敌人着火。
- 造成的伤害比普通箭矢更高。
- 飞行时在周围发出光线。
- 将方块点燃(如果启用该设置且禁用火把生成)

红石火把箭
- 飞行时发出光线。
- 撞击时放置一个红石火把。
- 使敌人着火。(着火时间是火把箭的一半)
- 造成的伤害是普通箭矢的一半。
- 将方块点燃(如果启用该设置且禁用火把生成)

信号箭
- 你可以更改信号箭的材料(默认材料是萤石粉)
- 飞行时发出光线。
- 撞击后经过预定时间会熄灭。
- 撞击时的光照半径比飞行时更大
- 不造成伤害。
- 将方块点燃(如果启用该设置)

玩家周围的光照
在发射任何一种火把箭类型之前,箭矢会在预定的时间段内照亮玩家周围的区域。该光照具有与当前激活的火把箭类型相同的强度和半径,并在开启时跟随玩家移动。当光照关闭时,它会消耗一件当前激活箭矢类型所需的材料,但不会消耗箭矢。通过将配置文件中的 playerLightTime 设置更改为 0,可以关闭此功能。
如何激活光照?
- 在有火把箭材料就位的情况下给弓充能:如果你保持弓处于充能状态,光照将照亮你周围的区域,并在定义的时间后熄灭(时间在配置文件中定义)。
- 在有火把箭材料就位的情况下快速单击一次鼠标右键:与上述相同。
如何关闭光照?
- 当经过特定时间后(在配置文件中定义),光照会自动关闭,并消耗一件所需材料。
- 当手持弓时单击鼠标左键:光照将关闭,并消耗一件所需材料。
- 将手中的活动物品从弓更改为其他物品::与上述相同
- 发射当前激活的箭矢类型:光照将关闭,并正常消耗一件材料和一支箭矢。
命令
- /torcharrow reload(重新加载配置文件)
默认权限
permissions:
torcharrow.melt:
description: 允许/禁止玩家使用 tArrow 立即融化雪、雪块和冰块。
default: 仅对 OP 生效
torcharrow.burn:
description: 允许/禁止玩家使敌人着火
default: 对所有玩家生效
torcharrow.setBlockOnFire:
description: 允许/禁止玩家点燃方块(如果未生成火把)
default: 对所有玩家生效
torcharrow.torch:
description: 允许/禁止生成普通火把。
default: 对所有玩家生效
torcharrow.redstone:
description: 允许/禁止生成红石火把。
default: 对所有玩家生效
torcharrow.tArrow:
description: 允许/禁止生成普通火把箭
default: 对所有玩家生效
torcharrow.rArrow:
description: 允许/禁止生成红石火把箭
default: 对所有玩家生效
torcharrow.fArrow:
description: 允许/禁止生成信号棒箭
default: 对所有玩家生效
torcharrow.reloadcmd:
description: 允许玩家在游戏内使用 "/torcharrow reload" 命令重载配置。
default: 仅对 OP 生效
torcharrow.enable:
description: 为某个玩家启用/禁用整个插件。
default: 对所有玩家启用
配置
- spawnTorches: 启用/禁用箭头命中时生成火把。如果设置为 false,则会覆盖预设的权限设置
- smoothLighting: 激活更平滑的光照效果。这可能会略微降低服务器性能。
- playerLightTime: 拉弓(或以其他方式激活)时,箭头照亮玩家周围区域的时间(秒)。如果设置为 0,则不使用此光照效果。
- arrowGlowIntensity: 飞行中箭头发出的光线强度。(允许值:0-15)
- lightRadiusFactor: 增加或减少飞行箭头周围的光照半径(值:0.1-3.0)。(注意:设置过大可能会导致服务器不堪重负 :C)
- delay: 延迟影响你发射火把箭的频率。如果在延迟计时器结束前尝试射击,将使用普通箭!(单位:毫秒)它不影响普通箭的使用。(添加延迟是为了避免火把箭的滥用,因为箭头的光照效果计算量较大,可能会导致服务器变慢。)
- dmgMultiplier: 箭头的伤害倍率。(伤害 = 普通箭伤害 * 倍率)
- burnChance: 箭头击中实体后使其着火的几率。值:0.0 - 1.0
- burnDuration: 表示被击中的实体着火持续的时间(秒)。
- setBlockOnFire: 点燃方块(如果没有生成火把)。
- flareGlowTime: 定义信号棒在命中后发光的大致时间(秒)。
- impactRadius: 作用类似于 'lightRadiusFactor'。这会影响信号棒落地时的光照半径。(注意:设置过大可能会导致服务器不堪重负 :C)
- material: 用于信号棒箭的材料(使用物品 ID)
- warningMsg: 如果尝试在没有箭的情况下射击,会发出警告。(留空以移除警告)
更多讨论请访问 forums.bukkit.org
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)
More discussions at forums.bukkit.org
评论 0
登录后参与评分
还没有评论,来抢沙发吧