# Project Essentials Spawn

## How to Install

For start the modification, you **need installed Forge**, it is desirable that the version matches the supported versions. You can download Forge 1.14.4 from the [link](https://files.minecraftforge.net/maven/net/minecraftforge/forge/index_1.14.4.html) and Forge 1.15.2 from it [link](https://files.minecraftforge.net/maven/net/minecraftforge/forge/index_1.15.2.html). Move the downloaded mod to the `mods` folder (*installation example below*).

```
val MV = valueOf(your_minecraft_version)

.
├── assets
├── config
├── libraries
├── mods (that's how it should be)
│   ├── Project Essentials Core-MOD-1.MV.X-1.X.X.jar (mandatory)
│   ├── Project Essentials Cooldown-1.MV.X-1.X.X.jar (recommended)
│   ├── Project Essentials Permissions-1.MV.X-1.X.X.jar (recommended)
│   └── Project Essentials Spawn-1.MV.X-1.X.X.jar
└── ...
```

### **Dependencies**

Also **do not forget** to install dependencies, only two types of dependencies: **mandatory** (*game will not start without a mod*) and **recommended** (*without a mod, game can start, but I recommend using it*).

#### **Download dependencies**: [Cooldown](https://github.com/ProjectEssentials/ProjectEssentials-Cooldown) · [Core](https://github.com/ProjectEssentials/ProjectEssentials-Core) · [Permissions](https://github.com/ProjectEssentials/ProjectEssentials-Permissions)

### Last step!

Now try to start the game, go to the `mods` tab, if this modification is displayed in the `mods` tab, then the mod has been **successfully installed.**

## Configuration

### Configuration location

```
.minecraft/config/ProjectEssentials/spawn.json
```

## Commands and Permissions

| Command name     | Aliases                                     | Permission          | Op level | Description                                                                                                                                            |
| ---------------- | ------------------------------------------- | ------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `/spawn`         | `/espawn`                                   | `ess.spawn`         | `0`      | Teleport you to server spawn point.                                                                                                                    |
| `/setspawn`      | `/esetspawn`, `spawnpoint`, `setworldspawn` | `ess.spawn.set`     | `4`      | Set new spawn point at player position *(taken into account: x, y, z positions, camera rotate yaw and camera rotate pitch)* on server or client world. |
| `/spawn reload`  | `none`                                      | `ess.spawn.reload`  | `4`      | Just reload spawn configuration **WITHOUT SAVING!**                                                                                                    |
| `/spawn save`    | `none`                                      | `ess.spawn.save`    | `4`      | Save spawn configuration.                                                                                                                              |
| `/spawn version` | `none`                                      | `ess.spawn.version` | `3`      | Print in command line version and some info about spawn module. If command executed by player then it information will be sent for player in chat.     |

## If you have any questions or encounter a problem, be sure to open an [issue](https://github.com/ProjectEssentials/ProjectEssentials-Spawn/issues/new/choose)
