ArrowPro 添加了多种新的箭矢类型供玩家使用。它还支持升级箭术技能的功能,解锁新箭矢并提升箭矢的速度和伤害。此外,通过 MobStats,可以将箭矢装备在骷髅等生物身上,更强的生物会掉落更多的箭矢经验。
安装此插件只需将 .jar 文件放入服务器的 plugin 文件夹,启动服务器,根据喜好编辑配置文件,然后重载服务器即可。现在你就可以开始射箭了。
如果你有任何关于新箭矢的想法,请在下方评论,我会尽力实现。同时欢迎反馈任何 Bug 或功能请求。
功能特性
- 多种特殊箭矢。
- 弓箭手等级系统。
- 可自定义每种箭矢的等级以及爆炸威力(如果该箭矢具有爆炸效果)。
- 基于等级,使用公式可配置速度、伤害、持续时间以及增益强度。
- 可为每种弓和每种箭矢设置合成配方。
箭矢列表
- 普通箭 (Arrow):效果与原版 Minecraft 箭矢完全相同。
- 失明箭:命中实体后施加失明效果。
- 困惑箭:命中实体后施加困惑效果。
- 苦力怕箭:命中处生成一只苦力怕。
- 闪电爆炸箭:命中处落下闪电并引发爆炸。
- 火焰闪电爆炸箭:命中处落下闪电并引发火焰爆炸。
- 火焰 TNT 箭:命中处引发火焰爆炸。
- 火焰箭:这是一支着火的箭矢。
- 冰箭:命中处冻结水源并铺设雪块。
- 铁傀儡箭:命中处生成一只铁傀儡。
- 岩浆箭:命中处放置岩浆。
- 闪电箭:命中处落下闪电。
- 中毒箭:命中实体后施加中毒效果。
- 红石火把箭:命中处放置红石火把。
- 骷髅箭:命中处生成一只骷髅。
- 缓慢箭:命中实体后施加迟缓效果。
- 雪人箭:落地处生成一个雪人。
- TNT 箭:命中处发生爆炸。
- 传送箭:将射击者传送至箭矢落点。
- 火把箭:落地处放置火把。
- 树木箭:落地处随机生成一棵树。
- 三重箭:一次射出三支箭矢。
- 水箭:落地处放置水源。
- 虚弱箭:命中实体后施加虚弱效果。
- 僵尸箭:落地处生成一只僵尸。
合成箭矢
- 箭矢和弓必须通过合成获得。
- 配方可在箭矢描述中查看。(参见命令部分)
- 配方是可配置的。(参见配置部分)
- 要发射某种箭矢,你需要拥有对应类型的弓。
存在一个 Bug:当发射箭矢时,如果第一个包含箭矢的槽位中的箭矢类型不正确,系统仍会从该槽位扣除一支箭,并从第一个包含正确类型箭矢的槽位中再扣除一支。不过,错误槽位中的箭矢并未真正消失,只是显示数量发生了变化,实际数量保持不变。强制游戏重新获取该槽位信息(例如将该槽位的箭矢移出,或从该槽位丢弃一支箭)可使显示数量恢复正常。这是 Minecraft 本身的问题。
命令
命令格式为输入 /ap [command] <args>
- /ap (无后续参数)或 arrows:列出所有已启用的箭矢。
- /ap [某种箭矢]:显示该箭矢的描述。
- /ap [某种箭矢] legend [bow/arrow]:解释配方中每个字符的含义。
- /ap me:告知玩家当前等级、经验值以及当前持有的箭矢。
- /ap give [某种箭矢] [数量] [数据]:给予指定类型的箭矢或弓。请使用缩写,或使用下划线分隔的名称(适用于箭矢),并在末尾添加 _bow 以表示弓。
- /ap help:解释命令用法。
权限
权限节点格式为 arrowpro. 加上箭矢在命令中使用的缩写。
'arrowpro.give':用于 /ap give 命令的权限。
配置
经验值:包含为玩家提供经验值的所有方式。分为 Entity(实体)和 Player(玩家)两类,每一类都包含 Hit(当箭矢击中实体时)和 Kill(当箭矢击杀实体时)。对于 Entity 类别,Kill 可以更改为 Kill Equation(击杀公式),以便使用生物等级作为 x 值构建公式(需要 MobStats)。
玩家等级:这是一个公式,用于根据玩家的等级计算升级所需的经验值。所使用的等级是当前等级,而非下一级等级。
箭矢:每种箭矢都有独立的配置区块。在此区块中,可以在相应位置设置最低等级要求和威力。合成配方设置在每种弓的配置区块中(参见 Recipes 部分)。所有弓都具备 Speed(速度)和 Damage(伤害)公式,而施加效果的箭矢(Blind 失明、Confusion 困惑、Poison 中毒、Slow 缓慢、Weakness 虚弱)还具备 Duration(持续时间)和 Amplification(增益强度)公式。若从配置文件中移除某箭矢,则该箭矢将被禁用。完整的箭矢列表和描述可在 info.yml 文件中找到。
配方:每种箭矢有两种类型的配方:Bow Recipe(弓配方)和 Recipe(箭矢配方)。它们的配置方式相同,区别在于 Bow Recipe 用于合成弓,而 Recipe 用于合成箭矢,且可以配置每次合成的箭矢数量。若要配置每次合成时生成的箭矢数量,请在 Recipe 的 Amount 部分输入具体数值。
形状:“形状”部分用于设定合成配方的外形。共有三行需要填写,从上到下依次称为第 1 行、第 2 行和第 3 行。在双引号(")内,每行输入三个字符。每个字符代表一种材料,若留空则表示在合成时该位置不放置任何物品。
材料:对于形状中使用的每个字符,在其后添加一个冒号,然后填入对应位置的物品 ID。
方程:插件支持使用多种方程来计算数值。上述已对各部分进行了说明,以下是构建方法。共有六种可用类型,分别为:
- 二次方程:需填入 a、b、c 三个值以构成方程 ax² + bx + c。将 a 设为 0 可退化为线性方程,此时 c 即为 x 为 0 时的值。
QWD:二次方程,但 a、b 和 c 的值旁边可以加上 d,用于将该值乘以所计算内容的默认值。QMD:二次方程,在计算完成后乘上所计算内容的默认值。设置方式与普通二次方程相同。Exponential(指数):包含 a、b、c、d、f 五个值,需填入公式 a(b^(c(x - d))) + f 中。EWD:与 QWD 相同,但使用指数方程代替。EMD:与 QMD 相同,但使用指数方程代替。
将类型填写在方程的“type”部分,然后为每个字母创建对应的部分并赋值。
所有方程都可以设置上限和下限,分别称为 max 和 min。可以选择排除这些限制以不设上下限。由于 Entity Kill、Player Levels、Duration 和 Amplification 没有默认值,因此不应使用 QMD、QWD、EWD 或 EMD。
ArrowPro creates many new types of arrows to be used. It also supports the ability to level up an arrow skill and both unlock new arrows and improve your speed, and damage of arrows. Also with the use of MobStats, the arrows can be put in the hands of skeletons and stronger mobs will produce more arrow experience.
To setup the plugin place the .jar file in your plugin folder, start the server, edit the config to your liking, and reload the sever. You are ready to start shooting arrows.
If you have any ideas for new arrows, comment bellow and I will try my best to make it happen. Also tell me of any bugs or feature requests.
Features
- Many special arrows.
- Levels for archery.
- Choose the level and the explosive power (if it explodes) of every arrow.
- Configurable speed, damage, duration, and amplification based on levels using equations.
- Make recipes to craft each bow, and each arrow.
Arrows
- Normal Arrow (Arrow): Works identically to the vanilla minecraft arrow.
- Blind Arrow: Applies the blind effect on the entity that it hits.
- Confusion Arrow: Applies the confusion effect on the entity that it hits.
- Creeper Arrow: Spawns a Creeper where it hits.
- Explosive Lightning Arrow: Strikes lightning and explodes where it hits.
- Fiery Explosive Lightning Arrow: Strikes lightning and makes a fiery explosion where it hits.
- Fiery TNT Arrow: Makes a fiery explosion where it hits.
- Fire Arrow: It is an arrow that catches fire.
- Ice Arrow: Freezes water, and lays down snow where it hits.
- Iron Golem Arrow: Spawns an Iron Golem where it hits.
- Lava Arrow: Places lava where it hits.
- Lightning Arrow: Strikes lightning where it hits.
- Poison Arrow: Applies the poison effect on the entity it hits.
- Redstone Torch Arrow: Places a redstone torch where it hits.
- Skeleton Arrow: Spawns a skeleton where it hits.
- Slow Arrow: Applies the slowness effect on the entity it hits.
- Snowman Arrow: Spawns a snowman where it lands.
- TNT Arrow: Explodes where it hits.
- TP Arrow: Teleports the shooter to where the arrow lands.
- Torch Arrow: Places a torch where it lands.
- Tree Arrow: Generates a tree of a random type where it lands.
- Triple Arrow: Shoots three arrows at once.
- Water Arrow: Places Water where it lands
- Weakness Arrow: Applies the weakness effect on the entity that it hits.
- Zombie Arrow: Spawns a Zombie where it lands.
Crafting Arrows
- Arrows and bows must be crafted.
- The recipe can be found in the arrows description. (see Commands)
- The recipe is configurable. (see Config)
- To shoot an arrow, you need a bow of that type.
There is a bug where when an arrow is shot, if the first slot with arrows in it, isn't the right type, it will still subtract an arrow from there and from the first slot with the right type. The arrow in the slot with the wrong type is not gone though, the number displayed has changed, but the actual number is the same. Forcing the game to grab information from that slot (e.g. moving the arrows out of that slot, or dropping an arrow from that slot) will cause the number to return to normal. This is a minecraft problem.
Commands
Commands are typed by typing /ap [command] <args>
- /ap (nothing after) or arrows: List all arrows that are enabled.
- /ap [some arrow]: Gives a description of the arrow.
- /ap [some arrow] legend [bow/arrow]: Explains what each character in the recipe means.
- /ap me: Tells the player their level, their experience and their current arrow.
- /ap give [some arrow] [amount] [data]: Gives an arrow or a bow of the given type. Use the abbreviation, or the name separated by underscores for arrows, and add _bow to the end for bows.
- /ap help: Explains the commands.
Permissions
For permissions, type arrowpro. and then the abbreviation for the arrow as used in a command.
'arrowpro.give': Permission for the /ap give command.
Config
Experience: Has all the ways of giving players experience. There is Entity and Player and each one contains Hit (when the arrow hits the entity) and Kill (when the arrow kills the entity). For Entity, kill may be changed to Kill Equation to make an equation using a mobs level for the x value (requires MobStats).
Player Levels: This is an equation that will determine, using the player's level, how much experience is needed to level up. The level used is the current level and not the next one.
Arrows: Each arrow has its own section. In this section, the minimum level, and the power may be set in the appropriate section. Crafting recipes are set in each bow's section (see Recipes). All bows have a Speed and Damage equation and arrows that apply effects (Blind, Confusion, Poison, Slow, and Weakness), also have Duration and Amplification (Strength). Excluding an arrow from the config will disable it. A complete list and description of arrows can be found in the info.yml file.
Recipes: Each arrow has two types of recipes, Bow Recipe, and Recipe. They are configured the same way except Bow Recipe, makes a bow, and Recipe, makes an arrow, and can have the amount of arrows created be configured. To configure the amount of arrows each time they are crafted, in the Amount section of Recipe type the amount.
Shape: The Shape sections sets what shape the recipe will take. There are 3 rows to fill called Row 1, Row 2, and Row 3 from top to bottom. Inside double quotation marks (") type three characters in each row. Each character represents one material, putting in an empty space will mean to leave that space empty when crafting.
Ingredients: Type each character used in the shape with a colon after it, then put the id of the item that should go where each character belongs.
Equations: There are many equations that can be used in the plugin to determine values. Each place has been described above but here is how to make them. There are six types that can be used and they are:
- Quadratic: Values are a, b, c to be filled in the equation ax^2 + bx + c. Setting a to 0 makes a linear equation, c is the value when x is 0.
- QWD: A Quadratic but the values for a, b, and c can have a d put next to them to multiply that value by the default value of what is being calculated.
- QMD: A Quadratic that gets multiplied by the default value of what is being calculated after it has been calculated. Setup the same as a regular quadratic.
- Exponential: Values ar a, b, c, d, f which are to be filled into a(b^(c(x - d))) + f.
- EWD: The same as a QWD but using an exponential equation instead.
- EMD: The same as a QMD but using an exponential equation instead.
Put the type in the "type" section of the equation and then for each letter, make its section and assign a value.
All equations can have an upper limit and a lower limit called max and min respectively. These may be excluded to have none. Entity Kill, Player Levels, Duration, and Amplification should not be QMD, QWD, EWD, or EMD since they have no default.
评论 0
登录后参与评分
还没有评论,来抢沙发吧