### Install Nano editor Source: https://mccteam.github.io/l10n/fil.lproj/guide/installation.html Installs the Nano text editor on the VPS. ```bash sudo apt install nano -y ``` -------------------------------- ### Install and Login to Ubuntu Source: https://mccteam.github.io/guide/installation.html Commands to install the Ubuntu distribution and initiate a login session. ```bash pd install ubuntu:26.04 ``` ```bash pd login ubuntu ``` -------------------------------- ### Inventory Command Examples Source: https://mccteam.github.io/l10n/id.lproj/guide/usage.html Practical examples for interacting with player and container inventories. ```text /inventory player ``` ```text /inventory 3 ``` ```text /inventory player click 36 ``` ```text /inventory 2 click 4 right ``` ```text /inventory 2 close ``` ```text /inventory player drop 36 1 ``` ```text /inventory player drop 37 all ``` ```text /inventory creativegive 36 diamondblock 64 ``` ```text /inventory creativedelete 36 ``` ```text /inventory s SlimeBlock 10 ``` -------------------------------- ### Client Launch Examples Source: https://mccteam.github.io/guide/usage.html Practical examples for connecting with different account types and overriding configuration settings. ```bash # Microsoft account: connect to a server (you will sign in via device code in your browser) MinecraftClient.exe player@example.com "" mc.someserver.com:25565 # Offline account: connect with a chosen username MinecraftClient.exe Steve - mc.someserver.com:25565 # Overriding a setting from MinecraftClient.ini using a command-line parameter MinecraftClient.exe --debugmessages=false # Providing a custom settings file and overriding the language to Chinese MinecraftClient.exe CustomSettingsFile.ini --language=zh ``` -------------------------------- ### Full Recipe Configuration Examples Source: https://mccteam.github.io/guide/chat-bots.html Complete examples for defining player inventory and crafting table recipes. ```toml # Stone Bricks using the player inventory [[ChatBot.AutoCraft.Recipes]] Name = "Recipe-Name-1" Type = "player" Result = "StoneBricks" Slots = [ "Stone", "Stone", "Stone", "Stone", ] # Stone Bricks using a crafting table [[ChatBot.AutoCraft.Recipes]] Name = "Recipe-Name-2" Type = "table" Result = "StoneBricks" Slots = [ "Stone", "Stone", "Null", "Stone", "Stone", "Null", "Null", "Null", "Null", ] ``` -------------------------------- ### Install Git Source: https://mccteam.github.io/l10n/fil.lproj/guide/ai-assisted-development.html Commands to install Git on various operating systems and verify the installation. ```bash sudo apt update sudo apt install git ``` ```bash sudo pacman -S git ``` ```bash brew install git ``` ```bash git --version ``` -------------------------------- ### Verify .NET installation Source: https://mccteam.github.io/guide/installation.html Displays information about the installed .NET SDK and runtime environment. ```bash dotnet --info ``` -------------------------------- ### Display Help Documentation Source: https://mccteam.github.io/guide/usage.html Print the command-line usage guide for the client. ```bash MinecraftClient.exe --help ``` -------------------------------- ### Dialog Interaction Examples Source: https://mccteam.github.io/l10n/id.lproj/guide/usage.html Examples of how server dialogs appear and are structured in the console. ```text [MCC] Server showed custom dialog: Server Notice. Use dialog show. ``` ```text Actions: [1] OK (close) [2] Visit (command) [3] Rules (show dialog) ``` ```text Type: Notice Welcome to the server! Body: Read the rules before playing. Actions: [1] OK (close) ``` ```text Type: Confirmation Reset your progress? Actions: [1] Yes (close) [2] No (close) ``` ```text Type: Multi-action Choose a destination Actions: [1] Spawn (close) [2] Shop (close) [3] Arena (close) ``` -------------------------------- ### Install .NET SDK Source: https://mccteam.github.io/guide/installation.html Update Ubuntu package lists and install the .NET SDK along with necessary utilities. ```bash apt update && apt upgrade -y && apt install -y dotnet-sdk-10.0 wget curl nano ``` -------------------------------- ### Install Python 3 Source: https://mccteam.github.io/l10n/fil.lproj/guide/ai-assisted-development.html Commands to install Python 3 for helper scripts. ```bash sudo apt update sudo apt install python3 ``` ```bash sudo pacman -S python ``` ```bash brew install python@3.14 ``` ```bash python3 --version ``` -------------------------------- ### Dialog Command Examples Source: https://mccteam.github.io/l10n/id.lproj/guide/usage.html Practical examples of using dialog commands to navigate and interact with UI elements. ```text /dialog show /dialog click 1 /dialog click-label Teleport /dialog set name MyPlayer /dialog dismiss ``` -------------------------------- ### Install .NET 10 SDK Source: https://mccteam.github.io/guide/installation.html Installs the .NET 10 SDK from Ubuntu package feeds. ```bash sudo apt-get update -y && sudo apt-get install -y dotnet-sdk-10.0 ``` -------------------------------- ### Verify .NET installation Source: https://mccteam.github.io/l10n/hi.lproj/guide/installation.html Checks the installed .NET version and verifies the command availability. ```bash dotnet --info ``` ```bash dotnet ``` -------------------------------- ### Command-line parameter syntax examples Source: https://mccteam.github.io/l10n/id.lproj/guide/usage.html Common formats for passing configuration parameters to command-line applications. ```text someparameter -some-parameter --some-other-parameter --some-setting="some value" -a=5 ``` -------------------------------- ### Install Java 21 Source: https://mccteam.github.io/l10n/fil.lproj/guide/ai-assisted-development.html Commands to install OpenJDK 21 and configure the environment path. ```bash sudo apt update sudo apt install openjdk-21-jdk ``` ```bash sudo pacman -S jdk21-openjdk ``` ```bash brew install openjdk@21 sudo ln -sfn "$(brew --prefix openjdk@21)/libexec/openjdk.jdk" /Library/Java/JavaVirtualMachines/openjdk-21.jdk ``` ```bash java -version ``` -------------------------------- ### Initialize Termux Environment Source: https://mccteam.github.io/guide/installation.html Update packages and install the proot-distro utility required for Ubuntu installation. ```bash pkg update -y pkg upgrade -y pkg install proot-distro -y ``` -------------------------------- ### Install tmux Source: https://mccteam.github.io/l10n/fil.lproj/guide/ai-assisted-development.html Commands to install tmux for managing server sessions. ```bash sudo apt update sudo apt install tmux ``` ```bash sudo pacman -S tmux ``` ```bash brew install tmux ``` ```bash tmux -V ``` -------------------------------- ### Farmer Bot Usage Examples Source: https://mccteam.github.io/guide/chat-bots.html Common command patterns for starting and stopping the farming bot. ```text /farmer start wheat radius:40 ``` ```text /farmer start melon debug:true teleport:true ``` ```text /farmer stop ``` -------------------------------- ### Start local server and resolve identity Source: https://mccteam.github.io/l10n/fil.lproj/guide/ai-assisted-development.html Initializes the environment, resolves the username, and starts the Minecraft server. ```bash source tools/mcc-env.sh SESSION="smoke-a" USERNAME="$(_mcc_resolve_username "$SESSION")" mc-start 1.20.6 ``` -------------------------------- ### Install .NET SDK 10 Source: https://mccteam.github.io/l10n/fil.lproj/guide/ai-assisted-development.html Commands to install the .NET 10 SDK on supported platforms and verify the version. ```bash sudo apt-get update && sudo apt-get install -y dotnet-sdk-10.0 ``` ```bash wget https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb -O packages-microsoft-prod.deb sudo dpkg -i packages-microsoft-prod.deb rm packages-microsoft-prod.deb sudo apt-get update && sudo apt-get install -y dotnet-sdk-10.0 ``` ```bash wget https://packages.microsoft.com/config/debian/13/packages-microsoft-prod.deb -O packages-microsoft-prod.deb sudo dpkg -i packages-microsoft-prod.deb rm packages-microsoft-prod.deb sudo apt-get update && sudo apt-get install -y dotnet-sdk-10.0 ``` ```bash sudo pacman -S dotnet-sdk ``` ```bash brew install --cask dotnet-sdk ``` ```bash dotnet --version ``` -------------------------------- ### Full Script Metadata Example Source: https://mccteam.github.io/guide/creating-bots.html A complete example of the Script Metadata section including custom imports. ```csharp //MCCScript 1.0 //using System.Collections.Immutable //dll MyDll.dll MCC.LoadBot(new ExampleChatBot()); //MCCScript Extensions ``` -------------------------------- ### Install proot-distro and Ubuntu Source: https://mccteam.github.io/l10n/hi.lproj/guide/installation.html Commands to update Termux packages and install the Ubuntu distribution. ```bash pkg update -y pkg upgrade -y pkg install proot-distro -y ``` ```bash pd install ubuntu:26.04 ``` ```bash pd login ubuntu ``` -------------------------------- ### Enum Serialization Examples Source: https://mccteam.github.io/guide/websocket Examples showing how entity types and command parameters are serialized. ```json { "type": "Zombie", "location": { "x": 10, "y": 64, "z": -20 } } ``` ```json { "command": "InteractEntity", "requestId": "abc", "parameters": [42, "Interact", "MainHand"] } ``` ```json { "command": "InteractEntity", "requestId": "abc", "parameters": [42, 0, 0] } ``` -------------------------------- ### TOML Configuration File Example Source: https://mccteam.github.io/l10n/fil.lproj/guide/configuration.html Demonstrates the structure of the configuration file, including sections, key-value pairs, comments, and data types like arrays and tables. ```toml [SectionNameHere] Setting_Name = "this is some name" Setting_Something = 15 [OtherSection] # This is a comment explaining what this setting/option does Other_Setting = true # This also is a comment [ThirdSection] Section_Enabled = true colors = [ "red", "yellow", "green" ] [ThirdSection.Subsection] Coordinate = { x = 145, y = 64, z = 2045 } ``` -------------------------------- ### Quick Install on Windows Source: https://mccteam.github.io/guide/installation.html Run this command in PowerShell to download the Minecraft Console Client executable on Windows systems. ```powershell iwr -useb https://mccteam.github.io/install.ps1 | iex ``` -------------------------------- ### Install WSL2 Source: https://mccteam.github.io/l10n/fil.lproj/guide/ai-assisted-development.html Commands to install WSL2 on Windows, with options for specific distributions and web-based downloads. ```bash wsl --install ``` ```bash wsl --install -d Ubuntu ``` ```bash wsl --install --web-download -d Ubuntu ``` -------------------------------- ### Install .NET 10 SDK on Ubuntu Source: https://mccteam.github.io/guide/installation.html Commands to update package lists and install the .NET 10 SDK on Ubuntu 24.04 LTS. ```bash sudo apt-get update && \ sudo apt-get install -y dotnet-sdk-10.0 ``` -------------------------------- ### Install screen utility Source: https://mccteam.github.io/guide/installation.html Installs the screen utility to keep processes running after SSH disconnection. ```bash sudo apt install screen -y ``` -------------------------------- ### Install .NET 10 SDK Source: https://mccteam.github.io/guide/installation.html Installs the required .NET 10 SDK using the Windows Package Manager. ```powershell winget install Microsoft.DotNet.SDK.10 ``` -------------------------------- ### Quick Install on Linux and macOS Source: https://mccteam.github.io/guide/installation.html Use these commands to automatically download and install the latest version of Minecraft Console Client on Unix-based systems. ```bash curl -fsSL https://mccteam.github.io/install.sh | sh ``` ```bash wget -qO- https://mccteam.github.io/install.sh | sh ``` -------------------------------- ### Recommended MCP Server Configuration Source: https://mccteam.github.io/guide/chat-bots.html Example configuration block for enabling the MCP server with standard transport and capability settings. ```toml [ChatBot.McpServer] Enabled = true Transport = { BindHost = "127.0.0.1", Port = 33333, Route = "/mcp", RequireAuthToken = true, AuthTokenEnvVar = "MCC_MCP_AUTH_TOKEN" } Capabilities = { SessionStatus = true, ChatAndCommands = true, Movement = true, Inventory = true, EntityWorld = true } ``` -------------------------------- ### Full Script Scheduler Configuration Source: https://mccteam.github.io/guide/chat-bots.html A complete example showing the Script Scheduler enabled with multiple defined tasks. ```toml [ChatBot.ScriptScheduler] Enabled = true [[ChatBot.ScriptScheduler.TaskList]] Task_Name = "Task Name 1" Trigger_On_First_Login = false Trigger_On_Login = false Trigger_On_Times = { Enable = true, Times = [ 14:00:00, ] } Trigger_On_Interval = { Enable = true, MinTime = 3.6, MaxTime = 4.8 } Action = "send /hello" [[ChatBot.ScriptScheduler.TaskList]] Task_Name = "Task Name 2" Trigger_On_First_Login = false Trigger_On_Login = true Trigger_On_Times = { Enable = false, Times = [ ] } Trigger_On_Interval = { Enable = false, MinTime = 1.0, MaxTime = 10.0 } Action = "send /login pass" ``` -------------------------------- ### Example Chat Bot Implementation Source: https://mccteam.github.io/guide/creating-bots.html A complete template for a Chat Bot script, demonstrating the metadata section and the ChatBot class structure. ```csharp //MCCScript 1.0 MCC.LoadBot(new ExampleChatBot()); //MCCScript Extensions // The code and comments above are defining a "Script Metadata" section // Every chat bot script must define a class that extends ChatBot. // Instantiate that class in the script metadata section and pass it to MCC.LoadBot. class ExampleChatBot : ChatBot { // This method will be called when the script has been initialized for the first time, it's called only once // Here you can initialize variables, eg. Dictionaries. etc... public override void Initialize() { LogToConsole("An example Chat Bot has been initialized!"); } // This is a function that will be run when we get a chat message from a server // In this example it just detects the type of the message and prints it out public override void GetText(string text) { string message = ""; string username = ""; text = GetVerbatim(text); if (IsPrivateMessage(text, ref message, ref username)) { LogToConsole(username + " has sent you a private message: " + message); } else if (IsChatMessage(text, ref message, ref username)) { LogToConsole(username + " has said: " + message); } } } ``` -------------------------------- ### Run with Docker Compose Source: https://mccteam.github.io/guide/installation.html Commands to start, stop, and manage the container using Docker Compose. ```bash docker-compose run MCC ``` ```bash docker-compose down ``` ```bash docker-compose up docker-compose up -d # for daemonized background running ``` -------------------------------- ### Manage screen sessions Source: https://mccteam.github.io/l10n/hi.lproj/guide/installation.html Commands to start, re-attach, detach, and list screen sessions. ```bash screen -S mcc ``` ```bash screen -r mcc ``` ```bash screen -d mcc ``` ```bash screen -ls ``` -------------------------------- ### Create a simple script for Minecraft Console Client Source: https://mccteam.github.io/guide/creating-text-script.html A basic script example demonstrating sending messages, waiting, and exiting the client. ```text # 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 ``` -------------------------------- ### Interact with Server Dialogs Source: https://mccteam.github.io/guide/usage.html Commands and output examples for browsing, clicking, and inputting data into server-sent dialog popups. ```text [MCC] Server showed custom dialog: Server Notice. Use dialog show. ``` ```text Actions: [1] OK (close) [2] Visit (command) [3] Rules (show dialog) ``` ```text Type: Notice Welcome to the server! Body: Read the rules before playing. Actions: [1] OK (close) ``` ```text Type: Confirmation Reset your progress? Actions: [1] Yes (close) [2] No (close) ``` ```text Type: Multi-action Choose a destination Actions: [1] Spawn (close) [2] Shop (close) [3] Arena (close) ``` ```text Type: Dialog list Help Topics Actions: [1] Rules (show dialog) [2] Commands (show dialog) ``` ```text Type: Server links Server Links ``` ```text /dialog /dialog show /dialog open /dialog click /dialog click-label