clientCommand

@Environment(value = EnvType.CLIENT)
inline fun clientCommand(name: String, register: Boolean = true, builder: LiteralCommandBuilder<ClientCommandSourceStack>.() -> Unit = {}): RegistrableCommand<ClientCommandSourceStack>(source)

Creates a new client command. Opens a LiteralCommandBuilder. This command will work on the client, even if the player is connected to a third party server.

Parameters

name

the name of the root command

register

if true, the command will automatically be registered