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
| Mode | What happens |
|---|---|
freeze | Players are held at their spawn until the countdown ends. The default |
gate | Each side stands behind a physical gate. The gates open when the fight starts |
elevator | Players ride a lift up out of a shaft into the arena |
Set the default for every arena in match-start.yml:
match-start:
mode: freezeSet 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 defaultdefault 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
- The players are moved into the arena. On a game server they wait on a hold platform until everyone has loaded.
- The arrival box (freeze mode) hides the loading arena.
- The
countdownanimation plays every second. See Animations. - The
match-startanimation plays and the fight begins. The gates open or the lift arrives. - Spawn areas protect each side for
spawn-areas.protect-secondsmore seconds.
Arrival box
arrival-box:
enabled: true
game-server-only: true
material: black_concrete
roof: trueA 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.
| Key | Meaning |
|---|---|
enabled | Turns the box on |
game-server-only | true: only on a cross-server game server, for matches sent from a lobby |
material | A solid block. The floor inside is 3 by 3, with walls and a roof around it |
roof | false 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| Key | Default | Meaning |
|---|---|---|
display.material | empty | The block the air in each gate box is filled with. Empty uses a dark oak fence. Solid blocks stay as they are |
display.animation.duration | 45 | Ticks 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-by | 2.0 | Blocks the gate rises. Negative values sink it |
display.animation.hold-duration | 120 | Ticks fully open before closing. 0 stays open until the round ends |
display.barrier.enabled | true | Invisible barriers keep the gate's place while it moves |
display.wall.eject-radius | 4.0 | A player in or behind a closing gate within this radius is moved out |
display.wall.eject-forward | 5.0 | Blocks past the gate they are moved. 0 never moves them |
*-sound | on | The 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| Key | Meaning |
|---|---|
preload | Send the walls and platform to every client before the countdown, so they are there when the lift begins |
platform-block | The block of the lift platform |
wall-block | Used when the shaft has no solid surroundings to copy. Override per arena: /md arena elevator <arena> wallblock <block|-> |
auto.width, auto.speed | Defaults 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 |
effects | A sound and a few particles when the hatch opens and the floor closes |
Spawn areas
spawn-areas:
protect-seconds: 0Safe 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
- Set the mode of a test arena.
- Run a match with two players, or a duel against a friend.
- 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.