Skip to content

Instantly share code, notes, and snippets.

@eliminate123
Last active July 16, 2024 19:43
Show Gist options
  • Save eliminate123/0b318b00a32c0abd8ae7ab568d83e14c to your computer and use it in GitHub Desktop.
Save eliminate123/0b318b00a32c0abd8ae7ab568d83e14c to your computer and use it in GitHub Desktop.
ToW: Bridge GONE
<map proto="1.4.2">
<name>ToW: Bridge GONE</name>
<created>2024-07-13</created>
<version>1.0.4</version>
<include id="void-death"/>
<objective>Capture all the points sequentially in the row to win!</objective>
<authors>
<author uuid="d5a64b26-15ea-46c4-8319-f9c83e82a1fa"/> <!-- Eliminate -->
</authors>
<contributors>
<contributor contribution="Map inspiration">MineMakers Team</contributor>
<contributor uuid="9d4779a8-d35f-45d2-b51c-95de7a77e128" contribution="XML"/> <!-- zzuf -->
</contributors>
<teams>
<team id="red-team" color="red" max="5">Red</team>
<team id="blue-team" color="blue" max="5">Blue</team>
</teams>
<respawn auto="true"/>
<kits>
<kit id="night-vision">
<effect>night vision</effect>
</kit>
<kit id="default" parent="night-vision">
<item slot="0" unbreakable="true" material="stone sword"/>
<item slot="1" unbreakable="true" enchantment="efficiency" material="diamond pickaxe"/>
<item slot="2" amount="6" material="snowball"/>
<item slot="3" team-color="true" amount="64" material="stained clay"/>
<item slot="4" team-color="true" amount="64" material="stained clay"/>
<item slot="5" material="golden apple"/>
</kit>
</kits>
<spawns>
<default kit="night-vision" region="obs-spawn"/>
<spawn kit="default" team="red-team" region="point-a-spawn" yaw="-90" filter="progress-1"/>
<spawn kit="default" team="red-team" region="point-b-spawn" yaw="-90" filter="progress-2"/>
<spawn kit="default" team="red-team" region="point-c-spawn" yaw="-90" filter="progress-3"/>
<spawn kit="default" team="red-team" region="point-d-spawn" yaw="-90" filter="progress-4"/>
<spawn kit="default" team="blue-team" region="point-e-spawn" yaw="90" filter="progress-1"/>
<spawn kit="default" team="blue-team" region="point-d-spawn" yaw="90" filter="progress-2"/>
<spawn kit="default" team="blue-team" region="point-c-spawn" yaw="90" filter="progress-3"/>
<spawn kit="default" team="blue-team" region="point-b-spawn" yaw="90" filter="progress-4"/>
</spawns>
<variables>
<variable id="progress" scope="team" default="4"/>
</variables>
<actions>
<action id="increment-progress" scope="team">
<set var="progress" value="progress+1" scope="team"/>
</action>
<action id="decrement-progress" scope="team">
<set var="progress" value="progress-1" scope="team"/>
</action>
<trigger action="increment-progress" scope="team" filter="controls-a"/>
<trigger action="increment-progress" scope="team" filter="controls-b"/>
<trigger action="increment-progress" scope="team" filter="controls-c"/>
<trigger action="increment-progress" scope="team" filter="controls-d"/>
<trigger action="increment-progress" scope="team" filter="controls-e"/>
<trigger action="decrement-progress" scope="team" filter="doesnt-control-e"/>
<trigger action="decrement-progress" scope="team" filter="doesnt-control-d"/>
<trigger action="decrement-progress" scope="team" filter="doesnt-control-c"/>
<trigger action="decrement-progress" scope="team" filter="doesnt-control-b"/>
<trigger action="decrement-progress" scope="team" filter="doesnt-control-a"/>
</actions>
<filters>
<team id="only-red">red-team</team>
<team id="only-blue">blue-team</team>
<any id="only-clay">
<all>
<material>stained clay:0</material>
<deny>
<participating/>
</deny>
</all>
<material>stained clay:14</material>
<material>stained clay:11</material>
</any>
<not id="doesnt-control-a">
<captured id="controls-a">controlling-point-a</captured>
</not>
<not id="doesnt-control-b">
<captured id="controls-b">controlling-point-b</captured>
</not>
<not id="doesnt-control-c">
<captured id="controls-c">controlling-point-c</captured>
</not>
<not id="doesnt-control-d">
<captured id="controls-d">controlling-point-d</captured>
</not>
<not id="doesnt-control-e">
<captured id="controls-e">controlling-point-e</captured>
</not>
<variable id="progress-0" var="progress">0</variable>
<variable id="progress-1" var="progress">1</variable>
<variable id="progress-2" var="progress">2</variable>
<variable id="progress-3" var="progress">3</variable>
<variable id="progress-4" var="progress">4</variable>
</filters>
<regions>
<union id="spawns">
<point id="obs-spawn">-0.5,13,-41.5</point>
<point id="point-a-spawn">-43.5,13,0.5</point>
<point id="point-b-spawn">-21.5,13,0.5</point>
<point id="point-c-spawn">0.5,13,0.5</point>
<point id="point-d-spawn">22.5,13,0.5</point>
<point id="point-e-spawn">44.5,13,0.5</point>
</union>
<union id="hills">
<union id="point-a">
<cylinder id="point-a-hill" base="-43.5,5,0.5" radius="3" height="2"/>
<cuboid id="point-a-display" min="-45,21,-2" max="-41,25,2"/>
</union>
<union id="point-b">
<cylinder id="point-b-hill" base="-21.5,5,0.5" radius="3" height="2"/>
<cuboid id="point-b-display" min="-23,21,-2" max="-19,25,2"/>
</union>
<union id="point-c">
<cylinder id="point-c-hill" base="0.5,5,0.5" radius="3" height="2"/>
<cuboid id="point-c-display" min="-1,21,-2" max="3,25,2"/>
</union>
<union id="point-d">
<cylinder id="point-d-hill" base="22.5,5,0.5" radius="3" height="2"/>
<cuboid id="point-d-display" min="21,21,-2" max="25,25,2"/>
</union>
<union id="point-e">
<cylinder id="point-e-hill" base="44.5,5,0.5" radius="3" height="2"/>
<cuboid id="point-e-display" min="43,21,-2" max="47,25,2"/>
</union>
</union>
<negative id="not-map">
<rectangle id="map" min="-44,-9" max="45,10"/>
</negative>
<apply region="not-map" block="never" message="You may not build outside the map!"/>
<apply region="hills" block="never" message="You may not build here!"/>
<apply block="only-clay"/>
</regions>
<control-points visual-materials="only-clay" required="true" capture-time="0s" points="0">
<control-point id="controlling-point-a" name="Point A" capture="point-a-hill" captured="point-a" initial-owner="red-team">
<player-filter>
<all>
<filter id="only-blue"/>
<captured>controlling-point-b</captured>
<captured>controlling-point-c</captured>
<captured>controlling-point-d</captured>
<captured>controlling-point-e</captured>
</all>
</player-filter>
</control-point>
<control-point id="controlling-point-b" name="Point B" capture="point-b-hill" captured="point-b">
<player-filter>
<any>
<all>
<captured>controlling-point-c</captured>
<captured>controlling-point-d</captured>
<captured>controlling-point-e</captured>
</all>
<captured>controlling-point-a</captured>
</any>
</player-filter>
</control-point>
<control-point id="controlling-point-c" name="Point C" capture="point-c-hill" captured="point-c">
<player-filter>
<any>
<all>
<captured>controlling-point-e</captured>
<captured>controlling-point-d</captured>
</all>
<all>
<captured>controlling-point-b</captured>
<captured>controlling-point-a</captured>
</all>
</any>
</player-filter>
</control-point>
<control-point id="controlling-point-d" name="Point D" capture="point-d-hill" captured="point-d">
<player-filter>
<any>
<captured>controlling-point-e</captured>
<all>
<captured>controlling-point-b</captured>
<captured>controlling-point-c</captured>
<captured>controlling-point-a</captured>
</all>
</any>
</player-filter>
</control-point>
<control-point id="controlling-point-e" name="Point E" capture="point-e-hill" captured="point-e" initial-owner="blue-team">
<player-filter>
<all>
<filter id="only-red"/>
<captured>controlling-point-a</captured>
<captured>controlling-point-b</captured>
<captured>controlling-point-c</captured>
<captured>controlling-point-d</captured>
</all>
</player-filter>
</control-point>
</control-points>
<kill-rewards>
<kill-reward>
<item amount="2" material="snowball"/>
<item material="golden apple"/>
</kill-reward>
</kill-rewards>
<itemremove>
<item>stone sword</item>
<item>diamond pickaxe</item>
<item>snowball</item>
<item>stained clay</item>
<item>golden apple</item>
</itemremove>
<maxbuildheight>10</maxbuildheight>
<hunger>
<depletion>off</depletion>
</hunger>
<disabledamage>
<damage>fall</damage>
</disabledamage>
</map>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment