物品的位置和大小
物品浮在方块上的位置写在 config.yml 的 display,每种工作台一行:
display:
2slot: {height: 1.18, spacing: 0.5, scale: 0.5, hit-height: 0.42}
3slot: {height: 1.16, spacing: 0.33, scale: 0.36, hit-height: 0.34}
3x3: {height: 1.04, spacing: 0.3, scale: 0.27, hit-height: 0.2}
temper: {height: 1.06, spacing: 0.9, scale: 1.0, hit-height: 0.24}
| 键 | 说明 |
|---|---|
height | 物品离方块底部的高度,1.0 刚好是整格方块的顶面 |
spacing | 槽位之间的距离 |
scale | 物品大小 |
hit-height | 每一格点击判定的高度 |
改完 /forge reload,已经绑定的工作台马上跟着变。
绑在台阶或炼药锅上
台阶只有半格高,默认的 height 会让物品浮得太高。把改造台绑在下半台阶上时:
display:
2slot: {height: 0.68, spacing: 0.5, scale: 0.5, hit-height: 0.42}
同一种工作台共用一行设定,所以同一种最好都绑在一样高的方块上。
淬炼台的大小
淬炼台的 scale 是基础大小,再乘上 tempering.yml 每一阶的 scale。默认最高阶是 3.8 倍,物品会变得很大,嫌太大就调这里或调每一阶的倍数,见 淬炼阶级。
常见问题
点不到某一格:格子之间太近时判定会互相重叠,调大 spacing 或 hit-height。
物品陷进方块里:调高 height。