Enum in @minecraft/server
What a custom command’s parameter takes.
import { CustomCommandParamType } from '@minecraft/server';Example
Section titled “Example”import { CustomCommandParamType } from '@minecraft/server';
const value: CustomCommandParamType = CustomCommandParamType.Boolean;console.log(value); // "Boolean"import { CustomCommandParamType } from '@minecraft/server';
const value = CustomCommandParamType.Boolean;console.log(value); // "Boolean"Values
Section titled “Values”| Name | Value | Description |
|---|---|---|
Boolean |
"Boolean" |
|
Integer |
"Integer" |
|
Float |
"Float" |
Basalt’s client hint for it is a string. |
String |
"String" |
|
EntitySelector |
"EntitySelector" |
Players only, in Basalt. |
PlayerSelector |
"PlayerSelector" |
|
Location |
"Location" |
|
BlockType |
"BlockType" |
|
ItemType |
"ItemType" |
|
Enum |
"Enum" |
One of the values given to CustomCommandRegistry.registerEnum. |
EntityType |
"EntityType" |