<?xml version="1.0"?>
<map proto="1.3.3">
<name>Facility</name>
<version>1.1.0</version>
<objective>Be the team with the most points after 10 minutes.</objective>
<authors>
    <author uuid="e8d1ad63-bd9e-4d0e-9a6c-27f2b047d924" contribution="Overall Map Design and XML Code"/> <!-- Mikeg542 -->
</authors>
<contributors>
    <contributor uuid="8807d876-40f9-470f-9fcf-3eb3d146b983" contribution="Feedback"/> <!-- Skippy_Irongut -->
    <contributor uuid="e1e9e6af-f826-44ce-b1e2-5efb4e5c5d9e" contribution="Feedback"/> <!-- Zemphon -->
    <contributor uuid="2ca8072f-74be-4798-85b8-bbce03aa91af" contribution="Feedback"/> <!-- Tywnis -->
    <contributor uuid="06078e7e-6a7b-4d31-8f74-853072b182bb" contribution="Feedback"/> <!-- xXFracXx -->
	  <contributor uuid="06d2c58b-0306-46e8-8853-11c540c03bb7" contribution="Support"/> <!-- PikminWarrior -->
</contributors>
<include src="tutorial.xml"/>
<tutorial>
    <stage title="Team Death Match">
        <message>
            <line>This map is a `a`lTeam Death Match `r(TDM) map</line>
            <line>The objective is to get the most points within 12 minutes.</line>
        </message>
        <teleport>
            <point yaw="180" pitch="45">-107,9,112</point>
        </teleport>
    </stage>
    <stage title="Spawn">
        <message>
            <line>`rThis is where you spawn when the match starts, you die or you get into a scorebox.</line>
            <line>`rYou can use diamonds that spawn in the map to buy items from the villager!</line>
        </message>
        <teleport>
            <point yaw="-135" pitch="0">-110,7,160</point>
        </teleport>
    </stage>
    <stage title="Spawners">
        <message>
            <line>The spawner in the centre of the map gives `bDiamonds `r.</line>
            <line>You can not use the diamonds to craft armor or weapons, but you can use them to buy items in your spawn.</line>
			<line>There are also arrow spawners in the two rooms on either side in case you run out.</line>
        </message>
        <teleport>
            <point yaw="180" pitch="45">-107,9,112</point>
        </teleport>
    </stage>
    <stage title="Score Boxes">
        <message>
            <line>There are 2 scoreboxes on either side of each teams spawn. Getting into one earns you 2 points.</line>
            <line>After entering a scorebox successfully, you will be teleported back to your spawn.</line>
        </message>
        <teleport>
            <point yaw="0" pitch="0">-136,8,135</point>
        </teleport>
    </stage>
</tutorial>
<teams>
    <team color="dark red" max="14">Red</team>
    <team color="blue" max="14">Blue</team>
</teams>
<kits>
    <kit name="spawn">
        <item slot="0" unbreakable="true">stone sword</item>
        <item slot="1" unbreakable="true">bow</item>
        <item slot="8" amount="12">arrow</item>
    </kit>
    <kit name="red" parents="spawn">
        <helmet color="cd0000" unbreakable="true">leather helmet</helmet>
        <chestplate color="cd0000" unbreakable="true">leather chestplate</chestplate>
        <leggings unbreakable="true">chainmail leggings</leggings>
        <boots color="cd0000" enchantment="protection fall:2" unbreakable="true">leather boots</boots>
    </kit>
    <kit name="blue" parents="spawn">
        <helmet color="0066cc" unbreakable="true">leather helmet</helmet>
        <chestplate color="0066cc" unbreakable="true">leather chestplate</chestplate>
        <leggings unbreakable="true">chainmail leggings</leggings>
        <boots color="0066cc" enchantment="protection fall:2" unbreakable="true">leather boots</boots>
    </kit>
</kits>
<itemremove>
    <item>bow</item>
    <item>stone sword</item>
    <item>iron sword</item>
    <item>diamond sword</item>
    <item>blaze rod</item>
    <item>leather helmet</item>
    <item>leather chestplate</item>
    <item>chainmail leggings</item>
    <item>leather boots</item>
    <item>potion</item>
    <item>glass bottle</item>
    <item>golden apple</item>
</itemremove>
<spawns>
        <spawn team="red" kit="red" yaw="90">
            <cylinder base="-101,4,41" radius="1" height="1"/>
        </spawn>
        <spawn team="blue" kit="blue" yaw="-90">
            <cylinder base="-113,4,157" radius="1" height="1"/>
        </spawn>
        <default yaw="-90">
            <cylinder base="-77,15,99" radius="2" height="1"/>
        </default>
</spawns>
<filters>
    <filter name="no-red" parents="deny-all">
        <allow><team>blue</team></allow>
    </filter>
    <filter name="no-blue" parents="deny-all">
        <allow><team>red</team></allow>
    </filter>
</filters>
<score>
    <time>10m</time>
    <box value="2" filter="no-blue" cooldown="10">
		    <cuboid name="redscore1" min="-140,8,147" max="-135,12,148"/>  
    </box>
    <box value="2" filter="no-blue" cooldown="10">
		    <cuboid name="redscore2"  min="-74,8,147" max="-79,12,148"/>             		
    </box>
    <box value="2" filter="no-red" cooldown="10">  
            <cuboid name="bluescore1"  min="-135,8,52" max="-140,12,50"/>  			
    </box>
    <box value="2" filter="no-red" cooldown="10">
            <cuboid name="bluescore2"  min="-74,8,52" max="-79,12,50"/>  			
    </box>
</score>
<portals>
    <portal x="@-101" y="@4" z="@41" yaw="@90">
		    <cuboid min="-140,8,147" max="-135,12,148"/>   
    </portal>
    <portal x="@-101" y="@4" z="@41" yaw="@90">
		    <cuboid min="-74,8,147" max="-79,12,148"/>     
    </portal>
    <portal x="@-113" y="@4" z="@157" yaw="@-90">
            <cuboid min="-135,8,52" max="-140,12,50"/>    
    </portal>
    <portal x="@-113" y="@4" z="@157" yaw="@-90">
            <cuboid min="-74,8,52" max="-79,12,50"/>  
    </portal>
</portals>
<regions>
    <apply block="deny-all" message="You may not modify blocks!">
         <rectangle min="-149,167" max="-63,35"/>
    </apply>
    <apply enter="no-red" message="You may not enter the enemies spawn!">
         <rectangle min="-93,144" max="-121,164"/>
    </apply>
    <apply enter="no-blue" message="You may not enter the enemies spawn!">
         <rectangle min="-121,54" max="-93,35"/>
    </apply>
    <apply enter="no-blue" message="You may not enter your own scorebox!">
		<cuboid min="-140,8,145" max="-135,12,148"/>  
		<cuboid min="-74,8,145" max="-79,12,148"/>  
    </apply>
    <apply enter="no-red" message="You may not enter your own scorebox!">
        <cuboid min="-135,8,54" max="-140,12,50"/>  	
        <cuboid min="-74,8,54" max="-79,12,50"/>   
    </apply>
</regions>
<killreward>
    <item>golden apple</item>
</killreward>
<killreward>
    <filter>
        <kill-streak count="2"/>
    </filter>
    <item>diamond</item>
</killreward>
<killreward>
    <filter>
        <kill-streak count="3"/>
    </filter>
    <item damage="16421">potion</item>
</killreward>
<killreward>
    <filter>
        <kill-streak count="4"/>
    </filter>
    <item amount="5">diamond</item>
</killreward>
<killreward>
    <filter>
        <kill-streak count="5"/>
    </filter>
    <item damage="8229" amount="2">potion</item>
    <item damage="8194" amount="2">potion</item>
</killreward>
<killreward>
    <filter>
        <kill-streak count="9"/>
    </filter>
    <item>diamond sword</item>
</killreward>
<timelock>on</timelock>
<multitrade/>
<hunger>
    <depletion>off</depletion>
</hunger>
</map>