Worlds.yml
Used to register the worlds that will be used within their respective game instances.
This is an example of structure that the file should follow:
worlds:
βββ minigameName:
β βββ mapKey: (unused)
β βββ name: "World folder name"
β βββ pois:
β βββ "poi1":
β β βββ -x
β β βββ -y
β β βββ -z
β β βββ -pitch
β β βββ -yaw
β βββ "poi2":
β βββ -x
β βββ -y
β βββ -z
βββ minigameName2:
βββ mapKey: (unused)
βββ name: "World folder name"
When the file is created for the first time, it will have this content:
worlds:
For each mini-game we will have to place its name as a key.
worlds:
myminigame:
Within this key we will have to place all the worlds that will be admitted within the mini-game.
worlds:
myminigame:
template1:
template2:
Within each key of a world comes what is important. These are the parameters:
name
True
String
The name of the world folder inside the templates folder. Serves as an id.
pois
False
List
It is a list of keys containing the coordinates of a point of interest on the map.
An example:
worlds:
myminigame:
template1:
name: "minigameWorld1"
pois:
spawnpoint:
- 8.5
- 64.0
- 8.5
template2:
name: "minigameWorld2"
pois:
spawnpoint:
- 32.5
- 64.0
- 32.5
The point of the pois is that for a certain minigame you always have the same pois, but maybe with different values, since these pois can then be obtained by you within the instance of your minigame as a Location and used, for example, to teleport a player to that location.
Last updated