Fast Leaf Decay
砍倒一棵树后,悬浮的树冠会在几秒钟内被清除,而不是几分钟。
玩家无需安装任何东西:将其放在服务器上即可让所有人受益。不需要操作员权限。
工作原理
|
|
| 破坏原木 |
数据包会检测到这一行为,并在接下来的几秒内每半秒扫描你周围的区域 |
| 哪些树叶 |
仅清除原版自然腐朽规则下会被移除的树叶(即附近没有原木、且非玩家放置的树叶) |
| 掉落物 |
树叶以“摧毁”模式被移除,因此会像自然腐朽一样掉落物品(树苗、木棍、苹果等) |
| 玩家放置的树叶 |
你建造的树篱和装饰性树叶会保留原位 |
| 其他原因 |
每 30 秒执行一次缓慢的背景扫描,也会清除由 TNT、活塞或其他工具留下的树冠 |
涵盖该游戏版本的所有树叶类型(26.1 至 26.2 包含 11 种类型,26.3 包含 14 种类型,其中包括三种杨树类型)。
设置
/scoreboard players set #enabled flr_cfg 1 快速树叶腐朽(默认)
/scoreboard players set #enabled flr_cfg 0 原版树叶腐朽
安装
数据包 (ZIP): 将 ZIP 文件放入服务器(或单人世界)的 <world>/datapacks/ 目录中,然后运行 /reload。它可以在你正在游玩的世界中直接生效。
可选模组文件: 同一资源也提供为 Fabric 模组(适用于 26.1 至 26.3,需要 Fabric API)和 NeoForge 模组(仅适用于 26.3)。请只使用其中一种来替代 ZIP 文件,不要同时使用两者。
专为 Minecraft 26.1、26.1.1、26.1.2、26.2 和 26.3 制作。
已测试与未测试内容
已在列出的每个版本的真实专用服务器上进行测试,并与未安装该数据包的相同服务器进行对比:
- 附近没有原木的树叶会被移除,所有树叶类型均能正常清除。
- 你自己放置的树叶会保留。
- 仍然接触原木的树叶会保留。
- 被移除的树叶会掉落物品。
- 开/关开关功能正常。
- Fabric 文件在 26.1 至 26.3 上通过了相同测试,NeoForge 文件在 26.3 上通过了测试。
尚未测量,因此不作承诺:
- 从最后一根原木到树冠完全清除的确切时间,以及扫描能触及的树冠高度。
- 与其他树叶腐朽数据包相比的服务器负载。
- 与原版相比的掉落几率(物品会掉落,但未比较具体概率)。
- 测试是在无玩家参与的情况下进行的;原木挖掘触发器仅在截图场景中检查,而非通过长时间的游戏会话验证。
已知限制:
- 在 26.3 版本中,破坏杨树原木后的快速触发仅在 ZIP 数据包中有效。在 Fabric 和 NeoForge 文件中,杨树树冠仍然会被清除,但仅通过每 30 秒的缓慢扫描实现。
- NeoForge 文件仅列出适用于 26.3,因为这是唯一进行过测试的版本。
- 该数据包仅影响每个玩家周围方块区域内的树叶(向每个方向延伸 15 格,向下 4 格,向上 27 格),因此远离所有玩家的树冠只有在有人靠近时才会被清除。
更新日志
1.0.0
- 首次发布,支持 Minecraft 26.1 至 26.3(包含数据包、Fabric 模组,以及适用于 26.3 的 NeoForge 模组)。
Fast Leaf Decay
Chop a tree and the floating crown is cleared away in a few seconds instead of minutes.
Nothing for players to install: put it on the server and everyone benefits. No operator rights needed.
How it works
|
|
| Break a log |
The datapack notices it and, for a few seconds, sweeps the area around you every half second |
| Which leaves |
Only leaves that Vanilla would let decay anyway (no log within reach, not placed by a player) |
| Drops |
Leaves are removed in "destroy" mode, so they drop items like decaying leaves (saplings, sticks, apples) |
| Placed leaves |
Hedges and decorations you built stay where they are |
| Other causes |
A slow background sweep every 30 seconds also clears crowns left by TNT, pistons or other tools |
Every leaf type of the game version is covered (11 types on 26.1 to 26.2, 14 types including the three poplar types on 26.3).
Settings
/scoreboard players set #enabled flr_cfg 1 fast leaf decay (default)
/scoreboard players set #enabled flr_cfg 0 vanilla leaf decay
Installation
Data pack (ZIP): put the ZIP into <world>/datapacks/ on your server (or single-player world) and run /reload. It works on a world you already play.
Optional mod files: the same pack is also offered as a Fabric mod (26.1 to 26.3, needs the Fabric API) and as a NeoForge mod (26.3 only). Use one of them instead of the ZIP, not together with it.
Made for Minecraft 26.1, 26.1.1, 26.1.2, 26.2 and 26.3.
What was tested, and what was not
Tested on real dedicated servers of each listed version, against the same server without the pack:
- Leaves without a log nearby are removed, leaf types all clear.
- Leaves you placed yourself stay.
- Leaves that still touch a log stay.
- Items drop from the removed leaves.
- The on/off switch works.
- The Fabric file passed the same test on 26.1 to 26.3, the NeoForge file on 26.3.
Not measured yet, so no promise is made:
- The exact time from the last log to a clear crown, and how tall a crown the sweep reaches.
- Server load compared with other leaf decay packs.
- Drop chances compared with Vanilla (items drop, the rates were not compared).
- The test was run without a player; the log-mining trigger itself was checked in a screenshot scene, not with a long play session.
Known limits:
- On 26.3, the fast trigger after breaking a poplar log works in the ZIP only. In the Fabric and NeoForge files poplar crowns still clear, but only with the slow 30 second sweep.
- The NeoForge file is listed for 26.3 only, because that is the only version it was run on.
- The pack only touches leaves in a box around each player (15 blocks to each side, 4 blocks down, 27 blocks up), so crowns far from every player are cleared only when someone comes near.
Changelog
1.0.0
- First release for Minecraft 26.1 to 26.3 (data pack, Fabric mod, NeoForge mod for 26.3).
评论 0
登录后参与评分
还没有评论,来抢沙发吧