简易方块物理
为你的游戏添加简单、可配置且递归的方块坍塌逻辑(即方块物理)。它无需进行区块扫描或复杂的数学运算,而是通过一种“函数式”递归搜索方法,在附近方块被破坏时评估方块的“支撑”状态来实现这一功能。
!警告! 请自行承担将其添加到世界中的风险,因为它显然会摧毁你的建筑!
特性
- 戏剧性且危险的塌方
- 真实的建造限制
- 按需进行的物理更新以减少开销
- 高度可定制的配置文件选项,以满足你的需求
- 防止空中基地,迫使玩家应对地面发生的情况
- 与添加了生物破坏方块行为的模组(如 Improved Mobs)搭配效果极佳
机制
如果检查到的方块在其支撑强度决定的穿透式方块搜索范围内(默认基于硬度,可配置)缺乏支撑方块(较低的 Y 轴层级),则会掉落或破碎。方块在放置、踩踏、相邻方块被破坏导致更新,或被其他方块选为支撑时(此行为的迭代次数可配置,默认为 4 次)会被“检查”。
破碎的方块会转化为下落方块实体(类似沙子,可配置),然后掉落、可能破碎并散落在地面上,继续翻滚直到找到合适的位置。确保在那发生时你没有站在危险区域!
更新日志
1.1 - 改进了性能,添加了浮力开关以防止船只下沉,并引入了重量机制以解决直接堵塞的问题,这将干扰支柱搭建并进一步 discourage 空中基地。现已移植至 Neoforge,支持两个版本!
1.2 - 添加了滑动几率百分比的配置标志,控制下落方块滑动的频率(如果可行,默认几率为 80%),以及一个反转不可破坏方块列表的标志,允许你防止除选定方块外的所有方块受到物理效果影响!
感谢 AsianHalfSquat 的提及以及激励我推出这些新功能!
Simple Block Physics
Adds simple, configurable, recursive block collapse logic (i.e. block physics) to your game. It does this without chunk scans or complex math, but through a 'functionally' recursive search method by assessing a block's 'support' when nearby blocks are broken.
!WARNING! Add to your world at your own risk, as it can (obviously) destroy builds!
Features
- Dramatic, dangerous cave-ins
- Realistic limits to building
- Need-based physics updates to reduce overhead
- Highly customizable config options to suit the mod to your needs
- Sky base prevention, forcing players to deal with what happens on the ground
- Pairs well with mods that add mob block breaking behavior, like Improved Mobs
Mechanics
Checked blocks lacking a support block (lower Y-level) within a thru-block search range determined by its support strength (configurable, based on hardness by default) will fall or break. Blocks are 'checked' when placed, stepped on, updated by an adjacent block being broken, or when chosen as a support by another block (configurable number of 'iterations' for this behavior, 4 by default).
Broken blocks are turned into falling block entities (like sand, configurable) which then drop, possibly break, and scatter on the ground, continuing to tumble until a suitable spot is found. Just make sure you aren't in the way when that happens!
Updates
1.1 - improved performance, added a buoyancy toggle to prevent sinking ships, and added a weight mechanic to address blocking up directly, which will disrupt pillaring and further discourage sky bases. And now ported to Neoforge for both versions!
1.2 - Added config flag for slide chance percentage, which controls how often a falling block will slide (if possible, default 80% chance) in addition to a flag to invert the indestructable blocks list, allowing you to prevent all but selected blocks from being affected by physics!
Thanks to AsianHalfSquat for the shoutout and inspiring me to push these new features!
下载 Simple Block Physics
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Simple Block Physics
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Simple Block Physics
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Simple Block Physics
下载 Simple Block Physics
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Simple Block Physics
下载 Simple Block Physics
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
添加了可逆的不朽方块和滑动几率配置
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
新增 50+ 个独特生物群系,为你的世界增添新树木、花卉等更多元素!
模组
添加全屏世界地图,显示你在世界中已探索的区域。与 Xaero's Minimap 搭配使用效果极佳。
模组
让你能够在世界中的任何位置定位结构。
模组
TerraFirmaCraft (TFC) 是一个全面转换模组,对生存模式进行了彻底的改造与重新设计。
模组
一堆修复
评论 0
登录后参与评分
还没有评论,来抢沙发吧