Diversion Network
Documentation

Contents

  • Main
  • Rules
  • Hub
  • Parties and Friends
  • Minigames

  • Playing Games
  • CaptureTheFlag
  • Dual MonumentRush
  • Quad MonumentRush
  • Quake
  • BridgeWars
  • Skywars
  • TeamDeathMatch
  • Mixed Arcade
  • DNCloud

  • Basics
  • Development Resources

  • Map Development Guide
  • Map Configuration Guide

  • Privacy Policy
  • Map Configuration Guide

    Contents


    Areas

    Areas are sections of the map that can do given actions.

    Not every map uses areas, but most do, so it's an important thing to explain here.

    Areas are used for a lot of things, like protecting spawns from being broken and the giving of points in scoreboxes.

    Because of this amazing customization, it's also the most complicated part of a mapfig.

    To keep it understandable, we try to use clear area names and logical ordering.


    Coordinates:

    Every area requires set coordinates. Without these, areas won't be useful.

    To put a set of coordinates in an area, you need two opposing corners.

    WorldEdit is a really nice tool for this.

    Once you found the correct locations, you need to put in your area like this:

    spawn coords[ 75,110,-4,86,121,4 ] <

    Often areas have the same information. Meaning the only differences are the coordinates.

    This allows you to combine them into one area:

    spawns coords[ 75,110,-4,86,121,4 -75,110,-4,-86,121,4 ] <

    Even though this is great, it looks a bit confusing.

    To fix this, we can add more information in behind using comments:

    spawns coords[ 75,110,-4,86,121,4 // aSpawn -75,110,-4,-86,121,4 // bSpawn ] <

    The extra information is often written in camelCase, meaning the first letter is lowercase and all first letters of the following words are uppercase.

    Make sure to put the bracket underneath the last coordinate.


    Team Levels:

    Often you want actions to only work on specific teams.

    Because it's used so much, you're required to have team levels in most areas.

    If you would like to allow the placing of sponge by team 'b' for example, you would do this:

    b canplace[ sponge ] <

    If you want both team 'a' and 'b' to be able to place sponge, you would have to add both team levels.

    This allows you to have a teleportation area, which teleports the teams to different locations.


    List Compacting:

    Sometimes you might need to have an area to give effects, but you still want to allow players to break blocks.

    Instead of having to add a big list of all blocks they might have, you can compact your list with a '*'.

    This symbol means "all options".

    In a canbreak list, it would allow the breaking of all blocks:

    canplace[ * ]

    If you want to allow players to break all blocks, except for a few, it might still be good to use the '*' symbol.

    You can remove blocks from this list again by adding a '-' in front.

    This example would allow the placing of all blocks, except for diamond blocks:

    canplace[ * -diamond_block ]

    These list compacting options can be used for damage lists too.

    This would cancel all damage, except for projectiles:

    canceldamage[ * -shot ]