VeinMiner 是一项功能,允许你通过挖掘其中一个方块来一次性破坏所有相连的同种方块。本数据包使用原版命令实现该功能,让你的 Minecraft 原版游戏体验更加舒适。
功能特性
- 完全可自定义:从可以被“矿脉开采”的方块到能触发特定类型方块矿脉开采的工具,均可自由配置。
- 用户友好的配置菜单。
- 兼容几乎所有原版和模组方块。
- 提供多种设置以优化体验,包括安全措施,防止你在无意中意外矿脉开采自己的杰作。
- 模拟工具附魔效果以及饥饿值与工具耐久度的行为,如同真实挖矿一般。
- 矿脉开采动画:逐层逐步破坏矿脉中的各个方块。
- 支持多人游戏。
此数据包使用了实验性功能:Dialog,在安装或卸载此数据包后,你可能需要重新加入世界或重启服务器!
你需要下载所需的 语言资源包 并安装它。之后即可直接使用此数据包。如果你遇到问题,也可以阅读下方的 “注意事项与技巧” 部分,或 报告问题。如果你想自定义此数据包,请阅读以下信息。
设置
你可以在数据包的信息菜单中找到设置菜单,该菜单可通过 Minecraft 的 游戏菜单 或 快捷操作 菜单访问。你也可以通过运行以下命令直接访问数据包的设置菜单:
/function ultimate_veinminer:setting
所有可用设置如下所述:
| 设置项 |
取值范围 |
描述 |
默认值 |
| 最大方块数 |
整数,0~2147483647 |
玩家每挖掘一个方块时,最多可以连锁挖掘多少个相同类型的方块。当 [效率模式] 开启时,此值将被忽略。 |
100 |
| 掉落模式 |
Player(玩家) / Center(中心) / Block(方块) |
决定挖掘方块时掉落的战利品物品和经验球应出现在何处,同时也适用于挖掘容器方块时存储的物品。
Player:在挖掘者脚下
Center:在触发连锁挖掘的那个被挖掘方块处
Block:在其对应的方块位置(即生成战利品后已被挖掘的方块) |
Player |
| 动画持续时间 |
整数,0~10 |
在动画中打破下一层方块之前等待的时间长度。设置为 0 可禁用动画并同时打破所有方块。 |
0 |
| 启用精准采集 |
true / false |
使用具有 "精准采集" 附魔的物品是否能触发连锁挖掘。 |
true |
| 仅限工具 |
true / false |
用于挖掘的物品是否必须具有 "minecraft:tool" 物品堆栈组件才能触发连锁挖掘(例如斧头、镐子)。 注意:如果你的主手为空,则无法触发连锁挖掘! |
true |
| 允许损坏工具 |
true / false |
是否允许在连锁挖掘过程中消耗挖掘工具的耐久度。设置为 false 以确保至少剩余 1 点耐久度。 |
false |
| 安全模式 |
None(无) /Sneak Key Bind Pressed(按住潜行键绑定) / Sneak Key Bind Not Pressed(未按住潜行键绑定) |
玩家挖掘方块时如何触发连锁挖掘。
None:始终触发
Sneak Key Bind Pressed:玩家需要按住潜行键绑定
Sneak Key Bind Not Pressed:玩家需要松开潜行键绑定 (注:这仅涉及按键的按下或松开,而非实际是否处于潜行状态。) |
None |
| 严格检查 |
true / false |
是否在连锁挖掘动画期间验证每个方块的类型。如果方块在动画开始后发生变化,则该方块不会被连锁挖掘。 |
false |
| 效率模式 |
true / false |
在动画期间逐步计算矿脉区域,可能会降低瞬时计算负载并在挖掘巨大矿脉时提高性能。在此模式下对连锁挖掘的最大方块数量没有限制。 需要 [动画持续时间] 不设置为 0! |
false |
| 进一步扩展矿脉 |
true / false |
是否允许仅共享顶点或边的方块也能被连锁挖掘。设置为 false 时,只有共享面的方块才能被连锁挖掘。 |
false |
| 伐木者 |
true / false |
加快砍倒树木后树叶腐烂的速度。 你可以分别为每个方块启用或禁用此功能。 |
false |
配置与其他功能
你还可以在数据包的设置菜单中找到以下配置。
连锁挖掘方块列表
你可以进行连锁挖掘的所有方块列表。
该列表默认包含原版 Minecraft 中的大多数矿石和原木。你可以随时 向此列表添加方块(通过输入方块 ID)或 从此列表中移除方块。
从这里你可以访问每个方块的 方块菜单,其中包含详细信息。在这里你可以 修改方块的挖掘战利品(如果数据包未能正确生成),为此方块启用功能 或 重置其监听列表,这对于触发连锁挖掘至关重要。
还有其他一些有用功能,例如 将你的目标方块(你正在注视的方块)添加到列表,或自动 重新生成所有方块挖掘战利品的缓存信息。
接受的工具
你可能用于触发连锁挖掘的所有物品。可以是物品 ID 或标签。
有两种类型的“接受的工具”:
· 全局接受的工具列表(在设置菜单中)适用于所有方块。
· 特定方块的接受的工具(在每个方块的 方块菜单 中)仅适用于该方块。如果为空,则全局列表适用于该方块。
如果对某个方块应用了空列表,则任何物品都可以触发该方块的连锁挖掘。此列表通常应包含该方块的挖掘工具,但你也可以添加其他物品。请注意 [仅限工具] 设置也会对此产生影响,因此你可能需要将其设置为 false 以便“接受的工具”能正常工作。
高级设置
一些有用的功能。
你可以手动设置一个测试位置。测试位置是一个方块坐标,用于生成方块掉落物的缓存信息。数据包本应能自行找到合适的位置;若之前未能成功定位,系统会要求你输入一个测试位置。该坐标应当满足以下条件:加载速度快(通常位于你当前位置附近)、随时加载都安全,且当前为空气方块。
其他功能包括临时禁用矿脉挖掘功能,或完全卸载该数据包。
您可以自行探索该数据包,并发现所有实用功能。
命令
以下是一些方便您使用的命令。
打开数据包信息菜单
/function ultimate_veinminer:help
打开设置菜单
/function ultimate_veinminer:setting
临时禁用脉状矿脉挖掘功能
/function ultimate_veinminer:disable
启用脉状矿脉挖掘功能
/function ultimate_veinminer:enable
卸载数据包
/function ultimate_veinminer:uninstall
注意事项与技巧
- 触发脉状矿脉挖掘需要满足一些条件。如果未如预期触发挖掘,请检查以下条件:
- 在方块被开采后出现了掉落物实体(您的挖掘工具“适合掉落”且游戏规则已正确设置)
- 您的主手持有物品
- (当 [仅工具模式] 设置为
true)该物品拥有 "minecraft:tool" 物品堆组件,通常适用于斧头和镐等挖掘工具
- 该物品没有 "精准采集" 附魔,或者 [启用精准采集] 设置为
true
- 该物品在您开采的方块类型对应的 接受的工具 列表中
- 根据 [安全模式] 的设置,按下或松开潜行键绑定
- 在脉状矿脉挖掘动画期间,您可以通过停止手持用于挖掘的工具来中断过程。 例如,简单地切换到另一个快捷栏槽位。这是为了尽量减少意外触发脉状矿脉挖掘造成的损害。
- 避免对容器方块(例如箱子、木桶)进行脉状矿脉挖掘,以防存储的物品被删除,尽管这在技术上不应该发生。
- 您的饥饿值会下降,并且您使用的工具会受到损坏,就像您逐个开采所有这些方块一样。挖掘工具的所有附魔和数据组件也会被考虑在内,影响消耗的耐久度和从开采方块中获得的掉落物。
- 诸如 "经验修补" 之类的机制仅在脉状矿脉挖掘执行完毕后才会生效。
- 避免使用具有耐久度但不是工具的物品(例如头盔)来触发脉状矿脉挖掘,以防出现意外的耐久度损耗。
- 不要将具有不一致的开采掉落物或无开采掉落物的方块(例如树叶)添加到 VeinMiner 方块列表中,这些方块无法(总是)触发脉状矿脉挖掘。
- 切勿单次开采过多的方块! 请使用 [最大方块数] 设置限制最大方块数量。单次开采过多的方块可能导致意外行为和巨大的延迟。
· 即使在开采少量矿脉时也出现错误,请尝试将游戏规则 "maxCommandChainLength" 或 "minecraft:max_command_sequence_length" 设置为更大的值。
VeinMiner is a function that enables you to break a bunch of same blocks attached to each other by mining just one of them. This data pack implements the function with vanilla commands, making your gameplay more comfortable even in vanilla versions of Minecraft.
Features
- Fully customizable from blocks which can be vein-mined to tools that can trigger vein-mining for a certain type of block.
- User-friendly configuration menu.
- Compatible with nearly all vanilla and modded blocks.
- Various settings to achieve best experience, including safety measures to prevent you from accidentally vein-mining your masterpiece.
- Simulation of tool enchantment's effect as well as hunger and tool durability's behavior, like real mining.
- Vein-mining animation that gradually breaks the blocks in the vein layer by layer.
- Multiplayer compatibility.
This data pack uses the experimental feature: Dialog, you may need to rejoin the world or restart the server after (un)installing the data pack!
You need to download the required language resource pack and install it. The data pack is then ready-to-use. You may also read the "Notes & Tips" part at the bottom if you ran into a problem or report an issue. If you want to customize the data pack, please read the following information.
Settings
You can find the settings menu in the data pack's info menu, which you can access from Minecraft's Game Menu or Quick Actions menu. You can also directly access the data pack's settings menu by running command:
/function ultimate_veinminer:setting
All available settings are described below:
| Setting |
Value Range |
Description |
Default Value |
| Max Blocks |
integer, 0~2147483647 |
How many blocks of the same type at most can be vein-mined for each block the player has mined. This value is ignored when [Efficiency Mode] is turned on. |
100 |
| Drop Mode |
Player / Center / Block |
Where loot items and experience orbs from mining blocks should appear, also applies to stored items when mining container blocks.
Player: at the miner's feet
Center: at the mined block which triggered vein-mining
Block: at their corresponding block (which generated the loot after being mined) |
Player |
| Animation Duration |
integer, 0~10 |
How long to wait before breaking the next layer of blocks during animation. Set to 0 to disable animation and break all blocks simultaneously. |
0 |
| Enable Silk Touch |
true / false |
Whether using items with "Silk Touch" enchantment can trigger vein-mining. |
true |
| Tool Only |
true / false |
Whether the item you use for mining needs to have a "minecraft:tool" item stack component in order to trigger vein-mining (e.g. axes, pickaxes). Note: Vein-mining cannot be triggered when you have nothing in your main hand! |
true |
| Allow Break Tool |
true / false |
Whether it is allowed to use up the durability of your mining tool when vein-mining. Set to false to ensure at least 1 durability left. |
false |
| Safety Mode |
None /Sneak Key Bind Pressed / Sneak Key Bind Not Pressed |
How can vein-mining be triggered when a player mines a block.
None: always trigger
Sneak Key Bind Pressed: player needs to press the key bind for Sneak
Sneak Key Bind Not Pressed: player needs to release the key bind for Sneak (Note: This is just about pressing or releasing the key bind, not actually sneaking or not.) |
None |
| Strict Check |
true / false |
Whether to verify the type of every block before breaking it during vein-mining animation. The block will not be vein-mined if it has been changed after the animation started. |
false |
| Efficiency Mode |
true / false |
Gradually calculate vein area during animation, may reduce instantaneous calculational load and improve performance when mining huge veins. There is no limit on the maximal count of vein-mined blocks in this mode. Requires [Animation Duration] not set to 0! |
false |
| Further Vein |
true / false |
Whether blocks which only share a vertex or an edge can also be vein-mined. When set to false, only blocks which share a face can be vein-mined. |
false |
| TreeCapitator |
true / false |
Speed up the decay of leaves after chopping down a tree. You can enable or disable this feature for each block separately. |
false |
Configuration & Other Functions
You can also find the following configurations in the data pack's settings menu.
VeinMiner Block List
The list of all blocks that you can vein-mine.
This list by default contains most of the ores and logs in vanilla Minecraft. You can add blocks to this list (by entering block ID) or remove blocks from this list at any time.
From here you can access the block menu of each block, which contains detailed information. Here you can modify the block's mine loot (if the data pack failed to generate it correctly), enable features for this block or reset its watch lists, which is crucial for triggering vein-mining.
There are also other useful functions such as adding your targeted block (the block you are looking at) to the list or automatically regenerate cached information of all block's mine loot.
Accepted Tool
All the items you may use to trigger vein-mining. Can be item IDs or tags.
There are 2 types of Accepted Tool:
· The Global Accepted Tool list (in the settings menu) applies to all blocks.
· The Accepted Tool for a block (in the block menu of each block) applies only to this block. If it is empty, then the global list is applied to this block.
If an empty list is applied to a block, then any item can trigger vein-mining for this block. This list should typically contains mining tools for this block, but you can also add other items. Note that [Tool Only] setting also has an effect on top of this, so you may set it to false in oder that the Accepted Tool functions properly.
Advanced Settings
Some useful functions.
You can manually set a Test Position. The Test Position is a block coordinate used for generating cached information of block's mine loot. The data pack should be able to find a position by itself, when it failed to find one before using it, you will be asked to input a Test Position. You should enter a coordinate that can be loaded in a short time (normally near your current location), is safe to be loaded at any time and is currently an air block.
Other functions like temporarily disable vein-mining function or uninstall the data pack completely.
You may explore the data pack and discover all the practical functions on your own.
Commands
Here are some commands you can use for your own convenience.
Open data pack info menu
/function ultimate_veinminer:help
Open settings menu
/function ultimate_veinminer:setting
Temporarily disable vein-mining function
/function ultimate_veinminer:disable
Enable vein-mining function
/function ultimate_veinminer:enable
Uninstall data pack
/function ultimate_veinminer:uninstall
Notes & Tips
- There are a few requirements for triggering vein-mining. If vein-mining is not triggered as expected, check the following conditions:
- Loot items entity appears after you mined the block (your mining tool is "correct for drop" and game rules are properly set)
- You are holding an item in your main hand
- (When [Tool Only] setting is
true) The item has a "minecraft:tool" item stack component, typically for mining tools like axes and pickaxes
- The item doesn't have "Silk Touch" enchantment or [Enable Silk Touch] setting is
true
- The item is on the list of Accepted Tool for the type of the block you've mined
- You press or release your sneak key bind according to [Safety Mode] setting
- During vein-mining animation, you can interrupt the process by stop holding the tool you used for mining. For example, simply switch to another hotbar slot. This is meant to minimize the damage caused by accidentally triggering vein-mining.
- Avoid vein-mining container blocks (e.g. chests, barrels) in case the stored items get deleted, although this shouldn't technically happen.
- Your hunger bar will decrease and the tool you use will get damaged as if you mined all these blocks one by one. All enchantments and data components of the mining tool will also be taken into account, affecting the amount of durability consumed and loot you get from mining blocks.
- Mechanics like the enchantment "Mending" will only be applied after the vein-mining has been executed.
- Avoid mining blocks with items that has durability but not tool (e.g. helmets) to trigger vein-mining in case of unexpected durability drop.
- Don't add blocks that have inconsistent mine loot or no mine loot (e.g. leaves) to VeinMiner Block List, vein-mining cannot (always) be triggered for these blocks.
- NEVER mine too many blocks in a single vein! Limit the maximal block count using [Max Blocks] setting. Mining too many blocks in a single vein may lead to unexpected behaviors and huge latency.
· If errors occur even when mining a small vein, try setting the game rule "maxCommandChainLength" or "minecraft:max_command_sequence_length" to a bigger value.
评论 0
登录后参与评分
还没有评论,来抢沙发吧