HereGravity
一款高端、高度优化的 Paper Minecraft 插件,专为选择性方块重力物理效果和即时树冠树叶破碎设计!自动为原木、地形和结构添加基于自定义重力的物理效果,同时享受超快的树叶腐烂速度。
功能特性
-
选择性配置驱动的重力效果:
- 将沙/砾石般的掉落方块物理效果应用于 Minecraft 中的任何方块。
- 完全支持标准材质类型(例如
TERRACOTTA、CLAY)以及原生 Minecraft 标签(例如 #logs、#dirt、#leaves)。
-
动态“破碎”树冠系统:
- 厌倦了砍伐树木时树叶永远漂浮在空中的情况吗?
- 自动拦截方块物理更新,并对距离树干超过 6 格的任何树叶触发自然、即时的破碎效果(除非由玩家永久放置的树叶)。
-
“落地破碎”着陆拦截器:
- 配置特定的受重力影响的方块在着陆时破碎而不是自行放置。
- 取消碰撞时的方块放置,并立即将其作为原版可收集物品掉落至地面(非常适合沉浸式采集或自定义方块掉落)。
-
完全后台运行且无缝衔接:
- 无需任何活跃的玩家命令或复杂的权限设置。
- 异步高效地处理方块下落,保持服务器 Ticks 率如黄油般顺滑。
如何配置
所有配置均在标准的 config.yml 文件中处理。
默认配置
# HereGravity Configuration
# Use standard block names (e.g., TERRACOTTA, CLAY)
# Or use Minecraft tags by adding a '#' (e.g., '#logs', '#dirt', '#leaves')
gravity-list:
'#logs':
breaks-on-fall: true
'#dirt':
breaks-on-fall: false
TERRACOTTA:
breaks-on-fall: false
CLAY:
breaks-on-fall: true
SNOW_BLOCK:
breaks-on-fall: true
GLOWSTONE:
breaks-on-fall: true
配置选项
breaks-on-fall (true / false):
- 如果为
true,掉落的方块在触地时会立即破碎并以物品堆的形式掉落。
- 如果为
false,掉落的方块会正常着陆并重新固化为已放置的方块。
从源码构建
确保已配置 Java 21 和 Gradle。使用提供的 Gradle Wrapper 进行构建:
./gradlew build
编译好的、可用于部署的 JAR 文件位于:
build/libs/HereGravity-1.0.1.jar
许可证
本项目采用 GNU General Public License v3.0 许可。
HereGravity
A premium, highly-optimized Paper Minecraft plugin for selective block-gravity physics and instant canopy leaf shattering! Add custom weight-based physics to logs, terrain, and structures automatically, while enjoying ultra-fast leaf decay.
Features
-
Selective Config-Driven Gravity:
- Apply sand/gravel-like falling block physics to any block in Minecraft.
- Fully supports both standard material types (e.g.,
TERRACOTTA, CLAY) and native Minecraft Tags (e.g., #logs, #dirt, #leaves).
-
Dynamic "Shatter" Canopy System:
- Tired of floating leaves hanging in the air forever when harvesting trees?
- Automatically intercepts block physics updates and triggers natural, instant leaf shattering for any leaves with a distance greater than 6 blocks from a tree trunk (unless placed persistently by players!).
-
"Breaks-on-Fall" Landing Interceptor:
- Configure specific gravity-affected blocks to shatter on landing instead of placing themselves.
- Cancel block placement upon impact and drop the block immediately as a vanilla collectible item on the ground (ideal for immersive harvesting or custom block drops).
-
Completely Background & Seamless:
- Requires zero active player commands or complex permission setups.
- Processes block falls asynchronously and efficiently, keeping server tick rates buttery smooth.
How to Configure
All configurations are handled inside the standard config.yml file.
Default Configuration
# HereGravity Configuration
# Use standard block names (e.g., TERRACOTTA, CLAY)
# Or use Minecraft tags by adding a '#' (e.g., '#logs', '#dirt', '#leaves')
gravity-list:
'#logs':
breaks-on-fall: true
'#dirt':
breaks-on-fall: false
TERRACOTTA:
breaks-on-fall: false
CLAY:
breaks-on-fall: true
SNOW_BLOCK:
breaks-on-fall: true
GLOWSTONE:
breaks-on-fall: true
Configuration Options
breaks-on-fall (true / false):
- If
true, the falling block will immediately break and drop as an item stack when it hits the ground.
- If
false, the falling block will land normally and solidifies back into a placed block.
Building from Source
Ensure you have Java 21 and Gradle configured. Build using the provided Gradle wrapper:
./gradlew build
The compiled, deployment-ready JAR will be located at:
build/libs/HereGravity-1.0.1.jar
License
This project is licensed under the GNU General Public License v3.0.
评论 0
登录后参与评分
还没有评论,来抢沙发吧