Documentation
IfDissolutionChamberScreen
IF dissolution chamber (176×184): eight irregular inputs, a 1×3 output, two fluid tanks, a lock button and the right-side augment / tank panels.
溶解成型机
3
8
16
import { useState } from "react";
import { IF_DEMO_ITEMS } from "../if-demo-data";
import { IfDissolutionChamberScreen } from "./index";
export function IfDissolutionChamberScreenDemo() {
const [isLocked, setIsLocked] = useState(false);
return (
<IfDissolutionChamberScreen
energy={{ max: 1000, value: 620 }}
inputFluid={{ max: 1000, tint: "#41CD34", value: 480 }}
inputs={[
IF_DEMO_ITEMS.diamond,
IF_DEMO_ITEMS.wheat,
IF_DEMO_ITEMS.emerald,
IF_DEMO_ITEMS.gunpowder,
]}
isLocked={isLocked}
onLockChange={setIsLocked}
output={IF_DEMO_ITEMS.potion}
outputFluid={{ max: 1000, tint: "#B24CD8", value: 260 }}
progress={0.45}
/>
);
}
Install
$pnpm add @tennantite/industrialforegoingnpm installs the compiled package; use the CLI copy above to adapt the source.
Source
packages/industrialforegoing/src/if-dissolution-chamber-screen/index.tsxThe npm package keeps the source tree, so you can copy and adapt it directly.