Skip to content

Instantly share code, notes, and snippets.

@Electroid
Created October 13, 2013 15:32
Show Gist options
  • Select an option

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

Select an option

Save Electroid/6963595 to your computer and use it in GitHub Desktop.
Rails XML
<?xml version="1.0"?>
<map proto="1.3.0">
<include src="tutorial.xml"/>
<name>Rails</name>
<version>1.0.0</version>
<objective>Capture both the center point and your point.</objective>
<authors>
<author contribution="Map and Metadata">ElectroidFilms</author>
</authors>
<rules>
<rule>If PGM declares a Tie, the winning team will be decided on who has the most amount of percentage points all together.</rule>
</rules>
<teams>
<team max="16" color="dark red">Red Team</team>
<team max="16" color="blue">Blue Team</team>
</teams>
<kits>
<kit name="all">
<potion duration="oo">night vision</potion>
</kit>
<kit name="spawn" parents="all">
<item slot="0" damage="-3000">stone sword</item>
<item slot="1" damage="-3000">bow</item>
<item slot="2" amount="16">apple</item>
<item slot="3" amount="1">golden apple</item>
<item slot="8" amount="32">arrow</item>
</kit>
<kit name="red" parents="spawn">
<helmet color="993333" damage="-3000">leather helmet</helmet>
<chestplate color="993333" damage="-3000">leather chestplate</chestplate>
<leggings damage="-3000">chainmail leggings</leggings>
<boots color="993333" damage="-3000">leather boots</boots>
</kit>
<kit name="blue" parents="spawn">
<helmet color="334CB2" damage="-3000">leather helmet</helmet>
<chestplate color="334CB2" damage="-3000">leather chestplate</chestplate>
<leggings damage="-3000">chainmail leggings</leggings>
<boots color="334CB2" damage="-3000">leather boots</boots>
</kit>
</kits>
<spawns>
<spawn team="red" kit="red" yaw="-45">
<cylinder name="red-spawnpoint" base="2.5,7,2.5" height="0" radius="1"/>
</spawn>
<spawn team="blue" kit="blue" yaw="135">
<cylinder name="blue-spawnpoint" base="48.5,7,100.5" height="0" radius="1"/>
</spawn>
<default kit="all" yaw="-90">
<cylinder name="observers-spawn" base="26.5,50,51.5" height="0" radius="1"/>
</default>
</spawns>
<filters>
<filter name="only-red" parents="deny-players"/>
<allow><team>red</team></allow>
</filter>
<filter name="only-blue" parents="deny-players"/>
<allow><team>blue</team></allow>
</filter>
</filters>
<regions>
<rectangle name="all" min="-oo,-oo" max="oo,oo"/>
<circle name="blue-spawn" center="50.5,102.5" radius="12"/>
<circle name="red-spawn" center="0.5,0.5" radius="12"/>
<circle name="red-point" center="25.5,6,77.5" radius="6"/>
<circle name="blue-point" center="25.5,6,25.5" radius="6"/>
<union name="center">
<cuboid min="21.5,8,46.5" max="24.5,8,55.5"/>
<cuboid min="25.5,8,56.5" max="29.5,8,47.5"/>
</union>
<union name="center-above">
<cuboid min="21.5,9,46.5" max="24.5,12,55.5"/>
<cuboid min="25.5,9,56.5" max="29.5,12,47.5"/>
</union>
<apply velocity="@0,@1.8,@0">
<!-- Blue Jumpads -->
<cuboid min="16.5,6,97.5" max="18.5,6,96.5"/>
<cuboid min="16.5,6,86.5" max="18.5,6,87.5"/>
<cuboid min="7.5,6,79.5" max="8.5,6,81.5"/>
<cuboid min="39.5,6,64.5" max="37.5,6,65.5"/>
<cuboid min="27.5,6,65.5" max="29.5,6,64.5"/>
<cuboid min="11.5,6,59.5" max="12.5,6,61.5"/>
<block>7,6,69</block>
<block>44,6,58</block>
<!-- Red Jumpads -->
<cuboid min="34.5,6,5.5" max="32.5,6,6.5"/>
<cuboid min="34.5,6,16.5" max="32.5,6,15.5"/>
<cuboid min="43.5,6,23.5" max="42.5,6,21.5"/>
<cuboid min="13.5,6,38.5" max="11.5,6,37.5"/>
<cuboid min="23.5,6,38.5" max="21.5,6,37.5"/>
<cuboid min="39.5,6,43.5" max="38.5,6,41.5"/>
<block>42,6,41</block>
<block>6,6,44</block>
</apply>
<apply block="deny-all">
<region name="all"/>
</apply>
<apply enter="only-red" message="You cannot enter the enemy spawn!">
<region name="red-spawn"/>
</apply>
<apply enter="only-blue" message="You cannot enter the enemy spawn!">
<region name="blue-spawn"/>
</apply>
<apply enter="only-red" message="You cannot enter the enemy control point!">
<region name="red-point"/>
</apply>
<apply enter="only-blue" message="You cannot enter the enemy control point!">
<region name="blue-point"/>
</apply>
</regions>
<playable>
<region name="all"/>
</playable>
<toolrepair>
<tool>stone sword</tool>
<tool>bow</tool>
</toolrepair>
<itemremove>
<item>apple</item>
<item>arrow</item>
<item>golden apple</item>
<item>leather helmet</item>
<item>leather chestplate</item>
<item>chainmail leggings</item>
<item>leather boots</item>
</itemremove>
<killreward>
<item amount="1">golden apple</item>
<item amount="12">arrow</item>
</killreward>
<timelock>on</timelock>
<king>
<hills>
<hill name="Red Point" capture-time="30s" type="variable" ratio="1">
<capture><cylinder base="25.5,6,77.5" height="3" radius="5"/></capture>
<progress><cuboid min="30.5,5,82.5" max="20.5,5,72.5"/></progress>
<captured><cuboid min="17.5,9,69.5" max="33.5,9,85.5"/></captured>
</hill>
<hill name="Center" capture-time="45s" type="variable" ratio="1">
<capture><region name="center-above"/></capture>
<progress><region name="center"/></progress>
<captured><cuboid min="157,44,118" max="145,44,130"/></captured>
</hill>
<hill name="Blue Point" capture-time="30s" type="variable" ratio="1">
<capture><cylinder base="25.5,6,25.5" height="3" radius="5"/></capture>
<progress><cuboid min="20.5,5,20.5" max="30.5,5,30.5"/></progress>
<captured><cuboid min="28.5,22,53.5" max="22.5,17,49.5"/></captured>
</hill>
</hills>
<wins>
<win team="red">
<all>
<hill>Red Point</hill>
<hill>Center</hill>
</all>
</win>
<win team="blue">
<all>
<hill>Blue Point</hill>
<hill>Center</hill>
</all>
</win>
</wins>
</king>
<time result="objectives">15m</time>
<tutorial><!-- Need to Code --></tutorial>
</map>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment