TreeCut Tool: Remove a Full Tree Without Affecting Nearby Trees

未关闭
#2,963 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
冷清
技术栈
java
领域
game-dev, tooling

调研方向

首先追踪现有的 /tool deltree 入口点,以及它如何识别可移除的方块。完成标准是:能够在安全限制内移除被点击的树,同时不影响附近的树,并且对相互接触的树冠、有根的树木、保护机制以及预览或确认行为都有明确的处理方案。

由索引模型根据 Issue 内容生成。

描述

status:pending type:feature-request
The Problem

Hello.

I would like to suggest a feature for WorldEdit/FAWE: a dedicated tool for removing an entire tree by clicking it, not only floating tree remains.

Currently, /tool deltree only removes floating tree blocks and does not work on trees that are still connected to the ground. In practice, when editing forests, it is often necessary to remove one specific tree completely: trunk, branches, leaves, and related blocks, without affecting nearby trees or builds.

A Solution

Expected behavior:

  1. The player clicks a log or leaf block.
  2. The plugin detects the connected tree cluster: logs, wood, leaves, vines, mushrooms if needed.
  3. Only that detected cluster is removed within a configurable limit.
  4. Nearby trees should not be affected unless they are directly connected.
  5. There should be a radius/block-count limit to prevent accidental removal of a large forest or wooden builds.
  6. An option like ignore-grounded=true/false would be useful.
  7. A preview/confirm mode would be useful for large trees.
Alternatives

Suggested behavior:

  1. The player clicks a log or leaf block of a specific tree.

  2. The plugin first detects the tree canopy — a connected group of leaves around the clicked point or around the nearest trunk.

  3. After detecting the canopy, the plugin searches for trunks that belong specifically to this canopy, instead of treating the entire nearby forest as one structure.

  4. The tree should not be detected simply as any connected set of logs + leaves. It should be treated as a separate structure:

    • one main canopy;
    • one or more connected trunks inside this canopy;
    • branches connected to this trunk;
    • leaves belonging to this canopy.
  5. If another tree is nearby, its leaves should not be removed if they form a separate canopy or have their own center/trunk.

  6. If the canopies of two trees touch each other, the plugin should try to separate them by the nearest trunk:

    • leaves closer to the selected trunk belong to the selected tree;
    • leaves closer to the neighboring trunk should remain;
    • ambiguous blocks may be skipped to avoid damaging the neighboring tree.
  7. Only the selected tree should be removed:

    • its trunk;
    • branches;
    • leaves assigned to its canopy;
    • vines/mushrooms if necessary.
  8. Nearby trees should not be affected, even if their leaves touch the selected tree, as long as they have a separate trunk and a separate canopy.

  9. Safety limits should be included:

    • maximum search radius;
    • maximum block count;
    • maximum trunk count;
    • protection against removing wooden builds;
    • preview/confirm mode for large trees.

Main idea: the tool should not simply detect “all connected tree blocks”. It should identify a specific tree through its own canopy and the trunk associated with that canopy. This is needed so that one tree can be removed in a dense forest without destroying nearby trees.

Anything Else?

No response

主要语言
Java
星标
3.5k
派生
981
平均合并
2 天 15 小时
30 天内合并 PR
11

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

EngineHub/WorldEdit 的其他 Issue

查看 EngineHub/WorldEdit 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。