分支采矿,即在低层挖掘有组织的隧道以增加发现珍贵矿石几率的过程。这是大多数生存游戏中的有效技巧,但在极限硬核锦标赛中,由于其获取矿石的简便性和安全性,其使用通常被禁止。这导致了大量的争议、指责、对规则理解不足以及主持人需要花费大量时间来监管此类行为。
为了彻底避免这个问题,我创建了此插件。它简单、高效且有效地移除了所有只能通过分支采矿找到的矿石,同时保留了在洞穴探险和探索地下结构时可以找到的所有矿石。实际效果是,所有形式的分支采矿都变得无利可图且毫无意义,从而有效地从游戏中消除了分支采矿。
由于通过洞穴探险可以找到的所有矿石都被保留,除非玩家是在挖掘隧道而非洞穴探险,否则大多数玩家甚至不会注意到世界有任何区别。
这对主持人和玩家都有利,因为主持人不再需要担心监控玩家的隧道以查看他们是否在进行分支采矿,而玩家也不再会因规则感到困惑,也不再需要为了真正的原因(如寻找洞穴)而担心挖掘直线隧道。
- 简单
- 只需在生成新世界之前将插件 jar 文件下载到 plugins 文件夹即可,无需额外设置
- 高效
- 平均仅使区块加载时间增加 15-20%,通常每个区块仅相差几毫秒
- 如果使用 AntiBranchMining 预生成竞技场,它在游戏过程中无需执行任何操作,因此不会产生延迟
- 速度足够快,可以在无限大小的世界中使用时不会产生显著延迟
- 有效
- 移除所有仅通过分支采矿可用的矿石,同时保留所有可以通过洞穴探险找到的矿石
- 在 1600x1600 的地图中,仅通过洞穴探险仍可保留约 14,000 个金矿和 5,000 个钻石
- 可定制
- 排除某些类型的矿石不被移除
- 降低检查要移除矿石的最大高度,如果您允许在较高层级进行分支采矿
- 记录矿石组成,以显示之后世界中剩余的矿石数量
- (0.2) 从 config.yml 中对每个世界应用不同的设置或禁用 AntiBranchMining
- (0.3) 更改矿石移除因子,可选择性地保留一定比例的原本会被移除的矿石
- (0.3) 通过在配置中指定哪些块 ID 算作矿石以及它们应替换为何种材料,在具有截然不同地形生成的世界中使用 AntiBranchMining
多世界支持 (v0.2 起可用)
为了提供对多个世界的支持,我在 config.yml 文件中添加了一些额外选项。以下是一个示例:config.yml
可定制的矿石移除因子 (v0.3 起可用)
默认情况下,AntiBranchMining 将移除 100% 仅能通过分支采矿找到的矿石。然而,在某些情况下,您可能只想鼓励洞穴探险而不是完全防止分支采矿。您现在可以向默认世界或任何给定世界添加一个值为 1 到 100 之间的百分比的 "removal-factor" 键。例如,如果将其设置为 90,则会移除 90% 的矿石,而仅通过分支采矿可用的矿石中只有 10% 会保留。这是按矿脉而非按方块计算的,因此要么整条矿脉保留,要么整条矿脉被移除。这应该能保持世界原版的自然感觉。
自定义世界生成支持 (v0.3 起可用)
为了更好地支持非正常世界生成的世界(例如下界和石英矿石?),我添加了一个 "ore-replacement-material" 选项,这允许您设置用什么材料替换被移除的矿石。这在普通地图中默认为石头,但在下界中,您可能更希望它是下界岩。
我还添加了一个 "ores" 选项,这是一个类似于 "excluded" 矿石的列表,允许您自定义哪些材料应被视为用于搜索的矿石。如果您使用的矿石集与标准矿石不同(例如下界石英代替煤、铁、金等),这将非常有用。
这不应用于替代 "excluded" 选项,因为它可能会产生不需要的副作用。例如,如果您不希望移除煤矿石,因此将其从矿石列表中移除,虽然这会阻止煤矿石被移除,但也意味着如果您挖空了煤矿石,其后面的任何其他矿石都会因煤矿石不被视为矿石而被移除。ores 列表应被视为世界中所有已知矿石的列表,无论您是否希望移除它们。
- /OreStats - 显示世界每个区块中剩余的矿石组成以及从中移除矿石所需的平均时间。在生成世界之前,将 config.yml 中的 debugstats 设置为 true 以查看所有信息。
- antibranchmining.commands.orestats (默认为 op) - 允许使用 /orestats 命令
此插件使用 Java 7
如果在安装此插件后启动服务器时出现“Unsupported major.minor version 51.0”错误,这意味着您正在使用的 Java 版本已过时。如果您不知道如何升级,请联系您的服务器托管提供商,请求他们协助升级到 Java 7,或联系 Oracle 客户支持。Mac OS X 用户需要使用 JDK 7 而非 JRE 7。
兼容性
这是一个符合 Bukkit API 规范的插件。这保证了它与其他符合 Bukkit API 规范的插件兼容,并且能够在后续版本的 Craftbukkit 中继续正常运行(除非 Bukkit 团队明确指出某个特定更新会导致插件失效,但这种情况极为罕见)。
如果您希望为该项目持续的開發、支持和维护做出贡献,请考虑加入我的 Patreon,进行一次性或定期捐款。
如果您需要帮助,可以在下方留言,我会尽快回复您。您也可以通过以下链接加入我的 IRC 聊天室。请注意,我不一定随时都在电脑前!
Branch-mining, the process of digging out organised tunnels at low levels in order to increase chances of finding valuable ores. A valid technique in most survival games, but in Ultra-Hardcore tournaments its use is often banned due to the ease and safety in which you can gain ores. This has led to a great deal of drama, accusations, lack of understanding of the rules, and time required on the part of the host to police such behaviour.
In an attempt to avoid the problem entirely, I have created this plugin. It is simple, efficient and effective in removing all ores that can only be found by branch-mining while retaining all ores that can be found while caving and exploring underground structures. The practical upshot of this is that all forms of branch-mining become profitless and therefore pointless, and effectively removes branch-mining from the game.
As all ores that could be found by caving are retained, most players will not even notice a difference to the world unless they are tunnelling rather than caving.
This is advantageous to both hosts and players, as hosts will no longer need to worry about monitoring the tunnels of players to see if they are branch-mining, while players will no longer have the confusion about rules, will no longer need to worry about digging straight tunnels for genuine reasons, such as searching for caves.
- Simple
- Just download the plugin jar into your plugins folder before generating a new world, no additional setup required
- Efficient
- Causes chunk loading to take only 15-20% longer on average, typically a difference of only a few milliseconds per chunk
- If you pre-generate your arena with AntiBranchMining installed, it need do nothing during play and so causes no lag
- Fast enough to be used without significant lag in unlimited sized worlds
- Effective
- Removes all ores only available through branch-mining, while retaining all of the ores that can be found while caving
- approx 14,000 gold and 5,000 diamonds remain in a 1600x1600 map available just from caving alone
- Customisable
- Exclude certain types of ores from being removed
- Reduce the max height to check for ores to remove, if you allow branch mining at higher levels
- Record ore compositions to show how much ore is left in the world afterwards
- (0.2) Apply different settings or disable AntiBranchMining on a per-world basis from the config.yml
- (0.3) Change the ore removal factor to optionally retain some percentage of ores that would normally be removed
- (0.3) Use AntiBranchMining on worlds with radically different terrain generation by settings which block IDs count as ores and what material they should be replaced with
Multi-World Support (Available from v0.2)
In order to provide support for multiple worlds, I have added a some extra options in the config.yml file. Here is an example: config.yml
Customisable Ore Removal Factor (Available from v0.3)
By default, AntiBranchMining will remove 100% of the ores that can only be found through branch-mining. However, in some cases you may only want to encourage caving rather than prevent branch-mining entirely. You can now add a "removal-factor" key with a percentage from 1 to 100 to the default or any given worlds. If you set it to 90 for example, then 90% of the ores would be removed, and only 10% of the ore available only through branch-mining will remain. This works per vein of ore rather than per block, so either the whole vein will remain or the whole vein will be removed. This should maintain the natural vanilla feel of the world.
Custom World Generation Support (Available from v0.3)
In order to better support worlds with other than the normal world generation (e.g. nether and quartz ore?), I have added an "ore-replacement-material" option, this allows you to set what material to replace removed ores with. This default to stone on normal maps, but in the nether for instance you would more likely want it to be netherrack.
I have also added an "ores" option, a list much like "excluded" ores, that allows you to customise which materials should be considered ores for searching purposes. This is useful if you are using a different set of ores to the standard ones e.g. nether quartz instead of coal, iron, gold etc.
This should not be used as a replacement for the "excluded" option as it may have unwanted side-effects. For instance, if you didn't want coal ore to be removed, so you took it out of the list of ores, it would prevent the coal ore from being removed, however it would also mean that if you mine out the coal any other ores behind it would have been removed due to the coal not being considered an ore. The ores list should be considered a list of all known ores for the world, whether you want them removed or not.
- /OreStats - Displays the remaining ore composition of the world per chunk and the average time it has taken to remove ores from them. Set debugstats to true in the config.yml before generating the world to see all the information.
- antibranchmining.commands.orestats (defaults to op) - Allows use the /orestats command
This plugin uses Java 7
If you get the followed error on starting up the server with this plugin installed "Unsupported major.minor version 51.0". This means you are using an out of date version of Java. If you don't know how to upgrade, please contact your server hosting provider and ask them for help in upgrading to Java 7, or contact Oracle customer support. Mac OS X users require JDK 7 instead of JRE 7.
Compatibility
This is a Bukkit API-compliant plugin. This guarantees that it is compatible with other Bukkit API-compliant plugins, and will continue to work in later versions of Craftbukkit (unless the Bukkit team specifically state that a particular update will break plugins, this has very rarely ever happened).
If you'd like to contribute towards the continued development, support and maintenance of this project, please consider joining me on Patreon, and making a one-time or recurring pledge.
If you need help you can leave a comment below and I will get back to you as soon as I can. You can also join my IRC chatroom using the following link. Please note, I am not always at my keyboard!
评论 0
登录后参与评分
还没有评论,来抢沙发吧