Documentation
IfMobCrusherScreen
IF mob crusher: 6×3 output, essence tank, produce / consume mode button and area / particle controls.
屠宰机
16
import { IF_DEMO_ITEMS } from "../if-demo-data";
import { IfMobCrusherScreen } from "./index";
export function IfMobCrusherScreenDemo() {
return (
<IfMobCrusherScreen
area={{ particles: false, showArea: true }}
energy={{ max: 1000, value: 700 }}
essence={{ max: 1000, tint: "#41CD34", value: 320 }}
mode="produce"
outputs={[IF_DEMO_ITEMS.gunpowder, IF_DEMO_ITEMS.charcoal]}
progress={0.3}
/>
);
}
Install
$pnpm add @tennantite/industrialforegoingnpm installs the compiled package; use the CLI copy above to adapt the source.
Source
packages/industrialforegoing/src/if-mob-crusher-screen/index.tsxThe npm package keeps the source tree, so you can copy and adapt it directly.