Skip to main content

Harb (TDM)

Harb is a team deathmatch map where you help your team in getting the most kills in 10 minutes. Players spawn with a permanent speed effect and TNT that instantly ignites when placed in the world, making it frantic and fast paced.

Source: Harb by SH4D0W_HAWK and Plastix Players spawn on opposite ends of the map and can run around with infinite speed.

The large spawn island for harb, where players initially spawn at when the map is loaded.

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

<map proto="1.4.2">
<!-- Specifies what the map is called -->
<!-- States what version the map is -->
<!-- Tells the teams what the objective is in order to win the game -->
<objective>Be the team with the least amount of deaths after 10 minutes.</objective>
<!-- States who made the map -->
<author uuid="1379cb6e-f291-4498-9807-e636f9674ac0"/> <!-- SH4D0W_HAWK -->
<author uuid="ef4ea031-998f-4ec9-b7b6-1bdd428bcef8"/> <!-- Plastix -->

➡️ Define the teams' colors, names, and how many people can be on each team.

<team id="blue-team" color="blue" max="32">Blue</team>
<team id="red-team" color="dark red" max="32">Red</team>

➡️ Define the kit that players will receive.

<kit id="spawn-kit">
<item slot="0" unbreakable="true" material="stone sword"/>
<item slot="1" unbreakable="true" material="bow">
<item slot="28" material="arrow"/>
<item slot="2" material="golden apple"/>
<item slot="3" amount="32" material="ladder"/>
<item slot="4" amount="2" material="tnt"/>
<helmet unbreakable="true" team-color="true" material="leather helmet"/>
<chestplate unbreakable="true" team-color="true" material="leather chestplate">
<enchantment level="3">protection explosions</enchantment>
<leggings unbreakable="true" material="chainmail leggings">
<enchantment level="3">protection projectile</enchantment>
<boots unbreakable="true" material="iron boots"/>
<potion duration="6s">heal</potion>
<potion duration="6s">damage resistance</potion>

➡️ Specify where the previously defined teams will spawn, the kit they will spawn with, and what direction they face.

<spawns safe="true" sequential="true" kit="spawn-kit">
<spawn team="blue-team">
<cuboid min="-15,32,-57" max="16,42,-32"/>
<spawn team="red-team" yaw="180">
<cuboid min="-15,32,33" max="16,42,58"/>
<default yaw="90">
<cuboid min="-75.5,42.5,-0.5" max="-73.5,42.5,1.5"/>

➡️ Define the filters on the map and determine which events are allowed.

<!-- Always deny if the queried material is TNT -->
<deny id="no-tnt">

➡️ These regions reference the filters defined above and states where they will work.

<union id="playable">
<rectangle id="main-area" min="-50,-32" max="51,33"/>
<union id="bases">
<rectangle id="blue-base" min="-20,-62" max="21,-32"/>
<rectangle id="red-base" min="-20,33" max="21,63"/>
<complement id="portals-area">
<rectangle min="-56,-2" max="57,3"/>
<region id="main-area"/>
<!-- applicators -->
<apply region="portals-area" block="never"/> <!-- Nothing can destroy blocks inside portals-area -->
<apply region="bases" block="no-tnt" message="You may not place TNT in the bases."/>
<apply region="playable" leave="never" message="You can't leave the map!"/>

➡️ Define the portals that players can walk through.

<!-- Moves the player +110 blocks in the X axis, coordinates are relative -->
<portal x="110">
<cuboid min="-56,33,-1" max="-55,35,2"/>
<portal x="-110">
<cuboid min="56,33,-1" max="57,35,2"/>

➡️ Set a 10 minute time limit for the map. The team with the most points after time is up wins.

<!-- Gain 1 point for killing a player, team with most points after 10 minutes wins -->

➡️ We do not 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>stone sword</tool>
<!-- If the player has these item, it will be saved in their inventory -->
<item>golden apple</item>
<!-- All of these items will be automatically removed when dropped -->
<item>leather helmet</item>
<item>leather chestplate</item>
<item>chainmail leggings</item>
<item>iron boots</item>
<item>glowstone dust</item>

➡️ Reward players by giving a golden apple for killing an enemy.

<!-- Player gets a golden apple after killing a player -->
<item material="golden apple"/>

➡️ This makes TNT instantly ignite when placed and prevent it from damaging any blocks.

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

➡️ Use the disable damage module to configure who gets damage from TNT explosions.

<!-- TNT damages enemies and self, but not teammates -->
<damage ally="true" self="false" enemy="false" other="false">block explosion</damage>

➡️ Players do not need to worry about hunger in this map, so hunger is disabled.

<!-- Prevent hunger from depleting -->

➡️ Close the main <map> module.