create new instance of custom command creator.
Optional
init: CustomCommand = ...custom command that already listed/registered.
add argument type block, like when you use /fill or /place.
the name of this argument.
Optional
require: boolean = trueis it required or not, required arguments listed first.
this
add argument type boolean, like yes/no true/false.
the name of this argument.
Optional
require: boolean = trueis it required or not, required arguments listed first.
this
add argument type entity, like player, zombie ,or other entity.
the name of this argument.
Optional
require: boolean = trueis it required or not, required arguments listed first.
this
add argument type enum from RegisterEnum
the name of this argument.
Optional
require: boolean = trueis it required or not, required arguments listed first.
this
add argument type float or decimal number, like 1.0, 2.4, 7.2.
the name of this argument.
Optional
require: boolean = trueis it required or not, required arguments listed first.
this
add argument type integer or round number, like 1, 2, 3.
the name of this argument.
Optional
require: boolean = trueis it required or not, required arguments listed first.
this
add argument type item.
the name of this argument.
Optional
require: boolean = trueis it required or not, required arguments listed first.
this
add argument type location or position, usualy xyz coordinate.
the name of this argument.
Optional
require: boolean = trueis it required or not, required arguments listed first.
this
add argument type player only, only a player will be check unlike addEntitySelector.
the name of this argument.
Optional
require: boolean = trueis it required or not, required arguments listed first.
this
add argument type string or text, just text, a normal text.
the name of this argument.
Optional
require: boolean = trueis it required or not, required arguments listed first.
this
get this custom command object so can be use again
get this command description.
the description of this command.
get this command name.
the name of this command.
get this custom command's all arguments in order
array of required and optional arguments
get this command permission level.
permissionLevel.
is cheat need to be enable to use (default can be change in the config)
required?
this
convert raw data from the api into an object, that is the same to your arguments, for easy read, then pass it to your function to run it
set this command function to run when called/executed.
function.
this.
set this command permission level.
permissionLevel.
this.
set tab that required when running this command
Static
createcreate new instance of custom command creator.
name of the command
custom command creator.
Example