跳到主要内容
Tennantite
EN
文档目录

磨石界面

磨石:grinder.png 176×176,3 矿石槽 + 中央杵槽(不可交互)+ 3 产物槽。

全屏预览预览页不进入搜索引擎索引
磨石
物品栏

组成

这些是可直接组合的组件;Block 只是把它们按原版坐标放在一起。

代码

import { Ae2GrindstoneScreen } from "./index";

/**
 * Ae2GrindstoneScreen 预览用例:沙砾 → 燧石、骨头 → 4 骨粉。
 */
export function Ae2GrindstoneScreenDemo() {
  return (
    <Ae2GrindstoneScreen
      hotbarItems={Array.from({ length: 9 }, (_, index) => ({ icon: index % 2 ? "charcoal" : "iron-ingot" }))}
      mainItems={Array.from({ length: 18 }, (_, index) => ({ icon: index % 2 ? "gold-ingot" : "iron-ingot" }))}
      onTakeOutput={() => {}}
      ores={[
        { count: 1, icon: "gravel", tooltip: "沙砾" },
        { count: 1, icon: "bone", tooltip: "骨头" },
        null,
      ]}
      outputs={[
        { count: 1, icon: "flint", tooltip: "燧石" },
        { count: 4, icon: "bone-meal", tooltip: "骨粉 ×4" },
      ]}
    />
  );
}