TreeCutter
TreeCutter 会在玩家潜行并破坏原木时砍伐相连的树木。它在一个 Jar 文件中处理工具耐久度、掉落物、冷却时间、黑名单、统计数据、可选的 WorldGuard 检查以及 PlaceholderAPI 占位符。
功能
- 潜行破坏砍树,支持配置原木和树叶材质。
- 扫描相连原木,具有大小和扩散范围限制。
- 处理工具耐久度,模拟“效率”附魔效果,并提供二次破坏确认。
- 可配置的掉落物、原版风格掉落物和树叶掉落物。
- 追踪玩家放置和命令放置的原木。
- 每个玩家的开关切换、UUID 黑名单以及队列通知。
- 带有木材类型细分的统计数据。
- 可选的 WorldGuard 和 PlaceholderAPI 支持。
- 适用于 Bukkit 风格服务器和 Folia 的运行时调度器。
要求
- Java 17 或更高版本。
- 兼容 Bukkit 的服务器。Jar 文件声明了
api-version: '1.20'和folia-supported: true。 - 可选:WorldGuard、PlaceholderAPI、LuckPerms。
安装
- 停止服务器。
- 将
TreeCutter-universal.jar放入plugins/目录。 - 启动服务器。
- 编辑
plugins/Tree_Cutter/config.yml和messages.yml。 - 更改配置或消息后,使用
/tcadmin reload重新加载。
命令
/tc [on|off|status|help]— 切换或查看 TreeCutter 状态。/tcadmin [on|off|server|status|reload|blacklist|check|help]— 管理员控制和统计数据。/tcmsg— 管理警告消息。
权限
treecutter.use— 使用砍树功能。treecutter.command.tc— 使用/tc。treecutter.command.tcadmin— 使用/tcadmin。treecutter.command.tcmsg— 使用/tcmsg。treecutter.admin.bypass— 绕过区域和黑名单限制。
配置
主要选项位于 plugins/Tree_Cutter/config.yml 中:
enabled— 全局开关。behavior.sneak-required— 是否需要潜行才能砍树。behavior.require-axe— 是否需要斧头。behavior.cooldown-seconds— 每位玩家的冷却时间(秒)。behavior.max-tree-size— 扫描限制。drops.*— 原木、树叶和原版掉落行为。worldguard.enabled— 启用区域检查。update-checker.enabled— 在启动时检查 Modrinth 以获取更新。
PlaceholderAPI
%timber_status% 报告该玩家是否启用了砍树功能。
兼容性证据
- CI 检查在 Minecraft 1.20.1 和 Java 17 下测试 Paper、Purpur、Spigot 和 Folia。
- 本地启动检查已在 Paper 1.21.11 上通过。
链接
- 源码:
- 问题反馈:
- 更新日志:
许可证:CC BY-NC 4.0。
TreeCutter
TreeCutter fells connected trees when a player sneaks and breaks a log. It handles tool durability, drops, cooldowns, blacklists, statistics, optional WorldGuard checks, and PlaceholderAPI placeholders in one jar.
Modrinth · Source · Report a bug
Features
- Sneak-and-break tree felling with configurable log and leaf materials.
- Connected-log scanning with size and spread limits.
- Tool durability handling, modeled Unbreaking, and second-break confirmation.
- Configurable drops, vanilla-style drops, and leaf drops.
- Player-placed and command-placed log tracking.
- Per-player toggles, UUID blacklist, and queued notices.
- Statistics with wood-type breakdowns.
- Optional WorldGuard and PlaceholderAPI support.
- Runtime schedulers for Bukkit-style servers and Folia.
Requirements
- Java 17 or newer.
- Bukkit-compatible server. The jar declares
api-version: '1.20'andfolia-supported: true. - Optional: WorldGuard, PlaceholderAPI, LuckPerms.
Install
- Stop the server.
- Put
TreeCutter-universal.jarinplugins/. - Start the server.
- Edit
plugins/Tree_Cutter/config.ymlandmessages.yml. - Use
/tcadmin reloadafter changing config or messages.
Commands
/tc [on|off|status|help]— toggle or inspect TreeCutter./tcadmin [on|off|server|status|reload|blacklist|check|help]— admin controls and statistics./tcmsg— manage warning messages.
Permissions
treecutter.use— use tree felling.treecutter.command.tc— use/tc.treecutter.command.tcadmin— use/tcadmin.treecutter.command.tcmsg— use/tcmsg.treecutter.admin.bypass— bypass region and blacklist restrictions.
Configuration
Main options live in plugins/Tree_Cutter/config.yml:
enabled— global switch.behavior.sneak-required— require sneak to cut.behavior.require-axe— require an axe.behavior.cooldown-seconds— per-player cooldown.behavior.max-tree-size— scan limit.drops.*— log, leaf, and vanilla drop behavior.worldguard.enabled— enable region checks.update-checker.enabled— check Modrinth for updates at startup.
PlaceholderAPI
%timber_status% reports whether tree cutting is enabled for the player.
Compatibility evidence
- CI checks Paper, Purpur, Spigot, and Folia on Minecraft 1.20.1 with Java 17.
- Local startup check passed on Paper 1.21.11.
Links
- Source:
- Issues:
- Changelog:
License: CC BY-NC 4.0.
下载 Tree Cutter
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Tree Cutter
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Tree Cutter
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Tree Cutter
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Tree Cutter
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Tree Cutter
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Tree Cutter
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
新增功能:
- 为 Paper、Purpur、Spigot 和 Folia 添加了跨平台兼容性工作流,使用固定的官方构建版本及校验和。
- 基于
spigot-api:1.20.1的 Bukkit API 编译基线。 - 针对生命周期、命令、权限、配置、监听器、命令可见性以及树木砍伐统计数据的 JUnit 5 和 MockBukkit 测试。
/tcadmin server [on|off]和/tcadmin status [player]命令,附带专用权限和 Tab 补全功能。- 支持区域感知日志(region-aware log)和树叶(leaf work)的 Folia 感知调度适配器。
- 通过 Paper/Spigot 反射机制和聊天回退功能实现的运行时动作栏(action-bar)支持。
- README 中嵌入了游戏玩法剪辑视频。
变更内容:
- 版本号统一由
gradle.properties中的pluginVersion定义,并渲染至plugin.yml和 jar 清单文件中。 - README 文档补充了版本管理、发布说明、兼容性测试及必需的状态检查流程。
- 构建输出仍保持为单个
TreeCutter-universal.jar文件。
修复问题:
- 工具耐久度现在通过其命名空间键(namespaced key)正确解析“经验修补”(unbreaking)附魔效果。
- 若未成功砍断任何原木,冷却时间将重置;统计数据仅在确认成功砍断后才被记录。
- 定时移除树叶逻辑在移除前会重新检查方块身份及附近是否存在原木。
- 通过命令放置的原木追踪逻辑已忽略被取消的
setblock/fill事件。 - 配置与玩家状态更新现已线程安全;
/tcadmin reload命令通过全局调度器执行。 - 当未找到兼容的 Modrinth 发布版本时,更新检测器会输出清晰的提示信息。
- README 中损坏的横幅图片已替换为标准 Platform 和 Modrinth 徽章。
TreeCutter v3.0.0 是一个重大更新,包含完全重制的插件、新增命令以及改进的功能。
- 添加了树叶自然腐烂机制
- 完全更新了插件
- 新增了多个命令
- 提升了整体性能与稳定性
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
使床在所有维度中爆炸的模组
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
评论 0
登录后参与评分
还没有评论,来抢沙发吧