Skip to content
Tennantite
中文
Documentation

MekanismDigitalMinerScreen

Mekanism 数字采矿机屏(176×242,GuiDigitalMiner):状态/搜索/待挖内嵌屏 + 自动弹出/拉取/精准采集三拨动开关 + 纵向能量条 + 缺失方块对勾槽 + 启动/停止/配置/重置按钮 + 9×3 输出网格,含侧配置/升级窗口。

Full-screen previewPreview pages are excluded from search indexes
数字采矿机玩家
低电力搜索完成待挖:12,480

Composition

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

Code

import type { ScreenSlot } from "@tennantite/ui";
import { MekanismDigitalMinerScreen } from "../index";

const MINER_SLOT: ScreenSlot = { count: 64, icon: "iron-ore", tooltip: "铁矿石 ×64" };

export function MekanismDigitalMinerScreenDemo() {
  return (
    <MekanismDigitalMinerScreen
      energy={{ max: 10000000, value: 6400000 }}
      energySlot={{ count: 1, icon: "lapis-lazuli", tooltip: "能量平板" }}
      searchText="搜索完成"
      slots={{ "main-0": MINER_SLOT, "main-1": MINER_SLOT, "main-2": MINER_SLOT, "main-9": MINER_SLOT }}
      startActive={false}
      statusText="低电力"
      stopActive
      switches={{ eject: true, silk: true }}
      toMineText="12,480"
    />
  );
}