Documentation
MaceratorScreen
IC2 macerator from the original 1.12.2 GUI: input / discharge / 26×26 output slots, four upgrade slots, red EU bolt and crusher progress.
磨矿机玩家
import { MaceratorScreen } from "./index";
/**
* MaceratorScreen 预览用例:铁矿石 → 2 粉碎铁矿石(原版图标近似)
*/
export function MaceratorScreenDemo() {
return (
<MaceratorScreen
energy={{ max: 2000, value: 1400 }}
input={{ count: 1, icon: "iron-ore", tooltip: "铁矿石" }}
output={{ count: 2, icon: "iron-ingot", tooltip: "粉碎铁矿石 ×2" }}
progress={0.45}
title="磨矿机"
/>
);
}
Install
$pnpm add @tennantite/ic2npm installs the compiled package; use the CLI copy above to adapt the source.
Source
packages/ic2/src/macerator-screen/index.tsxThe npm package keeps the source tree, so you can copy and adapt it directly.