Minecraft 主控台客戶端Minecraft 主控台客戶端
關於 & 功能
安裝
使用方法
配置
ChatBots 機器人
幫助我們翻譯
  • Afrikaans
  • اللغة العربية
  • Català
  • Čeština
  • Dansk
  • Deutsch
  • Ελληνικά
  • English
  • Español
  • Suomi
  • Français
  • עברית
  • Magyar
  • Italiano
  • 日本語
  • 한국어
  • Latviešu
  • Nederlands
  • Norsk
  • Polski
  • Português (Brasil)
  • Português (Portugal)
  • Română
  • Русский
  • Српски (Cyrillic)
  • Svenska
  • Türkçe
  • Українська
  • Tiếng Việt
  • 简体中文
  • 繁體中文
GitHub
關於 & 功能
安裝
使用方法
配置
ChatBots 機器人
幫助我們翻譯
  • Afrikaans
  • اللغة العربية
  • Català
  • Čeština
  • Dansk
  • Deutsch
  • Ελληνικά
  • English
  • Español
  • Suomi
  • Français
  • עברית
  • Magyar
  • Italiano
  • 日本語
  • 한국어
  • Latviešu
  • Nederlands
  • Norsk
  • Polski
  • Português (Brasil)
  • Português (Portugal)
  • Română
  • Русский
  • Српски (Cyrillic)
  • Svenska
  • Türkçe
  • Українська
  • Tiếng Việt
  • 简体中文
  • 繁體中文
GitHub
  • 關於 & 功能
  • 安裝
  • 用法
  • 配置
  • Creating Simple Script
  • 指令機器人
  • 創造屬於你的 Chat Bots
  • Contributing

Creating Simple Script

A simple script is a text file with one command per line. See Internal Commands section or type /help in the console to see available commands. Any line beginning with # is ignored and treated as a comment.

Application variables defined using the set command or [AppVars] INI section can be used. The following read-only variables can also be used: %username%, %login%, %serverip%, %serverport%, %datetime%

Example

sample-script.txt: Send a hello message, wait 60 seconds and disconnect from server.

# This is a sample script for Minecraft Console Client
# Any line beginning with "#" is ignored and treated as a comment.

send Hello World! I'm a bot scripted using Minecraft Console Client.
wait 60
send Now quitting. Bye :)
exit

Go to example scripts to see more example.

If you want need advanced functions, please see Creating Chat Bots

編輯此頁面
Prev
配置
Next
指令機器人