Skip to content

Instantly share code, notes, and snippets.

@eliminate123
Created May 12, 2023 22:41
Show Gist options
  • Save eliminate123/634e2ec6fd3b6bca4e288210eb836e9e to your computer and use it in GitHub Desktop.
Save eliminate123/634e2ec6fd3b6bca4e288210eb836e9e to your computer and use it in GitHub Desktop.
Duality XML
<map proto="1.4.2">
<name>Duality</name>
<version>1.0.1</version>
<objective>Capture both enemy wools!</objective>
<gamemode>ctw</gamemode>
<authors>
<author uuid="b2539be1-8f98-4375-b653-9d91cd04c30e"/> <!-- Mewzzy -->
<author uuid="ec5ec930-5cf3-4f8a-ad9f-09056aeed71b"/> <!-- Tundren -->
<author uuid="d5a64b26-15ea-46c4-8319-f9c83e82a1fa"/> <!-- Eliminate -->
</authors>
<contributors>
<contributor uuid="6863869b-4b8c-4445-b778-a8e016775ae4" contribution="XML"/> <!-- Cazadorian -->
</contributors>
<teams>
<team id="blue" color="blue" max="12">Blue</team>
<team id="red" color="dark red" max="12">Red</team>
</teams>
<kits>
<kit id="spawn-kit">
<clear/>
<item slot="0" unbreakable="true" material="stone sword"/>
<item slot="1" unbreakable="true" material="bow" enchantment="infinity"/>
<item slot="2" unbreakable="true" material="iron pickaxe" enchantment="dig speed"/>
<item slot="3" material="iron axe" unbreakable="true">
<enchantment level="2">dig_speed</enchantment>
</item>
<item slot="28" material="arrow"/>
<item slot="4" unbreakable="true" material="iron spade" enchantment="dig speed"/>
<item slot="5" amount="64" damage="2" material="wood"/>
<item slot="6" amount="32" material="glass"/>
<item slot="8" material="bucket"/>
<item slot="7" material="golden apple"/>
<effect duration="4" amplifier="255">damage resistance</effect>
<helmet unbreakable="true" team-color="true" material="leather helmet"/>
<chestplate unbreakable="true" team-color="true" material="leather chestplate" enchantment="protection projectile:2"/>
<leggings material="chainmail leggings" unbreakable="true"/>
<boots material="leather boots" team-color="true" unbreakable="true"/>
</kit>
</kits>
<spawns>
<default yaw="90">
<regions>
<point>-37.5,20,13.5</point>
</regions>
</default>
<spawn team="red" kit="spawn-kit" yaw="0">
<regions>
<point>-118.5,6,-79.5</point>
</regions>
</spawn>
<spawn team="blue" kit="spawn-kit" yaw="180">
<regions>
<point>-118.5,6,106.5</point>
</regions>
</spawn>
</spawns>
<filters>
<deny id="deny-players">
<participating/>
</deny>
<not id="deny-void">
<void/>
</not>
<not id="blue-in-wr">
<any>
<team id="only-red">red</team>
<material>chest</material>
<material>wool</material>
<material>wood stairs</material>
<material>wood:0</material>
<material>dark oak fence</material>
<material>wood step:5</material>
</any>
</not>
<not id="red-in-wr">
<any>
<team id="only-blue">blue</team>
<material>chest</material>
<material>wool</material>
<material>wood stairs</material>
<material>wood:0</material>
<material>dark oak fence</material>
<material>wood step:5</material>
</any>
</not>
</filters>
<regions>
<union id="spawn-protection">
<rectangle id="red-protection" min="-98,-99" max="-138,-46"/>
<rectangle id="blue-protection" min="-139,126" max="-99,73"/>
</union>
<complement id="void-area">
<everywhere/>
<!-- Middle-->
<region id="spawn-protection"/>
<region id="wool-rooms"/>
<rectangle id="blue-bridge" min="-85,41" max="-72,16"/>
<rectangle id="middle-bridge" min="-127,20" max="-110,7"/>
<rectangle id="red-bridge" min="-152,-14" max="-165,12"/>
</complement>
<union id="wool-rooms">
<union id="blue-wool-rooms"> <!-- blue defends -->
<rectangle id="yellow-woolroom" min="-88,93" max="-67,114"/>
<rectangle id="magenta-woolroom" min="-149,93" max="-170,114"/>
</union>
<union id="red-wool-rooms"> <!-- red defends -->
<rectangle id="orange-woolroom" min="-88,-66" max="-67,-87"/>
<rectangle id="lime-woolroom" min="-149,-66" max="-170,-87"/>
</union>
</union>
<point id="lime-point">-159.5,10,-78.5</point>
<point id="orange-point">-77.5,10,-78.5</point>
<point id="yellow-point">-77.5,10,105.5</point>
<point id="magenta-point">-159.5,10,105.5</point>
<apply enter="only-blue" region="blue-protection" message="You may not enter the opponent's spawn!"/>
<apply enter="only-red" region="red-protection" message="You may not enter the opponent's spawn!"/>
<apply enter="only-blue" region="red-wool-rooms" message="You may not enter your own wool room!"/>
<apply enter="only-red" region="blue-wool-rooms" message="You may not enter your own wool room!"/>
<apply block="blue-in-wr" region="red-wool-rooms" message="You may not modify the wool rooms!"/>
<apply block="red-in-wr" region="blue-wool-rooms" message="You may not modify the wool rooms!"/>
<apply block-place="deny-void" region="void-area" message="You may not build in the void area!"/>
<apply block="never" region="spawn-protection" message="You may not modify the spawns!"/>
</regions>
<spawners>
<spawner spawn-region="orange-point" player-region="orange-woolroom" max-entities="16" delay="2s">
<item amount="1" material="wool" damage="1"/>
</spawner>
<spawner spawn-region="lime-point" player-region="lime-woolroom" max-entities="16" delay="2s">
<item amount="1" material="wool" damage="5"/>
</spawner>
<spawner spawn-region="yellow-point" player-region="yellow-woolroom" max-entities="16" delay="2s">
<item amount="1" material="wool" damage="4"/>
</spawner>
<spawner spawn-region="magenta-point" player-region="magenta-woolroom" max-entities="16" delay="2s">
<item amount="1" material="wool" damage="2"/>
</spawner>
</spawners>
<toolrepair>
<tool>stone sword</tool>
<tool>bow</tool>
<tool>iron pickaxe</tool>
<tool>iron axe</tool>
<tool>iron spade</tool>
<tool>arrow</tool>
</toolrepair>
<itemremove>
<item>leather helmet</item>
<item>leather chestplate</item>
<item>chainmail leggings</item>
<item>leather boots</item>
<item>seeds</item>
<item>wheat</item>
<item>double plant</item>
<item>sapling</item>
<item>string</item>
<item>red rose</item>
<item>glass</item>
<item>wood</item>
</itemremove>
<block-drops>
<rule>
<filter>
<material>wood</material>
</filter>
<drops>
<item chance="0" material="wood"/>
</drops>
</rule>
</block-drops>
<wools team="blue" craftable="false">
<wool color="orange" location="-77.5,10,-78.5">
<monument>
<block>-118,7,114</block>
</monument>
</wool>
<wool color="lime" location="-159.5,10,-78.5">
<monument>
<block>-120,7,114</block>
</monument>
</wool>
</wools>
<wools team="red" craftable="false">
<wool color="yellow" location="-77.5,10,105.5">
<monument>
<block>-118,7,-88</block>
</monument>
</wool>
<wool color="magenta" location="-159.5,10,105.5">
<monument>
<block>-120,7,-88</block>
</monument>
</wool>
</wools>
<itemkeep>
<item>wood:2</item>
<item>golden apple</item>
<item>bucket</item>
<item>water bucket</item>
</itemkeep>
<crafting>
<disable>boat</disable>
<disable>minecart</disable>
</crafting>
<kill-reward>
<item material="golden apple"/>
<item amount="16" damage="2" material="wood"/>
<item amount="8" material="glass"/>
</kill-reward>
<hunger>
<depletion>off</depletion>
</hunger>
<maxbuildheight>28</maxbuildheight>
<timelock>on</timelock>
</map>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment