Script commands
This page shows all the commands in the script file.
msg
– A message from the character.
Usage: msg "<personage>" <message>
.
Example: msg "John" Hello!
.
Output: [John] Hello!
setColor
– Setting the color of the personage's name.
Usage: setColor <color>
.
Example: setColor red
.
run
– Executing the standard Minecraft command.
Usage: run <command>
.
Example: run kill @a
.
setVar
– sets the variable.
Usage: setVar <variable name> <variable value>
Example: setVar playerName John
You can also get the value of a variable in the msg command using $$<variable name>
.
Example: msg "NPC" His name is $$playerName
.
Last updated