diff --git a/src/components/ItemCommandConverter.tsx b/src/components/ItemCommandConverter.tsx index b5b48c26e..5fc9858a4 100644 --- a/src/components/ItemCommandConverter.tsx +++ b/src/components/ItemCommandConverter.tsx @@ -9,7 +9,11 @@ const MODES: Option[] = [ { label: "Item Argument", value: "item-argument" }, { label: "Component Argument", value: "component-argument" }, { label: "Entity Argument", value: "entity-argument" }, + { label: "Commands/Function", value: "commands" }, ]; +const MODE_COMMAND = MODES[0]; +const MODE_ENTITY = MODES[3]; +const MODE_FUNCTION = MODES[4]; const ENTITY_TYPES: Option[] = [ "item", @@ -103,7 +107,7 @@ const ItemCommandConverter: React.FC = () => { const [copySuccess, setCopySuccess] = useState(false); const [input, setInput] = useState(""); const [output, setOutput] = useState(""); - const [mode, setMode] = useState(MODES[0]); + const [mode, setMode] = useState(MODE_COMMAND); const [entityType, setEntityType] = useState