> ## Documentation Index
> Fetch the complete documentation index at: https://docs.elefant.uk/llms.txt
> Use this file to discover all available pages before exploring further.

# Singleplayer Guide

> Step-by-step instructions for using the Bot on your server

export const imgWidth = 600;

We assume you are already familiar with the Elefant application.
If not, quickly check out the [Launcher Guide](/launcher) and then head back here!

### Minecraft Server Setup

Perform these steps in Minecraft:

1. Enable cheats. When creating your Singleplayer server, find the `Allow Cheats: ON/OFF` toggle and set them to `ON`.

   * Cheats are required for some actions the Bot takes, e.g. teleporting to you if you are in need!
   * **Note:** If you have already made a world, skip this step. We'll describe an alternative way to enable cheats below.
     <img src="https://mintcdn.com/elefantai-7e8f549f/8fRYGxpCpEnC9KmK/img/singleplayer/step1_cheatsOnCreation.png?fit=max&auto=format&n=8fRYGxpCpEnC9KmK&q=85&s=9095c641a7d817f5efd835ae9a1724eb" width={imgWidth} alt="Step 1" data-path="img/singleplayer/step1_cheatsOnCreation.png" />

2. Open to LAN. When in the server, press `Esc` to access the `Game Menu`. Click `Open to LAN`.

   * Don't worry - nothing sus is happening here :) We just need a way to (safely) send the Bot to your server.
     <img src="https://mintcdn.com/elefantai-7e8f549f/8fRYGxpCpEnC9KmK/img/singleplayer/step2_openLAN.png?fit=max&auto=format&n=8fRYGxpCpEnC9KmK&q=85&s=ff3e5c4066cefe18b614d74f03a084a7" width={imgWidth} alt="Step 2" data-path="img/singleplayer/step2_openLAN.png" />

3. Select port and start. Find the `Port Number` edit box and take note of the number - in this case, it is `63241`. Then click `Start LAN World`.
   * **Hint:** now is the time to toggle `Allow Cheats: ON` if you couldn't do it in Step 1.
   * Also, (if you know what you are doing) you can choose any port number in range `1024-65535`.
     Any (free) port will work.
     We advise using Minecraft's default port (the grayed-out one that is already there) because it will make sure to find a free one for you!
     <img src="https://mintcdn.com/elefantai-7e8f549f/8fRYGxpCpEnC9KmK/img/singleplayer/step3_mcPort.png?fit=max&auto=format&n=8fRYGxpCpEnC9KmK&q=85&s=92bdc6217cf517123f2854e8f1c9f80a" width={imgWidth} alt="Step 3" data-path="img/singleplayer/step3_mcPort.png" />

### Client Setup

Perform these steps in the Elefant application:

1. Select `Single Player` in the Home screen.

   * Note, your other server options might differ from those shown in the image below, but ignore that.
     <img src="https://mintcdn.com/elefantai-7e8f549f/8fRYGxpCpEnC9KmK/img/singleplayer/step4_clientSingleplayer.png?fit=max&auto=format&n=8fRYGxpCpEnC9KmK&q=85&s=99e8b23bf78d92596b887d8a4305d238" width={imgWidth} alt="Step 4" data-path="img/singleplayer/step4_clientSingleplayer.png" />

2. Select port. Type the port you noted earlier - in this case, `63241` - and you're good to go!
   * If you opened a different port in Step 3 of the Minecraft Server Setup, then enter that instead!
     <img src="https://mintcdn.com/elefantai-7e8f549f/8fRYGxpCpEnC9KmK/img/singleplayer/step5_clientPort.png?fit=max&auto=format&n=8fRYGxpCpEnC9KmK&q=85&s=dc929752fe6601e52acaf1f30ddcf9ca" width={imgWidth} alt="Step 5" data-path="img/singleplayer/step5_clientPort.png" />
