Skip to content

Instantly share code, notes, and snippets.

@Cazadorian
Last active April 8, 2023 20:22
Show Gist options
  • Save Cazadorian/f173aeb28a9361de6baee38022e64a1f to your computer and use it in GitHub Desktop.
Save Cazadorian/f173aeb28a9361de6baee38022e64a1f to your computer and use it in GitHub Desktop.
4-team-bedwars-template
<map proto="1.4.2">
<include id="4-team-bedwars"/>
<version>1.0</version>
<name>name</name>
<created>yyyy-mm-dd</created>
<authors>
<author uuid="6863869b-4b8c-4445-b778-a8e016775ae4" contribution="add contribution here"/> <!-- username -->
</authors>
<contributors>
<contributor uuid="6863869b-4b8c-4445-b778-a8e016775ae4" contribution="add contribution here"/> <!-- username -->
</contributors>
<teams>
<team id="team-one" color="blue" max="4">Blue</team> <!-- Default is blue -->
<team id="team-two" color="red" max="4">Red</team> <!-- Default is red -->
<team id="team-three" color="green" max="4">Green</team> <!-- Default is green -->
<team id="team-four" color="yellow" max="4">Yellow</team> <!-- Default is yellow -->
</teams>
<spawns>
<spawn team="team-one" kit="default" region="team-one-spawn" yaw="number"/>
<spawn team="team-two" kit="default" region="team-two-spawn" yaw="number"/>
<spawn team="team-three" kit="default" region="team-three-spawn" yaw="number"/>
<spawn team="team-four" kit="default" region="team-four-spawn" yaw="number"/>
<default region="obs-spawn" yaw="number"/>
</spawns>
<regions>
<union id="team-beds">
<cuboid id="team-one-bed" min="x,y,z" max="x,y,z"/>
<cuboid id="team-two-bed" min="x,y,z" max="x,y,z"/>
<cuboid id="team-three-bed" min="x,y,z" max="x,y,z"/>
<cuboid id="team-four-bed" min="x,y,z" max="x,y,z"/>
</union>
<union id="spawn-protections"> <!-- Small area around the spawn points where block placing is disabled -->
<cylinder id="team-one-spawn-protection" base="x,y,z" radius="number" height="number"/>
<cylinder id="team-two-spawn-protection" base="x,y,z" radius="number" height="number"/>
<cylinder id="team-three-spawn-protection" base="x,y,z" radius="number" height="number"/>
<cylinder id="team-four-spawn-protection" base="x,y,z" radius="number" height="number"/>
</union>
<point id="team-one-spawn">x,y,z</point>
<point id="team-two-spawn">x,y,z</point>
<point id="team-three-spawn">x,y,z</point>
<point id="team-four-spawn">x,y,z</point>
<union id="base-regions"> <!-- Used as regions for regeneration and traps -->
<rectangle id="team-one-base-region" min="x,z" max="x,z"/>
<rectangle id="team-two-base-region" min="x,z" max="x,z"/>
<rectangle id="team-three-base-region" min="x,z" max="x,z"/>
<rectangle id="team-four-base-region" min="x,z" max="x,z"/>
</union>
<point id="obs-spawn">x,y,z</point>
<union id="team-chests">
<block id="team-one-chest">x,y,z</block>
<block id="team-two-chest">x,y,z</block>
<block id="team-three-chest">x,y,z</block>
<block id="team-four-chest">x,y,z</block>
</union>
<union id="iron-gold-generators">
<cylinder id="team-one-generator" base="x,y,z" radius="1" height="1"/>
<cylinder id="team-two-generator" base="x,y,z" radius="1" height="1"/>
<cylinder id="team-three-generator" base="x,y,z" radius="1" height="1"/>
<cylinder id="team-four-generator" base="x,y,z" radius="1" height="1"/>
</union>
<union id="diamond-generators">
<point id="diamond-a">x,y,z</point>
<point id="diamond-b">x,y,z</point>
<point id="diamond-c">x,y,z</point>
<point id="diamond-d">x,y,z</point>
</union>
<union id="emerald-generators">
<point id="emerald-a">x,y,z</point>
<point id="emerald-b">x,y,z</point>
</union>
<union id="emedia-generator-protection"> <!-- These base values should be identical to their spawner's point region -->
<cylinder id="diamond-a-protection" base="x,y,z" radius="2" height="4"/>
<cylinder id="diamond-b-protection" base="x,y,z" radius="2" height="4"/>
<cylinder id="diamond-c-protection" base="x,y,z" radius="2" height="4"/>
<cylinder id="diamond-d-protection" base="x,y,z" radius="2" height="4"/>
<cylinder id="emerald-a-protection" base="x,y,z" radius="2" height="4"/>
<cylinder id="emerald-b-protection" base="x,y,z" radius="2" height="4"/>
</union>
<negative id="not-map"> <!-- This covers the entire map's playable space -->
<circle id="map" center="x,z" radius="number"/>
</negative>
<cylinder id="original-block-protection" base="map x,0,map z" radius="map radius" height="heightlimitvalue"/> <!-- This protects all blocks as part of the original map, it should have the same x and z as the map region and the height should be build height -->
<apply region="team-one-chest" use="team-one-status" message="You cannot open this chest as `9Blue's Bed`r has not been destroyed yet!"/> <!-- If you have renamed the teams, change the message text otherwise leave untouched -->
<apply region="team-two-chest" use="team-two-status" message="You cannot open this chest as `4Red's Bed`r has not been destroyed yet!"/>
<apply region="team-three-chest" use="team-three-status" message="You cannot open this chest as `aGreen's Bed`r has not been destroyed yet!"/>
<apply region="team-four-chest" use="team-four-status" message="You cannot open this chest as `eYellow's Bed`r has not been destroyed yet!"/>
</regions>
<destroyables completion="25%" required="false" repairable="false" show="true" sparks="true" materials="bed_block"> <!-- If you have renamed the teams, change the destroyable name otherwise leave untouched -->
<destroyable name="§9Blue §9Bed" owner="team-one" region="team-one-bed" id="team-one-bed-broken" scoreboard-filter="team-one-scoreboard-filter"/>
<destroyable name="§cRed §cBed" owner="team-two" region="team-two-bed" id="team-two-bed-broken" scoreboard-filter="team-two-scoreboard-filter"/>
<destroyable name="§aGreen §aBed" owner="team-three" region="team-three-bed" id="team-three-bed-broken" scoreboard-filter="team-three-scoreboard-filter"/>
<destroyable name="§eYellow §eBed" owner="team-four" region="team-four-bed" id="team-four-bed-broken" scoreboard-filter="team-four-scoreboard-filter"/>
</destroyables>
<world-borders center="x,z">
<world-border size="number"/>
<world-border size="12" after="40m" duration="4m" damage="5" buffer="0"/>
</world-borders>
<shopkeepers>
<shopkeepers name="`b`lItem Shop" shop="item-shop">
<shopkeeper yaw="number">x,y,z</shopkeeper> <!-- Team One -->
<shopkeeper yaw="number">x,y,z</shopkeeper> <!-- Team Two -->
<shopkeeper yaw="number">x,y,z</shopkeeper> <!-- Team Three -->
<shopkeeper yaw="number">x,y,z</shopkeeper> <!-- Team Four -->
</shopkeepers>
<shopkeepers name="`b`lUpgrade Shop" shop="upgrade-shop">
<shopkeeper yaw="number">x,y,z</shopkeeper> <!-- Team One -->
<shopkeeper yaw="number">x,y,z</shopkeeper> <!-- Team Two -->
<shopkeeper yaw="number">x,y,z</shopkeeper> <!-- Team Three -->
<shopkeeper yaw="number">x,y,z</shopkeeper> <!-- Team Four -->
</shopkeepers>
</shopkeepers>
<maxbuildheight>number</maxbuildheight>
</map>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment