Skip to content
Tennantite
中文
Documentation

Ae2GrindstoneScreen

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

Full-screen previewPreview pages are excluded from search indexes
磨石
物品栏

Composition

These are the composable components; the Block only places them at vanilla coordinates.

Code

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" },
      ]}
    />
  );
}