适用于 1.18.2 及更高版本,Block Physics 已被 DISRUPTION 取代:
Modrinth(等待审核):
Github:
一套类似于 Enviromine 或脚手架方块功能的方块物理系统。
方块的支撑距离取决于其爆炸抗性。它们只能从“支撑点”(连接到高度包围的方块或高爆炸抗性方块的方块柱)向外延伸一定距离。
靠近支撑点的方块在“更新”时不会掉落。
此外还有加固机制,亲自体验比阅读那些糟糕的解释更容易理解。
但基本上:
当方块沿 x-z 平面的 8 个方向搜索时,只要目标方块在其自身范围内且位于该方向上,它就会将其支撑距离升级为具有更高支撑距离的方块。
这使得天窗更容易搭建,并奖励玩家建造现实中常见的建筑结构,例如玻璃框架。
一些方块会向上而非向下搜索支撑点。
主要原因是在于防止下界和末地岛屿全部坍塌。
带有 [sticky_blocks] 标签的方块将具备此行为,该标签中还包含栅栏、墙壁、锁链、铁栏杆以及 GlassSoundGroup 方块。
带有 [protected_blocks] 标签的方块至少拥有 3 个方块的扩展能力。这是为了防止因单次方块更新而导致树木被完全修剪掉。
此外,滑腻度高于 0.6 或属于 [floats] 标签的方块会在液体(如岩浆或水)上浮起。
对物理系统何时/何地更新方块感到困惑?
系统在以下事件中检查位置的邻居状态:
- 玩家破坏一个方块。
- 玩家放置一个方块。
- 火焰摧毁一个方块。
- 爆炸摧毁一个方块。
FOR 1.18.2 AND BEYOND, Block Physics IS SUPERSEDED BY DISRUPTION:
Modrinth (Awaiting aproval):
Github:
A block physics system not unlike Enviromine's or the functionality of scaffolding blocks.
Blocks have a max reach distance based on their blast resistance. They can only reach out so far from a 'support' (a column of block(s) that are connected to a highly-surrounded block or a high blast resistance block)
Blocks that are not near a support will fall when 'updated'.
There is also a reinforcement mechanic, its easier to learn this firsthand than to learn it from ye old bad explainer.
But basically:
As a block is searching along their 8 vectors on the x-z plane, it will upgrade it's reach to a block of higher reach as long as that block is within it's own reach, specifically in that direction.
This makes skylights easier and rewards the player for making shapes found in real architecture, like frames for glass.
Some blocks also search for supports upwards rather than downwards.
The main reasoning for this is to prevent all of the nether crashing down, as well as the end islands.
Blocks with the [sticky_blocks] tag will have this behavior, in this tag there are also fences, walls, chains, iron bars, and GlassSoundGroup blocks.
Blocks with the [protected_blocks] tag will have a minimum of 3 block extension capability. This is to prevent trees from getting pruned completely from a single block update.
Additionally blocks that have a slipperiness value higher than 0.6, or that are in the [floats] tag will float on liquids (such as lava or water).
Confused on when/where the physics system updates the blocks?
It checks the neighbors of a position during these events:
- Player breaks a block.
- Player places a block.
- Fire destroys a block.
- Explosion destroys a block.
评论 0
登录后参与评分
还没有评论,来抢沙发吧