一键导入
slabbed-slab-support-helper-contract
Define the single shared helper API all slab-support mixins must use.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Define the single shared helper API all slab-support mixins must use.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Disable or remove all temporary debug instrumentation (debug mixins, debug helpers, and log spam) and verify a clean production run.
Run the minimum production sanity checks before tagging a release or milestone.
Temporarily enable or disable debug mixins via mixin config selection without touching production mixin lists.
Verify strict visual alignment for offset-rendered blocks (model + outline) on slab tops and slab undersides.
Build-gated savepoint commit with optional tag and push, enforcing Slabbed guardrails.
Add hanging/ceiling attachment support for blocks under top slabs, using SlabSupport.isCeilingSupportSurface as the single source of truth.
| name | slabbed-slab-support-helper-contract |
| description | Define the single shared helper API all slab-support mixins must use. |
Define a single, stable helper API for determining whether a block state at a position should count as “ground support” for the top face, including slabs.
All mixins must call this helper; no duplicated slab logic inside mixins.
Treat the top face of:
Strict visuals expected: placements must align to the slab top surface when possible.
Create helper class (when implementing):
src/main/java/com/slabbed/init/SlabSupport.javaNo other class may implement slab-support rules.
When implementing, expose only these methods (no extras unless required):
static boolean isSupportedOnTop(WorldView world, BlockPos pos, BlockState belowState)
static double topSurfaceYOffset(BlockState belowState)
1.00.5Double.NaNstatic boolean isSlabLike(BlockState state)
SlabBlock and any other block types we explicitly add laterisSupportedOnTop(...) should return true if:
Do NOT automatically treat:
This mod is “Slabbed”, not “All partial blocks”.
If needed later, helper may accept a “support category” enum, but for now:
When implementing, add optional debug logging controlled by:
-Dslabbed.debugSupport=trueLogs must be:
[SLABBED_SUPPORT]No logs by default.
SlabSupport instead of duplicating slab checksIf more than 2 mixins need slightly different “support” semantics: