Documentation
IfLaserBaseScreen
IF laser base: ore / fluid variants, lens and output areas, and a depth numeric input.
镭射钻基座深度:
3
16
import { useState } from "react";
import { IF_DEMO_ITEMS } from "../if-demo-data";
import { IfLaserBaseScreen } from "./index";
export function IfLaserBaseScreenDemo() {
const [depth, setDepth] = useState("64");
return (
<IfLaserBaseScreen
depth={depth}
lenses={[IF_DEMO_ITEMS.diamond, IF_DEMO_ITEMS.emerald]}
onDepthChange={setDepth}
outputs={[IF_DEMO_ITEMS.gunpowder, IF_DEMO_ITEMS.charcoal]}
variant="ore"
work={0.35}
/>
);
}
Install
$pnpm add @tennantite/industrialforegoingnpm installs the compiled package; use the CLI copy above to adapt the source.
Source
packages/industrialforegoing/src/if-laser-base-screen/index.tsxThe npm package keeps the source tree, so you can copy and adapt it directly.