Skip to content
Tennantite
中文
Documentation

EioSagMillScreen

Ender IO SAG mill (176×208): input, 4 outputs, grinding ball slot with a 4×16 durability bar, 16×24 vertical progress, energy and the right-side controls.

Full-screen previewPreview pages are excluded from search indexes
SAG 磨粉机物品栏

Composition

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

Code

import { EIO_DEMO_GOLD_INGOT, EIO_DEMO_GUNPOWDER, EIO_DEMO_IRON_ORE } from "../eio-demo-data";
import { EioSagMillScreen } from "./index";

interface EioSagMillScreenDemoProps {
  energy?: { max: number; value: number };
  progress?: number;
}

/**
 * SAG 磨粉机预览:铁矿石 16 → 金锭 ×4,研磨球耐久 70%,进度 35%,能量 72%。
 */
export function EioSagMillScreenDemo({
  energy = { max: 100000, value: 72000 },
  progress = 0.35,
}: EioSagMillScreenDemoProps = {}) {
  return (
    <EioSagMillScreen
      energy={energy}
      grindingBall={{ durability: 0.7 }}
      grindingBallSlot={EIO_DEMO_GUNPOWDER}
      input={EIO_DEMO_IRON_ORE}
      onRedstoneChange={() => {}}
      onSlotClick={() => {}}
      outputs={[EIO_DEMO_GOLD_INGOT, EIO_DEMO_GOLD_INGOT, EIO_DEMO_GOLD_INGOT, EIO_DEMO_GOLD_INGOT]}
      progress={progress}
      state="active"
    />
  );
}