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 -->
<version>1.2.10</version>
<!-- 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 -->
<authors>
<author uuid="e5953ddf-c1fc-4405-9ac9-6939631cd185"/> <!-- McSpider -->
</authors>

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

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

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

<maxbuildheight>25</maxbuildheight>

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

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

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

<filters>
<all id="only-blue">
<team>blue</team>
</all>
<all id="only-red">
<team>red</team>
</all>
<all id="no-beacon">
<not>
<material>beacon</material>
</not>
</all>
</filters>

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

<regions>
<!-- 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"/>
</apply>
<!-- 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"/>
</apply>
<!-- 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"/>
</apply>
<!-- 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"/>
</apply>
<!-- 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"/>
</negative>
</apply>
<!-- 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"/>
</apply>
<!-- Players can't use (right click) beacon blocks -->
<apply use="no-beacon">
<region id="playable"/>
</apply>
</regions>

➡️ 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>
<destroyable owner="red">
<cuboid min="-44,16,-24" max="-45,14,-25"/>
</destroyable>
</destroyables>
<!-- The monuments which are made of obsidian will turn into beacon blocks in 20 minutes -->
<modes>
<mode material="beacon" after="20m"/>
</modes>

➡️ Defines the spawn kit that all players get.

<kits>
<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>
</kit>
</kits>

➡️ 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 -->
<toolrepair>
<tool>diamond axe</tool>
<tool>diamond pickaxe</tool>
<tool>iron spade</tool>
<tool>bow</tool>
</toolrepair>
<!-- All of these items will be automatically removed when dropped -->
<itemremove>
<item>arrow</item>
<item>iron chestplate</item>
<item>iron boots</item>
<item>glass</item>
<item>wood</item>
<item>log</item>
<item>cooked fish</item>
<item>obsidian</item>
<item>beacon</item>
<item>redstone block</item>
<item>golden apple</item>
</itemremove>

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

<killreward>
<item>golden apple</item>
</killreward>

➡️ 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 -->
<tnt>
<instantignite>on</instantignite>
<friendly-defuse>off</friendly-defuse>
</tnt>

➡️ Close the main <map> module.

</map>