Sable: Destructive
将 Sable 的物理效果转化为物理破坏。
Sable: Destructive 是适用于 Minecraft 1.21.1 的 Sable 服务端与客户端插件(addon)。它使移动的 Sable 结构在受到碰撞和爆炸时,能够根据材料特性进行方块失效、产生飞散的物理碎片、世界陨石坑、碎屑以及电影般的冲击特效。
建造载具、飞行器、船只或移动基地,并将其撞入世界中。接触力较弱的方块会首先被压碎,坚硬的材料则能抵抗更久,脱离的碎片会保留其运动轨迹,而足够庞大的主体可以形成带有可见压力波和上升尘柱的环形陨石坑。
物理方块损坏
每一次有意义的接触都会通过相对速度、衰减后的接触质量、动能、方块质量、材料韧性以及攻击表面的硬度进行评估。
- 默认按方块计算伤害: 普通碰撞只会移除实际接触的方块,而不是在世界中凿出长长的层状痕迹。
- 材料兼容性: 柔软的草地、树叶或泥土无法摧毁黑曜石,仅仅因为后面附着了更多的软方块。
- 质量杠杆上限: 大型结构撞击力度更大,但质量不能为脆弱的接触面提供无限的力量。
- 攻击者自损: 当软质投射物击中硬墙时,投射物可能会侵蚀,而墙壁得以幸存。
- 低速保护: 从大约两个方块高度掉落的单个石头方块会弹起或停止,而不是无限制地向下钻孔。
- 有限普通材料: 石头、金属、黑曜石、下界合金和强化方块具有抗性,并非无敌。成比例的高能碰撞仍然可以破坏它们。
- 受保护的基础设施: 基岩、屏障、命令方块、结构方块和传送门基础设施故意保持不可破坏。
可以为更具破坏性的服务器启用可选的穿透和集群分离功能。穿透受能量限制,需要极高的速度,并设有上限以防止隧道效应。
两种破坏结果
当方块失效时,Sable: Destructive 会根据材料和冲击选择适当的结果:
- VANISH(消失): 脆性或严重过载的方块粉碎成有纹理的尘土、砂砾和碎片,而不会让世界充满掉落物方块物品。
- DETACH(分离): 合适的方块作为独立的 Sable 物理体剥离,保持其惯性,翻滚并与环境发生碰撞。
容器内的物品仍可释放,而不安全的方块实体分离路径会使用更安全的破坏结果。
巨型着陆
大型下落的 Sable 主体在系统确认真实地形接触后,会产生多阶段冲击:
- 明亮的接触闪光标记碰撞发生的瞬间。
- 尘状的冲击环和更快的半透明压力前沿在地面上扩散。
- 物理岩石和土壤碎片向上发射,在重力作用下落下并在地形上反弹。
- 湍流的尘柱从陨石坑上方升起,随着不透明度降低而扩散。
- 延迟的裙边灰尘和二次碎屑沉降在冲击点周围。
- 分层的声音、地面隆隆声和破裂声传达了撞击的规模。
- 距离缩放相机和视野震动带来强烈的冲击力,随后是较慢的震颤。
陨石坑半径、深度、实体击退、特效密度和相机移动都随冲击程度缩放,并保持界限以确保游戏稳定性。
自定义视觉管线
该插件包含九个专用的粒子着色器:
- 结构碎裂
- 有纹理的尘土
- 地面冲击波
- 火花
- 接触闪光
- 边界砂砾
- 体积冲击羽流
- 压力波
- 多面碎石
尘土和碎屑使用 Minecraft 的世界碰撞检测。附加在移动的 Sable 子层级上的效果在本地空间中模拟,以便它们随结构一起移动,而不是出现在天空中无关的位置。
专为多人游戏设计
重型冲击使用紧凑的事件数据包。服务器发送一次冲击位置、半径、严重程度和确定性种子;每个附近的客户端都在本地构建完整的视觉序列。
性能保护措施包括:
- 基于距离的视觉 LOD
- 尊重 Minecraft 的全局、减少和最小粒子设置
- 每刻共享的客户端粒子预算
- 并发冲击序列限制
- 服务端特效和破坏预算
- 空间和时间的特效去重
- 在安全的时间刻度边界延迟 Sable 变异
仅客户端的屏幕和着色器与专用服务器代码隔离。
配置和命令
操作员可以使用以下命令打开实时配置界面:
/sable-dv config panel
别名 /sable config panel 也可用。
其他命令:
/sable-dv on
/sable-dv off
/sable-dv config reset
控制面板控制伤害闸门、自损、穿透、分离行为、冲击波半径、陨石坑深度、击退、史诗级冲击效果、相机震动和粒子密度。设置保存在 config/sabledestructive-common.toml 中。
命令和服务端面板更改需要操作员权限等级 2。
要求
- Minecraft 1.21.1
- NeoForge 21.1.235+
- Sable 2.0.3+
- Java 21
在客户端和服务端都安装此模组。还必须安装 Sable 及其所需的依赖项。
兼容性说明
- 专为 Sable 2.x 物理子层级设计。
- 原版 TNT、苦力怕、末影水晶和其他爆炸可以通过相同的受保护破坏管道损坏 Sable 结构。
- 未知的模组方块接收保守的有限默认值,以免意外变得无敌。
- 如果服务器希望将破坏限制在 Sable 结构内,可以禁用世界地形损坏。
- 更新后完全替换旧版本并重启 Minecraft;不要热插拔 JAR 文件。
致谢
- 代码:Xylos_Official
- 视觉效果:Viaquelt
- Sable 物理引擎和 API:ryanhcode
根据 MIT 许可证授权。
Sable: Destructive
Turn Sable physics into physical destruction.
Sable: Destructive is a server-and-client addon for Sable on Minecraft 1.21.1. It makes moving Sable structures respond to collisions and explosions with material-aware block failure, flying physics fragments, world craters, debris and cinematic impact effects.
Build a vehicle, aircraft, ship or moving base and crash it into the world. Weak contact blocks crush first, hard materials resist longer, detached pieces preserve their motion, and a sufficiently large body can create a radial crater with a visible pressure wave and rising column of dust.
Physical block damage
Every meaningful contact is evaluated using relative speed, reduced contact mass, kinetic energy, block mass, material toughness and the hardness of the attacking surface.
- Block-by-block damage by default: ordinary collisions remove the actual contact block instead of carving long layers through the world.
- Material compatibility: soft grass, leaves or dirt cannot destroy obsidian simply because more soft blocks are attached behind them.
- Capped mass leverage: large structures hit harder, but mass cannot provide infinite strength to a weak contact face.
- Attacker self-damage: when a soft projectile hits a hard wall, the projectile can erode while the wall survives.
- Low-speed protection: a single stone block dropped from approximately two blocks will bounce or stop instead of drilling downward indefinitely.
- Finite ordinary materials: stone, metals, obsidian, netherite and reinforced blocks are resistant, not immortal. A proportionate high-energy collision can still break them.
- Protected infrastructure: bedrock, barriers, command blocks, structure blocks and portal infrastructure remain intentionally unbreakable.
Optional penetration and cluster detachment can be enabled for more destructive servers. Penetration is energy-limited, requires extreme speed and is capped to prevent tunnelling.
Two destruction outcomes
When a block fails, Sable: Destructive chooses a result appropriate to the material and impact:
- VANISH: brittle or heavily overloaded blocks pulverize into textured dust, grit and fragments without filling the world with dropped block items.
- DETACH: suitable blocks peel away as independent Sable physics bodies that keep their inertia, tumble and collide with the environment.
Container contents can still be released, while unsafe block-entity detachment paths use the safer destruction outcome.
Giant landings
Large falling Sable bodies produce a multi-stage impact only after the system confirms real terrain contact:
- A bright contact flash marks the instant of collision.
- A dusty shock ring and a faster translucent pressure front expand across the ground.
- Physical rock and soil fragments launch upward, fall under gravity and bounce off terrain.
- A turbulent dust column rises above the crater and expands as it loses opacity.
- Delayed skirt dust and secondary rubble settle around the impact site.
- Layered boom, ground rumble and cracking sounds communicate the scale of the hit.
- Distance-scaled camera and FOV vibration deliver a sharp kick followed by a slower tremor.
Crater radius, depth, entity knockback, effect density and camera movement scale with the impact and remain bounded for gameplay stability.
Custom visual pipeline
The addon contains nine dedicated particle shaders:
- Structural shatter
- Textured dust
- Ground shockwave
- Sparks
- Contact flash
- Boundary grit
- Volumetric impact plume
- Pressure wave
- Faceted rubble
Dust and debris use Minecraft world collision. Effects attached to moving Sable sub-levels are simulated in local space so they travel with the structure instead of appearing at an unrelated point in the sky.
Built for multiplayer
Heavy impacts use a compact event packet. The server sends impact position, radius, severity and a deterministic seed once; each nearby client builds the full visual sequence locally.
Performance protection includes:
- Distance-based visual LOD
- Respect for Minecraft's All, Decreased and Minimal particle settings
- Shared per-tick client particle budgets
- A limit on concurrent impact sequences
- Server-side effect and destruction budgets
- Spatial and temporal effect deduplication
- Deferred Sable mutations at safe tick boundaries
Client-only screens and shaders are isolated from dedicated-server code.
Configuration and commands
Operators can open the live configuration screen with:
/sable-dv config panel
The alias /sable config panel is also available.
Other commands:
/sable-dv on
/sable-dv off
/sable-dv config reset
The panel controls damage gates, self-damage, penetration, detach behaviour, shockwave radius, crater depth, knockback, epic impact effects, camera shake and particle density. Settings persist in config/sabledestructive-common.toml.
Commands and server-side panel changes require operator permission level 2.
Requirements
- Minecraft 1.21.1
- NeoForge 21.1.235+
- Sable 2.0.3+
- Java 21
Install the mod on both the client and server. Sable and its own required dependencies must also be installed.
Compatibility notes
- Designed for Sable 2.x physics sub-levels.
- Vanilla TNT, creepers, end crystals and other explosions can damage Sable structures through the same protected destruction pipeline.
- Unknown modded blocks receive conservative finite defaults so they do not become accidentally immortal.
- World terrain damage can be disabled if a server wants destruction restricted to Sable structures.
- Replace old versions completely and restart Minecraft after updating; do not hot-swap the JAR.
Credits
- Code: Xylos_Official
- Visuals: Viaquelt
- Sable physics engine and API: ryanhcode
Licensed under the MIT License.
评论 0
登录后参与评分
还没有评论,来抢沙发吧