描述
FortunePlus 是一款简单的插件,它增强了附魔了“时运”(Fortune)的铁镐和钻石镐的功能。当使用附魔了时运的铁镐或钻石镐挖掘铁矿石或金矿石块时,玩家获得的不再是矿石方块,而是铁锭或金锭。时运附魔同样会影响掉落锭的数量,就像它对钻石矿石的影响一样。此外,经验值不再需要通过熔炼矿石获得,而是像其他矿石一样在破坏方块时直接获取。
功能
- 附魔了时运(I、II 或 III)的铁镐或钻石镐在用于挖掘铁矿石或金矿石块时,会分别掉落铁锭或金锭,以及每个方块 1 点经验球。
- 掉落的锭数类似于时运对其他物品掉落(如煤、红石或钻石)的影响:
- 时运 I:33% 概率掉落 2 个锭,67% 概率掉落 1 个锭
- 时运 II:25% 概率掉落 2 个锭,25% 概率掉落 3 个锭,50% 概率掉落 1 个锭
- 幸运 III:20% 几率掉落 2 个锭,20% 几率掉落 3 个锭,20% 几率掉落 4 个锭,40% 几率掉落 1 个锭(来源)。
命令
- /fortuneplus[b]:告知用户 FortunePlus 对哪两种矿石(铁和/或金)生效。
权限
- 如果 未指定 任何权限,则默认为 true。我仅在 PermissionsBukkit 上测试过此插件,因此不保证与其他权限插件的兼容性。
- 节点:
- fortuneplus.iron_ore:允许 FortunePlus 在铁矿石上生效
- fortuneplus.gold_ore:允许 FortunePlus 在金矿石上生效
- fortuneplus.*:同时赋予两种矿石的权限。
安装
只需将 FortunePlus.jar 添加到你的 plugins 文件夹中,设置好相关权限即可正常使用。
[b]更新日志
V 1.0 - 首次发布
V 1.1 - 移除了使用附魔了“时运”的铁镐或钻石镐挖掘铁矿石或金矿石块时向玩家发送的消息。修正了一个问题:之前挖掘铁块或金块时获得的经验球数量被修复为每块矿石掉落 1 点经验。(Wiki 上提到熔炼铁矿石会获得 0.7 点经验,但 .setexperience() 方法仅接受整数。)
Description
FortunePlus is simple plugin that increases the functionality of Iron and Diamond picks that have been enchanted with Fortune. When a Fortune-enchanted Iron or Diamond pick is used on Iron or Gold ore blocks, instead of receiving an ore block, the user gets iron or gold ingots. The Fortune enchantment also affects the number of ingots dropped, just like it does on diamond ore, for example. Instead of getting your experience from smelting the ore, you get experience from breaking the block, like all the other ores.
Features
- Iron or Diamond Pickaxes that have been enchanted with Fortune (I, II, or III), when used on Iron or Gold ore blocks, yield Iron or Gold ingots (respectively), as well as 1 experience orb / block.
- The number of ingots that are dropped is similar to how Fortune affects other item drops (such as coal, redstone, or diamond) :
- Fortune I: 33% chance of dropping 2 ingots, 67% chance of dropping 1 ingot
- Fortune II: 25% chance of dropping 2 ingots, 25% chance of dropping 3 ingots, 50% chance of dropping 1 ingot
- Fortune III: 20% chance of dropping 2 ingots, 20% chance of dropping 3 ingots, 20% chance of dropping 4 ingots, 40% chance of dropping 1 ingot (Source).
Commands
- /fortuneplus[b]: Tells the user which of the two ores (iron and/or gold) that FortunePlus will work for.
Permissions
- If NO permissions are given, they default to true. I've only tested this plugin with PermissionsBukkit, so compatibility with other Permissions plugins isn't guaranteed.
- Nodes:
- fortuneplus.iron_ore: Allows FortunePlus to work on Iron Ore
- fortuneplus.gold_ore: Allows FortunePlus to work on Gold Ore
- fortuneplus.*: Gives permissions for both ores.
Installation
Just add FortunePlus.jar to your plugins folder, set any permissions, and you're good to go.
[b]ChangeLog
V 1.0 - Initial release
V 1.1 - Removed the message sent to the player whenever they mined an Iron or Gold ore block with a Fortune-enchanted Iron or Diamond pick. Corrected a problem where the experience orbs that were received when mining Iron or Gold blocks was fixed. Now Iron and Gold blocks drop 1 experience per ore block. (The wiki says iron give .7 xp when smelted, but the .setexperience() method only accepts integers.).
评论 0
登录后参与评分
还没有评论,来抢沙发吧