Vertical Slabs Everywhere
一个 NeoForge 1.21.1 模组,为每个已安装模组注册的板添加 Quark 风格的垂直板变体——木材、石头、砖块、任何材质。将其放入整合包中,即可让所有模组化板的拥有垂直变体,且无需针对每个模组进行单独配置。
工作原理
在加载时,该模组会扫描方块注册表中的板,并为每一个板注册对应的垂直板变体。它使用 Moonlight Lib 的延迟注册钩子(与 Every Compat 使用的机制相同),确保在扫描前整个模组化注册表均已可见。
对于每个生成的板:
- 该方块继承自 Quark 的垂直板方块,因此放置、旋转、双层堆叠、注水和碰撞行为与 Quark 自带的垂直板完全一致。
- 方块状态和模型在运行时生成。模型继承自父级板的原有模型,因此纹理在模型烘焙时解析——即使其他模组动态生成的板(如 Every Compat、StoneZone)也能正常工作。具有非标准纹理键的板模型通过键同义词解析器处理。
- 战利品表(双层掉落两个)、双向 3:3 合成配方、可选的 1:1 切石机配方、从父级复制的挖掘工具标签,以及
quark:vertical_slab、c:vertical_slabs 和 c:slabs 下的标签条目。
- 显示名称基于父级名称,并遵循 Quark 的命名约定(如“Oak Vertical Slab”样式),在所有父级提供的语言中生效。
无重复
如果其他模组已经提供了某种材质的垂直板——包括 Quark 本身、Every Compat 的木材类型、StoneZone 的石材质类型,或任何以 _vertical_slab 结尾的方块——该模组将跳过该材质。与其他模组共存时,它仅填补它们留下的空白。
minecraft: 命名空间下的回溯模组方块
真正的原版板会被跳过(Quark 已覆盖它们),但检查是针对运行中 Minecraft 版本的实际原版方块列表进行的——而非命名空间。出于存档兼容性原因而在 minecraft: 命名空间下注册方块的模组(例如 Vanilla Backport 的红丹、硫磺和树脂砖板)被视为普通模组化方块,自动获得垂直板变体。
与原版 Vertical Slabs Compat 的兼容性
方块以 v_slab_compat 命名空间注册,ID 模式与 MehVahdJukaar 的 Vertical Slabs Compat(最后更新于 1.20.1)相同:
v_slab_compat:<parent_namespace>/<name>_vertical_slab。使用原版构建的世界文件和结构文件可无缝兼容。
这是一个独立的净室实现——未使用原版代码或资源,且不与 MehVahdJukaar 关联或由其背书。如果官方 v_slab_compat 模组与此模组同时安装,本模组会检测到它并停止注册,从而确保两者永不冲突。
一项小众限制:在原版 未搭配 Quark 运行的世界中,原版材质使用的是 v_slab_compat:<vanilla>_vertical_slab ID;而本模组要求必须安装 Quark(其提供原版垂直板并使用自身 ID),因此这些特定 ID 不会被重新创建。
依赖项(全部必需)
配置文件 (config/vertical_slabs_everywhere-common.toml)
| 选项 |
默认值 |
效果 |
skipped_mods |
[] |
完全跳过的命名空间 |
skipped_blocks |
["amendments:carpet_slab"] |
精确跳过的方块 ID(例如无可用模型的动态渲染板) |
force_generate |
[] |
始终强制生成的方块 ID —— 覆盖所有跳过列表及重复检查 |
max_registrations |
-1 |
生成板的数量上限;-1 表示无限制 |
log_registered |
false |
每生成一个板输出一行日志(有助于构建跳过列表) |
emit_stonecutter_recipes |
true |
在板与垂直板之间生成 1:1 切石机配方 |
列表类选项在游戏启动时读取;编辑后需在下一次启动时生效。
许可证
MIT。Quark、Zeta 和 Moonlight Lib 是独立安装的依赖项,受其各自许可证约束;本 jar 文件中未捆绑来自它们的任何内容。
致谢
- MehVahdJukaar —— Moonlight Lib 作者,以及启发本模组的原版 Vertical Slabs Compat 作者。
- Vazkii's Mods —— Quark 和 Zeta 的作者,本模组在其垂直板基础上进行构建。
Vertical Slabs Everywhere
A NeoForge 1.21.1 mod that adds a Quark-style vertical slab for every slab any
installed mod registers — wood, stone, brick, any material. Drop it into a pack
and every modded slab gains a vertical variant, with no per-mod configuration.
How it works
At load time the mod scans the block registry for slabs and registers a matching
vertical slab for each one, using Moonlight Lib's late-registration hook (the same
mechanism Every Compat uses) so the whole modded registry is visible before scanning.
For each generated slab:
- The block extends Quark's vertical slab block, so placement, rotation, doubling,
waterlogging, and collision behave exactly like Quark's own vertical slabs.
- Blockstates and models are generated at runtime. Models inherit from the parent
slab's own model, so textures resolve when models bake — this works even for slabs
that are themselves generated dynamically by other mods (Every Compat, StoneZone).
Slab models with nonstandard texture keys are handled by a key-synonym resolver.
- Loot tables (double drops two), 3:3 crafting recipes both ways, optional 1:1
stonecutter recipes, mining-tool tags copied from the parent, and tag entries under
quark:vertical_slab, c:vertical_slabs, and c:slabs.
- Display names are derived from the parent and follow Quark's naming convention
("Oak Vertical Slab" style) in every language the parent provides.
No duplicates
If any other mod already provides a vertical slab for a material — Quark itself,
Every Compat's wood types, StoneZone's stone types, anything ending in
_vertical_slab — this mod skips that material. Installed alongside those mods it
fills only the gaps they leave.
minecraft: namespace blocks from backport mods
Genuine vanilla slabs are skipped (Quark covers them), but the check is against
the actual vanilla block list of the running Minecraft version — not the
namespace. Mods that register their blocks under minecraft: for save-compat
reasons (e.g. Vanilla Backport's cinnabar, sulfur, and resin brick slabs) are
treated like any other modded blocks and get vertical slabs automatically.
Compatibility with the original Vertical Slabs Compat
Blocks register under the v_slab_compat namespace with the same id pattern as
MehVahdJukaar's Vertical Slabs Compat (last released for 1.20.1):
v_slab_compat:<parent_namespace>/<name>_vertical_slab. Worlds and structure files
built with the original resolve seamlessly.
This is an independent clean-room implementation — none of the original's code or
assets were used — and it is not affiliated with or endorsed by MehVahdJukaar. If the
official v_slab_compat mod is ever installed alongside this one, this mod detects it
and registers nothing, so the two can never conflict.
One niche limitation: worlds that ran the original without Quark used
v_slab_compat:<vanilla>_vertical_slab ids for vanilla materials; this mod requires
Quark, which provides vanilla vertical slabs under its own ids, so those specific ids
are not recreated.
Dependencies (all required)
Configuration (config/vertical_slabs_everywhere-common.toml)
| Option |
Default |
Effect |
skipped_mods |
[] |
Namespaces to skip entirely |
skipped_blocks |
["amendments:carpet_slab"] |
Exact block ids to skip (e.g. dynamically-rendered slabs with no usable model) |
force_generate |
[] |
Block ids to ALWAYS generate — overrides every skip list and the duplicate check |
max_registrations |
-1 |
Cap on generated slabs; -1 = unlimited |
log_registered |
false |
One log line per generated slab (useful for building skip lists) |
emit_stonecutter_recipes |
true |
1:1 stonecutter recipes between slab and vertical slab |
List options are read at game start; edits apply on the next launch.
License
MIT. Quark, Zeta, and Moonlight Lib are separately-installed dependencies under their
own licenses; nothing from them is bundled in this jar.
Credits
- MehVahdJukaar — Moonlight Lib, and the original Vertical Slabs Compat that inspired
this mod.
- Vazkii's Mods — Quark and Zeta, whose vertical slab this mod builds on.
评论 0
登录后参与评分
还没有评论,来抢沙发吧