? ShatterLeaves:树叶即时腐烂
是否曾因为砍树后叶子迟迟不消失而感到烦躁?
ShatterLeaves 解决了这个问题。当树叶与原木失去连接时,它们会几乎瞬间腐烂,不再需要等待随机刻(random ticks)慢慢处理。
这是一个小小的改动,但能让砍树体验好得多。
⚡ 特性
近乎即时的树叶腐烂(默认:1 刻)
可配置的延迟时间(1–20 刻)
兼容原版及大多数模组树木
尊重玩家放置的(持久化)树叶
简单的游戏规则配置
对服务器和整合包安全
⚙️ 配置
使用游戏规则进行设置,因此调整起来非常简单:
ENABLED → 开启/关闭模组
DELAY → 树叶腐烂的速度(1–20 刻)
你可以通过以下命令更改这些设置:
/gamerule instant_leaf_decay_delay (1-20)
/gamerule instant_leaf_decay_enabled (true/false)
?️ 技术说明(给感兴趣的人看)
在树叶失去与原木连接时挂钩更新逻辑
检测标准腐烂条件(距离 ≥ 7,非持久化)
安排受控的刻更新,而非依赖随机刻
正常掉落物品,然后移除方块
未添加任何新内容,仅优化原版行为。
? 兼容性
支持单人游戏和多人联机
支持遵循标准行为的模组树叶
轻量级,适合大型整合包
? 许可证
MIT 协议。可在整合包或项目中随意使用。
? 作者
Xeonz
版本 1.0.0
? 最终备注
这是那种你平时不会特意去想,但一旦移除它,就会突然觉得砍树变得很慢的模组。
? ShatterLeaves : Instant Leaf Decay
Ever get annoyed waiting for leaves to disappear after cutting a tree?
ShatterLeaves fixes that. The moment leaves lose connection to logs, they decay almost instantly no more hanging around waiting for random ticks to do their thing.
It’s a small change, but it makes chopping trees feel way better.
⚡ Features
Near-instant leaf decay (default: 1 tick)
Configurable delay (1–20 ticks)
Works with vanilla + most modded trees
Respects player-placed (persistent) leaves
Simple game rule configuration
Safe for servers and modpacks
⚙️ Configuration
Uses game rules, so it’s super easy to tweak:
ENABLED → turn the mod on/off
DELAY → how fast leaves decay (1–20 ticks)
You can change these with commands using:
/gamerule instant_leaf_decay_delay (1-20)
/gamerule instant_leaf_decay_enabled (true/false)
?️ Technical Notes (for those who care)
Hooks into leaf updates when they lose log connection
Detects standard decay conditions (distance ≥ 7, not persistent)
Schedules a controlled tick instead of relying on random ticks
Drops items normally, then removes the block
No new content added just improves vanilla behavior.
? Compatibility
Works in singleplayer and multiplayer
Supports modded leaves that follow standard behavior
Lightweight and safe for large modpacks
? License
MIT use it however you want in modpacks or projects.
? Author
Xeonz
Version 1.0.0
? Final Note
This is one of those mods you don’t really think about until you remove it and suddenly trees feel slow again.
评论 0
登录后参与评分
还没有评论,来抢沙发吧