mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
[skip ci] Update document (#2468)
* Update execif document * Update installation guide * Add simple script page * Add text script page to sidebar
This commit is contained in:
parent
42abf928fb
commit
3570ef605e
35 changed files with 82 additions and 28 deletions
26
docs/guide/creating-text-script.md
Normal file
26
docs/guide/creating-text-script.md
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
---
|
||||
title: Creating Simple Script
|
||||
---
|
||||
|
||||
# Creating Simple Script
|
||||
|
||||
A simple script is a text file with one command per line. See [Internal Commands](https://mccteam.github.io/guide/usage.html#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](https://github.com/MCCTeam/Minecraft-Console-Client/tree/master/MinecraftClient/config) to see more example.
|
||||
|
||||
If you want need advanced functions, please see [Creating Chat Bots](creating-bots.md)
|
||||
Loading…
Add table
Add a link
Reference in a new issue