InstaLeafDecay 图标

InstaLeafDecay

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.0.0
本资源为搬运资源,原资源地址: https://modrinth.com/mod/instaleafdecay
资源信息

Minecraft 版本: 1.18 1.18.1 1.18.2 1.19 1.19.1 1.19.2 1.19.3 1.19.4 1.20 1.20.1 1.20.2 1.20.3 1.20.4 1.20.5 1.20.6 1.21 1.21.1 1.21.2 1.21.3 1.21.4 1.21.5 1.21.6 1.21.7 1.21.8 1.21.9 1.21.10

平台: bukkit folia paper purpur spigot

标签: adventure optimization technology

资源介绍

? InstaLeafDecay

A Minecraft Spigot/Paper plugin module that allows leaves to decay instantly when logs are broken or nearby leaves decay.
This enhances tree-farming gameplay by speeding up leaf removal while respecting natural decay mechanics.


⚙️ Features

  • ? Instant leaf decay when breaking logs
  • ? Automatically breaks leaves when nearby leaves decay naturally
  • ? Prevents persistent leaves (e.g., player-placed) from decaying
  • ⚡ Lightweight and efficient — uses optimized recursive checks
  • ? Limits leaf breaking to a configurable distance internally for performance

? Installation

  1. Include this module/plugin .jar in your server’s plugins/ folder
  2. Start or reload your server
  3. Works immediately — no configuration needed

? Developer Information

Main listener class:
de.scholle.minecrafthelden.external.InstaLeafDecay.BlockBreakEventListener

Key methods & behavior:

  • onBlockBreak(BlockBreakEvent event) → Breaks leaves near broken logs instantly
  • onLeavesDecay(LeavesDecayEvent event) → Breaks nearby leaves instantly during natural decay
  • breakLeaf(Block block, boolean breakFirstBlock, Block originalBlock) → Recursively handles leaf breaking
  • isValidLeaf(Block block, Block originalBlock) → Ensures leaves are valid for decay, ignoring persistent or distant blocks

Notes:

  • Persistent leaves are ignored to prevent accidental removal of player-placed foliage
  • Uses a taxicab-distance based check to optimize performance

? Compatibility

  • ✅ Works on Spigot, Paper, and Purpur
  • ? Compatible with Minecraft 1.18+
  • ⚙️ Requires Java 17+

?‍? Author

Developed by: Scholle
Package: de.scholle.minecrafthelden.external.InstaLeafDecay


? License

This project is licensed under the Apache License 2.0.
You may use, modify, and distribute it in compliance with the terms of that license.
For more information, see: http://www.apache.org/licenses/LICENSE-2.0

下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
CrownCore

价格:0 墨喵币
下载量:0

查看详情
Jerotes Warehouse

价格:0 墨喵币
下载量:0

查看详情
/DISCORD

价格:0 墨喵币
下载量:0

查看详情
The TBU Pack

价格:0 墨喵币
下载量:0

查看详情