Консольний клієнт MinecraftКонсольний клієнт Minecraft
Про програму та функції
Встановлення
Використання
Конфігурація
Чат-боти
Допоможіть нам з перекладом
  • 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
Про програму та функції
Встановлення
Використання
Конфігурація
Чат-боти
Допоможіть нам з перекладом
  • 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
  • About & Features
  • Встановлення
  • Використання
  • Конфігурація
  • Creating Simple Script
  • Chat Bots
  • Creating Chat Bots
  • Contributing

Creating Simple Script

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

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).

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

See the example scripts folder for more examples.

If you need more advanced behavior, see Creating Chat Bots.

Редагувати цю сторінку
Prev
Конфігурація
Next
Chat Bots