Axe To The Max 是一款适用于 Minecraft Forge 1.20.1 的伐木模组,为游戏带来智能、公平且完全可配置的连根砍树功能。它支持所有树木,包括模组添加的树木(大概率支持,目前仍在开发中),并具备完整的多玩家联机支持和针对每位玩家的独立设置。
功能仍在完善中,部分功能可能无法完美运行!
工作原理
按住 潜行键 + 破坏任意原木,整棵树将一次性倒下。
该模组通过 #minecraft:logs 标签执行 BFS 泛洪填充算法,因此无需任何额外配置即可作用于原版和所有模组添加的树木。
玩家放置的原木保护
您自己放置的原木会被永久标记为玩家放置。
砍树工具永远不会穿透这些被标记的原木。
此机制在全局多玩家环境中生效。如果玩家 1 放置了原木,玩家 2 也无法绕过此限制。
平衡性设置
两项可选的平衡性机制确保该模组在生存服务器上保持平衡:
每根原木消耗耐久度 - 斧头每砍断一根原木就会损失 1 点耐久度,而不是总共只损失 1 点。砍断一棵 14 格高的树需要消耗 14 点耐久度,与手动逐块破坏相同。
每根原木的破坏时间 - 砍树所需时间与使用当前斧头等级手动逐块破坏每根原木所需的时间成正比。例如,用木斧砍一棵 14 格高的树需要正常破坏时间的 14 倍。切换到铁斧会按比例缩短时间。
float RequiredTicks = LogCount / BreakSpeed * 20f;
if (ElapsedTicks < RequiredTicks) event.setCanceled(true);
试图先破坏一半原木再切换状态以触发砍树功能是无效的,计时器从您的第一次敲击开始计算。
针对每位玩家的配置
运行 /config 命令可在游戏内打开设置界面。
每项设置均按玩家单独保存,并在重启和会话之间持久化。
所有配置选项
常规
| 设置项 |
默认值 |
描述 |
| Tree Chopper |
ON |
所有砍树功能的总开关 |
| Require Axe |
OFF |
仅在手持斧头时触发 |
| Protect Player Logs |
ON |
跳过标记为玩家放置的原木 |
| Multiple Tree Support |
ON |
通过标签支持模组添加的树木 |
游戏玩法
| 设置项 |
默认值 |
描述 |
| Auto Replant |
ON |
砍树后在底部自动种植树苗 |
| Break Leaves |
ON |
立即破坏周围所有树叶 |
| Drop Saplings |
ON |
树叶破碎时掉落树苗 |
| Drop Apples |
ON |
树叶破碎时掉落苹果 |
平衡性
| 设置项 |
默认值 |
描述 |
| Durability Per Log |
ON |
斧头每砍断一根原木损失 1 点耐久度,而非总共 1 点 |
| Break Time Per Log |
OFF |
砍树耗时根据原木数量和斧头等级按比例计算 |
多玩家联机
- 所有数据通过
SavedData 存储在服务器端,服务器端无需安装客户端模组
- 玩家放置的原木标签在所有玩家间全局共享
- 配置在登录时及每次保存时同步至客户端
- 无竞态条件,所有方块操作均在服务器线程上运行
兼容性
所有原版树木
使用 #minecraft:logs 和 #minecraft:leaves 标签的模组添加树木(几乎通用)
无树叶的死树
多玩家服务器
Axe To The Max is a tree-chopper mod for Minecraft Forge 1.20.1 that brings smart,
fair, and fully configurable vein-chopping to your game. Works on every tree, including modded ones (probably, it's still work-in-progress), with full multiplayer support and per-player settings.
FEATURES ARE STILL WIP, SOME OF THEM DO NOT WORK PERFECTLY!
How It Works
Hold Sneak + break any log and the entire tree comes down at once.
The chopper uses a BFS flood-fill through #minecraft:logs, meaning it works on
every vanilla and modded tree without any extra configuration.
Player-Placed Log Protection
Logs you place yourself are permanently tagged as player-placed.
The chopper will never vein-chop through them.
This works globally in multiplayer. If player 1 placed the log,
player 2 can't bypass it either.
Fairness Settings
Two optional fairness mechanics keep the mod balanced on survival servers:
Durability Per Log - the axe loses 1 durability per log chopped,
not just 1 total. A 14-log tree costs 14 durability, same as breaking manually.
Break Time Per Log - chopping takes as long as it would to break
each log manually with your current axe tier. A wooden axe on a 14-log
tree takes 14× the normal break time. Switching to iron speeds it up proportionally.
float RequiredTicks = LogCount / BreakSpeed * 20f;
if (ElapsedTicks < RequiredTicks) event.setCanceled(true);
Trying to break a log halfway and then shift to trigger the chopper won't work,
the timer starts from your very first hit.
Per-Player Config
Run /config to open the settings screen in-game.
Every setting is saved per-player and persists across restarts and sessions.
All Config Options
General
| Setting |
Default |
Description |
| Tree Chopper |
ON |
Master toggle for all chopper features |
| Require Axe |
OFF |
Only trigger when holding an axe |
| Protect Player Logs |
ON |
Skip logs tagged as player-placed |
| Multiple Tree Support |
ON |
Works on modded trees via tags |
Gameplay
| Setting |
Default |
Description |
| Auto Replant |
ON |
Replants a sapling at the base after chopping |
| Break Leaves |
ON |
Instantly breaks all nearby leaves |
| Drop Saplings |
ON |
Leaves drop saplings when broken |
| Drop Apples |
ON |
Leaves drop apples when broken |
Fairness
| Setting |
Default |
Description |
| Durability Per Log |
ON |
Axe loses 1 durability per log, not 1 total |
| Break Time Per Log |
OFF |
Chopping takes proportional time based on log count and axe tier |
Multiplayer
- All data stored server-side via
SavedData, no client mod required for servers
- Player-placed log tags are shared globally across all players
- Config syncs to client on login and on every save
- No race conditions, all block operations run on the server thread
Compatibility
All vanilla trees
Modded trees using #minecraft:logs and #minecraft:leaves (nearly universal)
Dead trees with no leaves
Multiplayer servers
评论 0
登录后参与评分
还没有评论,来抢沙发吧