The Fenland (DTM)

The Fenland is a Destroy the Monument map where you have to destroy the other team's obsidian monument to win the game. Players fight with diamond axes and spawn with their own building materials.

Because of the lakes in the middle, a lot of the action takes place on the edges of the map, and on sky bridges built over the centre of the map.

The monument is made of two obsidian blocks that are protected by cobblestone slabs and wooden fences. All players spawn with diamond pickaxes necessary to break them.

➡️ Every map XML file starts with the XML header and then the base <map> module.

<?xml version="1.0"?>
<map proto="1.4.2">
<!-- Specifies what the map is called -->
<name>The Fenland</name>
<!-- States what version the map is -->
<!-- Tells the teams what the objective is in order to win the game -->
<objective>Break the obsidian from the enemy team's monument.</objective>
<!-- States who made the map -->
<author uuid="e5953ddf-c1fc-4405-9ac9-6939631cd185"/> <!-- McSpider -->

➡️ Defines the teams colors, names and how many people can be on the teams.

<team color="dark red" max="14">Red</team>
<team color="blue" max="14">Blue</team>

➡️ This specifies how high players can build however it doesn't stop them from going over this limit.


➡️ Defines the spawn areas and the kit each team gets.

<spawns kit="spawn" safe="true">
<spawn team="red" yaw="-90">
<cuboid min="-43,11,-2" max="-46,11,3"/>
<spawn team="blue" yaw="90">
<cuboid min="44,11,3" max="47,11,-2"/>
<default yaw="180">
<cuboid min="-3,25,-44" max="3,25,-50"/>

➡️ Defines the filters on the map and determines which events are allowed.

<all id="only-blue">
<all id="only-red">
<all id="no-beacon">

➡️ Defines regions that can be later used to apply spawns, filters, etc

<!-- Only the Red Team can enter their own spawn -->
<apply enter="only-red" message="You may not enter the enemy team's base!">
<cuboid min="-49,13,-4" max="-40,10,4"/>
<!-- Red Spawn can never be damaged -->
<apply block="never" message="You may not modify the base!">
<cuboid min="-49,7,5" max="-36,16,-4"/>
<!-- Only the Blue Team can enter their own spawn -->
<apply enter="only-blue" message="You may not enter the enemy team's base!">
<cuboid min="49,13,4" max="41,10,-4"/>
<!-- Blue Spawn can never be damaged -->
<apply block="never" message="You may not modify the base!">
<cuboid min="50,7,-4" max="37,16,5"/>
<!-- Players can't build outside of the playable area -->
<apply block="never" message="You may not build outside the playing area!">
<negative id="playable-inverse">
<cuboid id="playable" min="64,0,-38" max="-63,31,39"/>
<!-- Players can't enter the observer spawn island -->
<apply enter="never" message="Don't enter the observers spawn area!">
<cylinder base="0.5,19,-46.5" radius="6" height="oo"/>
<!-- Players can't use (right click) beacon blocks -->
<apply use="no-beacon">
<region id="playable"/>

➡️ This specifies what material the monuments are made of, and where each monument belongs to.

<destroyables name="Monument" materials="obsidian" completion="100%" mode-changes="true">
<destroyable owner="blue">
<cuboid min="46,16,26" max="45,14,25"/>
<destroyable owner="red">
<cuboid min="-44,16,-24" max="-45,14,-25"/>
<!-- The monuments which are made of obsidian will turn into beacon blocks in 20 minutes -->
<mode material="beacon" after="20m"/>

➡️ Defines the spawn kit that all players get.

<kit id="spawn">
<item slot="0" enchantment="durability:1">diamond axe</item>
<item slot="1" enchantment="arrow infinite:1">bow</item>
<item slot="2">diamond pickaxe</item>
<item slot="3">iron spade</item>
<item slot="4" amount="64">log</item>
<item slot="5" amount="32">glass</item>
<item slot="7" amount="4">gold nugget</item>
<item slot="8" amount="32">cooked fish</item>
<item slot="28">arrow</item>
<chestplate enchantment="protection projectile:2">iron chestplate</chestplate>
<boots>iron boots</boots>

➡️ We don't want an excessive amount of items dropped on the map, so this allows us to manage how to deal with dropped items more easily.

<!-- These items will drop, players that already have these items can pick it up and will be merged -->
<tool>diamond axe</tool>
<tool>diamond pickaxe</tool>
<tool>iron spade</tool>
<!-- All of these items will be automatically removed when dropped -->
<item>iron chestplate</item>
<item>iron boots</item>
<item>cooked fish</item>
<item>redstone block</item>
<item>golden apple</item>

➡️ Give players a goldn apple for killing an enemy.

<item>golden apple</item>

➡️ TNT will instantly ignite when placed, and teammates can't defuse their own team's TNT.

<!-- TNT will automatically ignite when placed -->
<!-- TNT will not break any blocks but still cause damage to players -->
<!-- Players can't defuse a teammate's TNT -->

➡️ Close the main <map> module.