Skip to content

Create & Set Arena

GoldenPotato137 edited this page Jul 27, 2022 · 2 revisions

Find A Suitable Place

The snake in this game can move on the same level, that is, as long as we can create a height difference, we can limit the range of movement of the snake, and the game field will come out naturally.

Generally speaking, suitable places for playing games are: plains, islands, and mountain tops even indoors. As long as there is a height difference around (or surrounded by lava or water), it can be used as a playground.

Create New Arena

Because the command of /snake create to create a field is based on the current location to generate a snake's spawn point, so we need to select a place where the snake is born in advance and stand there to create a new field

A new arena can be created with the following command.

/snake create <name> <minimum number of snakes> <maximum number of snakes> <players per snake: 1/2/4>

Set More Spawn Point

The number of spawn points must be MORE than the number of snakes

Because the initial movement direction of the snake is the -x direction, please reserve more space in this direction to give players enough time to react.

Spawn points should not be too close to prevent players from confusing their own spawn points (players will be teleported to their snake's spawn point at the start of the game).

It is recommended to use a special block as the floor to mark the spawn point.

You can use the following command to add more respawn points to the arena at your current location.

/snake set <arena name> beginPos

Set Food Spawn Points

In this game, the food generation location is fixed. Each food generation point will randomly generate food with a certain probability.

Food has a lifespan. After the survival period, the food will disappear until the next time the food is randomly generated.

You can spawn a food spawn point at your current location with the following command

/snake set <venue name> <food point name> <survival time: 10 units corresponds to 1 second> <refresh probability: between 10-30 is appropriate> <food type: NORMAL/LEFT/RIGHT/UP/DOWN>

It is recommended to use a special block to mark the floor of the food generation point, which is convenient for players to observe (of course, you can also choose not to put it, and the player will face greater uncertainty).

It is recommended to enter /snake status <arena name> after completing the settings to view the arena details and check whether it is as expected.

Set Lobby & Leave Position

Just like other mini games, players who join the arena will be teleported and wait for the start in the corresponding lobby.

You can set the lobby positon to your current position with the following command

/snake set <arena name> lobbyPos

Also, you can set leave position. Player who leave this arena will be teleported to leave position.

/snake set <arena name> leavePos

Save Changes

All modified settings must be saved by entering the save command

Otherwise the changes will be lost when the server is shut down or the configuration is reloaded.

You can save changes with the following command

/snake save

Advanced Settings

Game victory conditions and commands executed after victory or defeat need to be set manually at the configuration file. (Commands will be added in the future to set directly in the game)

Before adjusting the file, please input /snake save to save what you just modified, otherwise the modification will disappear after reloading the file later!

It is very dangerous to directly add entries. It is recommended to modify only the values of certain configurations when operating the configuration file.

Take out the text editing tool you are used to and open arenas.yml in the plugin configuration directory

You can check the meaning of the corresponding key value here

After completing the modification, enter the following command to reload the arena configuration.

/snake reload

All Done!

Join the game to test and play!

You can enter /snake status <arena name> to view the arena details.