-
Notifications
You must be signed in to change notification settings - Fork 83
Simple dungeon
This tutorial is supposed to explain the creation and setup of a most basic PvE single floor dungeon. It is assumed that you have read and understood "Getting started". Enter the edit mode (/dxl edit SimpleDungeon).
First of all, a dungeon needs a lobby where the players can gather and start it all at once. In the lobby, most, but not all signs including mob spawners are by design not yet instantiated.
The lobby spawn position is marked with a lobby sign. The sign which starts the game is ready. In most cases, a ready sign does not need to specify a game type. It also generates its own interact trigger, so everything but the identifying first line can be left empty.
TODO: IMAGE
Now that our lobby is created, let us focus on the game part. The game part is where the players actually play whatever you have built. When all players click the ready sign, they are teleported to the position of the start sign and all remaining signs - like mob spawners - get initialized. The game part finishs with an end sign that has its own built-in interact trigger if nothing is specified just like the ready sign.
TODO: IMAGE
Naturally, not all assumptions DungeonsXL makes about how a server admin would like their dungeon to work match their needs. A common problem is that by default, players get their status reset upon joining and restored upon leaving a dungeon; admins however would often like them to use the equipment players collected in the main world. The solution to this is the game rule system. Changing them requires access to the server files.
In most cases, game rules are to be set in the floor configuration. To do so, manually create a file called config.yml at plugins/DungeonsXL/maps/SimpleDungeon/config.yml. DungeonsXL will not create it automatically because it is fully optional.
Add the values you need - and only the ones you need! - save the file and reload DungeonsXL through /dxl reload.
keepInventoryOnEnter: true
keepInventoryOnFinish: true
keepInventoryOnEscape: true
Alternatively if you feel that you need a non-default setting in most, if not all of your dungeons, you can avoid the need to set the values again and again in each single floor config by setting it to the default section of the main configuration:
default:
keepInventoryOnEnter: true
keepInventoryOnFinish: true
keepInventoryOnEscape: true
These values will be used in all dungeons unless their respective floor config overrides them. Take care of the indentation. Values that are not indented into the default section cannot be read.
https://cdn.discordapp.com/attachments/627633469014409256/698629381547098153/Test_1.15.2.zip
Wiki: © 2015-2021 Daniel Saukel and contributors, licensed under CC BY-SA (only unless otherwise stated)
- General information
- General setup and usage
- Dungeon setup
- Signs
- Game rules
- Linked dungeon configuration
- Dungeon world configuration
- Details
- Examples (WIP)
- Simple dungeon
- Bedwars TODO
- PVP arena TODO
- Mob arena TODO
- Tutorial TODO
- Data structure guide
- FAQ