TreeChopper 会在用斧头破坏原木时砍倒整棵相连的树。
手持斧头破坏任意原木,树木连同树叶一起倒下。树冠相互接触的树木会被一同砍倒,因此只需破坏一个方块,一整片树林就会倒下。在破坏时按住 Shift(潜行)可禁用该模组效果,以原版方式仅破坏单个方块。
每额外移除一个方块,斧头会消耗一点耐久度;若斧头损坏,则停止砍伐掉落物会根据战利品表生成,并考虑工具附魔(包括精准采集和fortune),随后合并成堆叠状态并在被破坏的方块位置掉落。
支持所有属于 #minecraft:logs 标签的方块以及 #minecraft:leaves 标签的任何物品,同时也兼容任何属于 #minecraft:axes 标签的物品,只要它们携带这些标签即可涵盖模组添加的树木和斧头。橡木、云杉、白桦、丛林、金合欢、深色橡木、红树、樱桃、苍白橡木以及下界茎干均包含在内。
触发条件
只有当以下条件全部满足时才会执行砍伐操作。如果任一条件不成立,破坏行为将与原版完全一致:
- 主手物品属于 #minecraft:axes 标签
- 被破坏的方块属于 #minecraft:logs 标签
- 玩家未处于潜行状态
- 配置文件中 enabled 为 true
配置文件
config/treechopper-common.toml,首次运行后生成。
| Key |
含义 |
范围 |
默认值 |
| enabled |
开启或关闭模组 |
true 或 false |
true |
| maxBlocks |
每次破坏所移除的方块数量(不包括玩家直接破坏的那个方块) |
1 到 8192 |
512 |
在 Forge 和 NeoForge 上,也可以通过模组界面中的“配置”按钮访问该文件。Fabric 没有配置界面,因此需要直接在文件中编辑数值。
依赖要求
- Minecraft 26.1, 26.1.1, 26.1.2 或 26.2
- Forge 62.0.9 或更高版本,NeoForge 26.1.2.97 或更高版本,或者 Fabric Loader 0.19.3 或更高版本
- 在 Fabric 上:Fabric API
- Java 25
下载链接
| Loader |
Minecraft |
File |
| Forge |
26.1, 26.1.1, 26.1.2 |
treechopper-26.1-2.0.2.jar |
| Forge |
26.2 |
treechopper-26.2-2.0.2.jar |
| NeoForge |
26.1.2 |
treechopper-neoforge-26.1-2.0.2.jar |
| NeoForge |
26.2 |
treechopper-neoforge-26.2-2.0.2.jar |
| Fabric |
26.1, 26.1.1, 26.1.2 |
treechopper-fabric-26.1-2.0.2.jar |
| Fabric |
26.2 |
treechopper-fabric-26.2-2.0.2.jar |
这六个构建版本共享相同的砍伐逻辑,因此在不同加载器之间行为完全一致,唯一的区别在于入口点不同。
限制说明
- 树冠相互接触的树木会被一同砍倒。这是模组的设计机制,而非缺陷;其范围由 maxBlocks 控制。
- 达到 maxBlocks 上限后,剩余部分树木仍会保留。
- 砍伐会在已加载区块的边缘停止,因此跨越区块边界的树木只会部分倒塌。
- 砍伐逻辑在服务端运行,因此在专用服务器上必须安装服务端模组。客户端单独安装不会产生任何效果。
- NeoForge 针对 26.1 系列的构建仅覆盖 26.1.2 版本。NeoForge 目前没有基于 26.1 的稳定构建。
- 在 Fabric 上,方块破坏事件没有监听优先级,因此在此模组之后注册的领地保护模组可能会被绕过。Forge 和 NeoForge 不受此影响。
- 在高 maxBlocks 值下的服务器 Tick 开销尚未进行测量。
TreeChopper fells the whole connected tree when a log is broken with an axe.
Break any log with an axe in hand and the tree comes down, leaves included. Trees whose canopies touch are felled together, so a cluster of trees comes down from a single break. Sneak while breaking to suppress the mod and break one block the vanilla way.
The axe loses one durability point per extra block removed, and a broken axe stops the felling. Drops are rolled from loot tables with the tool taken into account, including Fortune and Silk Touch, then merged into stacks and dropped at the block that was broken.
Works with any block from the #minecraft:logs and #minecraft:leaves tags and any item from the #minecraft:axes tag, so modded trees and modded axes are covered as long as they carry those tags. Oak, spruce, birch, jungle, acacia, dark oak, mangrove, cherry, pale oak and the nether stems are all included.
Trigger conditions
Felling happens when all of these hold. If any one fails, breaking behaves exactly like vanilla.
- the item in the main hand is in the #minecraft:axes tag
- the broken block is in the #minecraft:logs tag
- the player is not sneaking
- enabled is true in the config
Configuration
config/treechopper-common.toml, written on first run.
| Key |
Meaning |
Range |
Default |
| enabled |
Turns the mod on and off |
true or false |
true |
| maxBlocks |
Blocks removed per break, not counting the one broken by the player |
1 to 8192 |
512 |
On Forge and NeoForge the file is also reachable from the config button on the mods screen. Fabric has no config screen, so values are edited in the file.
Requirements
- Minecraft 26.1, 26.1.1, 26.1.2 or 26.2
- Forge 62.0.9 or later, NeoForge 26.1.2.97 or later, or Fabric Loader 0.19.3 or later
- On Fabric: Fabric API
- Java 25
Downloads
| Loader |
Minecraft |
File |
| Forge |
26.1, 26.1.1, 26.1.2 |
treechopper-26.1-2.0.2.jar |
| Forge |
26.2 |
treechopper-26.2-2.0.2.jar |
| NeoForge |
26.1.2 |
treechopper-neoforge-26.1-2.0.2.jar |
| NeoForge |
26.2 |
treechopper-neoforge-26.2-2.0.2.jar |
| Fabric |
26.1, 26.1.1, 26.1.2 |
treechopper-fabric-26.1-2.0.2.jar |
| Fabric |
26.2 |
treechopper-fabric-26.2-2.0.2.jar |
All six builds share the same felling code, so behavior is identical across loaders. Only the entry point differs.
Limitations
- Trees whose canopies touch are felled together. This is how the mod works, not a defect; maxBlocks is what bounds it.
- Reaching maxBlocks leaves the rest of the tree standing.
- Felling stops at the edge of loaded chunks, so a tree crossing that edge comes down only in part.
- The felling runs on the server, so on a dedicated server the mod must be installed on the server. A client-only install does nothing there.
- NeoForge builds for the 26.1 line cover 26.1.2 only. NeoForge has no stable build for base 26.1.
- On Fabric the block break event has no listener priorities, so a claim protection mod registering after this one is bypassed. Forge and NeoForge are unaffected.
- Server tick cost at high maxBlocks values has not been measured.
评论 0
登录后参与评分
还没有评论,来抢沙发吧