Skip to Content
MineDuels

Match start

How a fight begins: freeze, gates or an elevator, the arrival box, spawn protection and the settings.

Files: plugins/MineDuels/match-start.yml for the defaults, the arena for its own mode. Reload: /md reload. The full reference is match-start.yml.

After the players are in the arena, the match does not start at once. A start mode holds everyone in place, runs the countdown and then lets the fight begin.

Three start modes

ModeWhat happens
freezePlayers are held at their spawn until the countdown ends. The default
gateEach side stands behind a physical gate. The gates open when the fight starts
elevatorPlayers ride a lift up out of a shaft into the arena

Set the default for every arena in match-start.yml:

match-start:
  mode: freeze

Set one arena's own mode with /md arena startmode <arena> <mode>:

/md arena startmode uhc_flat freeze
/md arena startmode duel_gate gate
/md arena startmode towers elevator
/md arena startmode classic default

default uses the mode from match-start.yml. Gates and elevators need regions drawn in the arena. See Creating kits and arenas.

Order of a start

  1. The players are moved into the arena. On a game server they wait on a hold platform until everyone has loaded.
  2. The arrival box (freeze mode) hides the loading arena.
  3. The countdown animation plays every second. See Animations.
  4. The match-start animation plays and the fight begins. The gates open or the lift arrives.
  5. Spawn areas protect each side for spawn-areas.protect-seconds more seconds.

Arrival box

arrival-box:
  enabled: true
  game-server-only: true
  material: black_concrete
  roof: true

A small box of client-side blocks around each player, from their arrival until the fight starts. Only the player sees it. The arena stays clean while it loads and the start animation plays. It only exists in freeze mode.

KeyMeaning
enabledTurns the box on
game-server-onlytrue: only on a cross-server game server, for matches sent from a lobby
materialA solid block. The floor inside is 3 by 3, with walls and a roof around it
rooffalse leaves the top open

Gate

The gate settings control the sounds and the wall animation:

gate:
  display:
    animation:
      duration: 45
      move-up-by: 2.0
      hold-duration: 120
  hit-ready:
    enabled: true
KeyDefaultMeaning
display.materialemptyThe block the air in each gate box is filled with. Empty uses a dark oak fence. Solid blocks stay as they are
display.animation.duration45Ticks the gate takes to move, 1 to 200. duration-up and duration-down set the two directions apart. 0 uses duration
display.animation.move-up-by2.0Blocks the gate rises. Negative values sink it
display.animation.hold-duration120Ticks fully open before closing. 0 stays open until the round ends
display.barrier.enabledtrueInvisible barriers keep the gate's place while it moves
display.wall.eject-radius4.0A player in or behind a closing gate within this radius is moved out
display.wall.eject-forward5.0Blocks past the gate they are moved. 0 never moves them
*-soundonThe sounds of the wall opening, opened, closing, closed and being hit. Each has key, source, volume, pitch and, for moving sounds, interval in ticks

Per-arena gate tuning: /fwand <arena> settings, then set <key> <value>.

Elevator

elevator:
  preload: true
  platform-block: polished_andesite
  wall-block: polished_deepslate
  levitation-amplifier: 1
  auto:
    width: 3
    speed: 2.0
KeyMeaning
preloadSend the walls and platform to every client before the countdown, so they are there when the lift begins
platform-blockThe block of the lift platform
wall-blockUsed when the shaft has no solid surroundings to copy. Override per arena: /md arena elevator <arena> wallblock <block|->
auto.width, auto.speedDefaults for /md arena elevator <arena> auto
lid.*The hatch that opens at the top
tuning.*Animation timing in ticks. ping-compensation: true keeps the ride even for players with high ping
effectsA sound and a few particles when the hatch opens and the floor closes

Spawn areas

spawn-areas:
  protect-seconds: 0

Safe areas made with /md arena setarea keep enemies out of a spawn. They protect during the countdown. protect-seconds keeps them active for that many seconds after the fight starts. 0 means countdown only.

Check it

  1. Set the mode of a test arena.
  2. Run a match with two players, or a duel against a friend.
  3. Watch the console for warnings. A bad setting is reported on reload and the default is used.

Related: Creating kits and arenas, Kit rules, Animations.

On this page