Skip to content

Instantly share code, notes, and snippets.

@Electroid
Created July 2, 2014 21:53
Show Gist options
  • Select an option

  • Save Electroid/0fb0561b3b47e423824d to your computer and use it in GitHub Desktop.

Select an option

Save Electroid/0fb0561b3b47e423824d to your computer and use it in GitHub Desktop.

Revisions

  1. Electroid created this gist Jul 2, 2014.
    172 changes: 172 additions & 0 deletions map.xml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,172 @@
    <?xml version="1.0"?>
    <map proto="1.3.3">
    <name>CTF</name>
    <version>0.1</version>
    <objective>Capture the other team's flag and return it to your base!</objective>
    <authors>
    <author>ElectroidFilms</author>
    </authors>
    <teams>
    <team color="dark red" max="8" max-overfill="12">Red Team</team>
    <team color="blue" max="8" max-overfill="12">Blue Team</team>
    </teams>
    <spawns>
    <spawn team="blue" kit="blue-reg" yaw="-90">
    <cuboid min="131,17,186" max="133,18,189"/>
    </spawn>
    <spawn team="red" kit="red-reg" yaw="90">
    <cuboid min="3,17,233" max="1,18,230"/>
    </spawn>
    <default kit="obs" yaw="-135">
    <point>8.5,29,226.5</point>
    </default>
    </spawns>
    <kits>
    <kit name="obs" potion-particles="false">
    <potion duration="oo">night vision</potion>
    <potion duration="oo">saturation</potion>
    </kit>
    <kit name="teams-reg" potion-particles="false">
    <item slot="0" name="`aLazer `7- Multi-purpose projectile and melee weapon" damage="-3000" attributes="generic.attackDamage:add:10" enchantment="arrow infinite:1;arrow damage:10;damage all:10">bow</item>
    <item slot="27">arrow</item>
    <chestplate color="191919" damage="-3000" locked="true">leather chestplate</chestplate>
    <leggings color="191919" damage="-3000" locked="true">leather leggings</leggings>
    <boots color="191919" damage="-3000" locked="true">leather boots</boots>
    <potion duration="oo">saturation</potion>
    </kit>
    <kit name="blue-reg" parents="teams-reg">
    <helmet color="334CB2" damage="-3000" locked="true">leather helmet</helmet>
    </kit>
    <kit name="red-reg" parents="teams-reg">
    <helmet color="993333" damage="-3000" locked="true">leather helmet</helmet>
    </kit>
    <kit name="teams-flag" potion-particles="false" force="true">
    <item slot="0" name="`aLazer `7- Multi-purpose projectile and melee weapon" damage="-3000" attributes="generic.attackDamage:add:10" enchantment="arrow infinite:1;arrow damage:10;damage all:10">bow</item>
    <item slot="27">arrow</item>
    <chestplate damage="-3000" locked="true">iron chestplate</chestplate>
    <leggings color="999999" damage="-3000" locked="true">leather leggings</leggings>
    <boots color="999999" damage="-3000" locked="true">leather boots</boots>
    <potion duration="oo">saturation</potion>
    <potion duration="oo">night vision</potion>
    <potion duration="oo">speed</potion>
    <potion duration="oo" amplifier="2">jump</potion>
    </kit>
    <kit name="blue-flag" parents="teams-flag" force="true">
    <helmet damage="11" locked="true">wool</helmet>
    <item slot="7" damage="-3000" enchantment="dig speed:10" attributes="generic.attackDamage:add:1" name="`bPickaxe `7- Break the iron block at your base and place the `9flag">diamond pickaxe</item>
    <item slot="8" damage="11" name="`9Blue Flag `7- Place this back at your base!">wool</item>
    </kit>
    <kit name="red-flag" parents="teams-flag" force="true">
    <helmet damage="14" locked="true">wool</helmet>
    <item slot="7" damage="-3000" enchantment="dig speed:10" attributes="generic.attackDamage:add:1" name="`bPickaxe `7- Break the iron block at your base and place the `9flag">diamond pickaxe</item>
    <item slot="8" damage="14" name="`cRed Flag `7- Place this back at your base!">wool</item>
    </kit>
    </kits>
    <filters>
    <filter name="only-red">
    <team>red</team>
    </filter>
    <filter name="only-blue">
    <team>blue</team>
    </filter>
    <filter name="only-tnt">
    <block>tnt</block>
    </filter>
    <filter name="allow-iron" parents="deny-players">
    <allow>
    <block>iron block</block>
    </allow>
    </filter>
    <filter name="deny-void">
    <deny>
    <void/>
    </deny>
    </filter>
    <filter name="deny-beacon">
    <deny>
    <block>beacon</block>
    </deny>
    </filter>
    </filters>
    <regions>
    <rectangle name="all" min="-oo,-oo" max="oo,oo"/>
    <cuboid name="map" min="-17,0,185" max="151,40,234"/>
    <cuboid name="blue-flag" min="140,18,226" max="142,19,225"/>
    <cuboid name="red-flag" min="-8,18,194" max="-6,19,193"/>
    <!-- Applied -->
    <apply block-break="allow-iron" block-place="only-tnt deny-void" use="deny-beacon">
    <region name="all"/>
    </apply>
    <apply kit="blue-flag" filter="only-red">
    <region name="blue-flag"/>
    </apply>
    <apply kit="red-flag" filter="only-blue">
    <region name="red-flag"/>
    </apply>
    </regions>
    <wools>
    <wool team="blue" color="red">
    <block>145,19,228</block>
    </wool>
    <wool team="red" color="blue">
    <block>-12,19,190</block>
    </wool>
    </wools>
    <rage/>
    <proximity-alarms>
    <proximity-alarm message="`aA player has captured the `9Blue Flag" flare-radius="3">
    <region>
    <region name="blue-flag"/>
    </region>
    <detect>
    <team>red</team>
    </detect>
    </proximity-alarm>
    <proximity-alarm message="`aA player has captured the `cRed Flag" flare-radius="3">
    <region>
    <region name="red-flag"/>
    </region>
    <detect>
    <team>blue</team>
    </detect>
    </proximity-alarm>
    </proximity-alarms>
    <renewables>
    <renewable rate="30" avoid-entities="true" particles="false" sound="false">
    <region>
    <region name="map"/>
    </region>
    </renewable>
    </renewables>
    <toolrepair>
    <tool>bow</tool>
    </toolrepair>
    <itemremove>
    <item>arrow</item>
    <item>stained clay</item>
    <item>iron chestplate</item>
    <item>leather leggings</item>
    <item>leather boots</item>
    <item>leather helmet</item>
    <item>leather chestplate</item>
    <item>tnt</item>
    <item>wool</item>
    <item>iron block</item>
    <item>diamond pickaxe</item>
    </itemremove>
    <killreward>
    <item name="`cExplosive" lore="`7Does not do damage to players.|Use it to blow through the enemy walls!">tnt</item>
    </killreward>
    <tnt>
    <fuse>1s</fuse>
    <power>3</power>
    <instantignite>true</instantignite>
    </tnt>
    <disabledamage>
    <damage>block explosion</damage>
    </disabledamage>
    <timelock>on</timelock>
    <gamerules>
    <doTileDrops>false</doTileDrops>
    </gamerules>
    </map>