Skip to content
Tennantite
中文
Documentation

IfPotionBrewerScreen

IF potion brewer: six brewing inputs, blaze powder / water bottle, a down-arrow progress and a lock button.

Full-screen previewPreview pages are excluded from search indexes
自动炼药机
8

Composition

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

Code

import { useState } from "react";

import { IF_DEMO_FLUIDS, IF_DEMO_ITEMS } from "../if-demo-data";
import { IfPotionBrewerScreen } from "./index";

export function IfPotionBrewerScreenDemo() {
  const [isLocked, setIsLocked] = useState(false);
  return (
    <IfPotionBrewerScreen
      blazeInput={IF_DEMO_ITEMS.gunpowder}
      bottleInput={IF_DEMO_ITEMS.potion}
      brewingInput={[
        IF_DEMO_ITEMS.wheat,
        IF_DEMO_ITEMS.apple,
        IF_DEMO_ITEMS.emerald,
      ]}
      fuel={0.5}
      isLocked={isLocked}
      onLockChange={setIsLocked}
      output={[IF_DEMO_ITEMS.potion]}
      progress={0.7}
      water={IF_DEMO_FLUIDS.water}
    />
  );
}