<map proto="1.4.0">
<name>Ghost Spleef</name>
<version>1.0.5</version>
<authors>
    <author uuid="e79fbdc9-627e-4dac-97a6-81a3046220d7" />
    <!-- AtlasGames -->
</authors>
<objective>Be the last player standing!</objective>
<gamemode>arcade</gamemode>
<broadcasts>
    <alert after="10s" filter="ghost-only" every="30s">You can fly as a ghost!</alert>
</broadcasts>
<blitz>
    <lives>1</lives>
    <broadcastLives>true</broadcastLives>
</blitz>
<time result="survivor-team">60s</time>
<teams>
    <team id="ghost-team" color="gray" min="1" max="2" max-overfill="2">Ghost</team>
    <team id="survivor-team" color="gold" min="3" max="6" max-overfill="6" plural="true">Survivors</team>
</teams>
<spawns>
    <spawn team="survivor-team" kit="spawn-kit" spread="true" angle="-164.5,40,113.5">
        <regions>
            <cylinder base="-165,26,113" radius="25" height="1" />
        </regions>
    </spawn>
    <spawn team="ghost-team" kit="ghost-kit">
        <regions>
            <point>-164.5,40,113.5</point>
        </regions>
    </spawn>
    <default>
        <regions yaw="0">
            <point>-164.5,45,113.5</point>
        </regions>
    </default>
</spawns>
<kits>
    <kit id="spawn-kit">
        <double-jump power="2" />
        <helmet locked="true">snow block</helmet>
        <chestplate locked="true">chainmail chestplate</chestplate>
        <leggings locked="true">leather leggings</leggings>
        <boots locked="true">iron boots</boots>
        <item amount="16" slot="0">snow block</item>
        <item amount="64" slot="1">snow ball</item>
        <item amount="64" slot="2">snow ball</item>
    </kit>
    <kit id="ghost-kit" potion-particles="false" force="true">
        <double-jump enabled="false" />
        <helmet>air</helmet>
        <chestplate>air</chestplate>
        <leggings>air</leggings>
        <boots>air</boots>
        <fly flying="true" fly-speed="0.3" can-fly="true" />
        <potion amplifier="1" duration="oo">invisibility</potion>
        <potion amplifier="10" duration="oo">damage resistance</potion>
        <potion amplifier="1" duration="oo">fire resistance</potion>
        <item slot="0" unbreakable="true" enchantment="dig speed:6">iron spade</item>
        <item slot="1">air</item>
        <item slot="2">air</item>
        <foodlevel>6</foodlevel>
    </kit>
</kits>
<hunger>
    <depletion>off</depletion>
</hunger>
<gamerules>
    <doFireTick>false</doFireTick>
</gamerules>
<disabledamage>
    <damage>fall</damage>
</disabledamage>
<itemremove>
    <item>snow block</item>
    <item>snow ball</item>
    <item>chainmail chestplate</item>
    <item>leather leggings</item>
    <item>iron boots</item>
    <item>iron spade</item>
</itemremove>
<regions>
    <cylinder id="snow-area" base="-165,24,113" radius="30" height="1" />
    <apply region="everywhere" block-place="snow-place" />
    <apply region="everywhere" block-break="snow-break" />
    <below y="26" id="no-ghosts"></below>
    <apply enter="only-survivor" region="no-ghosts" message="You may not fly this low!"/>
</regions>
<filters>
    <not id="not-ghost">
        <team>ghost-team</team>
    </not>
    <team id="ghost-only">ghost-team</team>
    <all id="snow-place">
        <team>survivor-team</team>
        <material>snow block</material>
        <region id="snow-area" />
    </all>
    <all id="snow-break">
        <team>ghost-team</team>
        <material>snow block</material>
    </all>
    <team id="only-survivor">survivor-team</team>
</filters>
<disabledamage>
    <damage>entity attack</damage>
</disabledamage>
<include src="blitz-global.xml" />
<include src="tutorial.xml" />
<tutorial>
    <stage title="Ghost Spleef">
        <message>
            <line>Welcome to Ghost Spleef</line>
        </message>
        <teleport>
            <point yaw="-165" pitch="30">-165,45,113</point>
        </teleport>
    </stage>
    <stage title="The Objective">
        <message>
            <line>Players must avoid the ghost to stay alive.</line>
            <line>Pick up dye to score points and use snowballs to knock your competition away.</line>
        </message>
    </stage>
    <stage title="The Ghost">
        <message>
            <line>The Ghost must spleef the remaining players to win.</line>
            <line>You may not score any points as the ghost so spleef to win!</line>
        </message>
        <teleport>
            <point yaw="-157">-165.5,26,116.2</point>
        </teleport>
    </stage>
    <stage title="Good Luck">
        <message>
            <line>and have fun!</line>
        </message>
    </stage>
</tutorial>
<crafting>
    <disable>snow block</disable>
</crafting>
</map>