簡単なスクリプトの作成
簡単なスクリプトは、1 行に 1 つのコマンドを書いたテキスト ファイルです。 See the Internal Commands section, or type /help in the console to see the available commands. # で始まる行は無視され、コメントとして扱われます。
Application variables defined with the set command or in the [AppVars] config section can be used. The following read-only variables are also available: %username%, %login%, %serverip%, %serverport%, %datetime%, %players% (%players% expands to the current online player names separated by commas, or an empty string when not connected).
サンプル
sample-script.txt: Hello メッセージを送信し、60 秒後にサーバーを退出します。
# これは Minecraft Console Client のサンプル スクリプトです。
# 「#」で始まる行は無視され、コメントとして扱われます。
send Hello World! これは Minecraft Console Client のスクリプト Bot です。
wait 60
send 退出します。またね~!
exitSee the example scripts folder for more examples.
If you need more advanced behavior, see Creating Chat Bots.
