Skip to Content
MineDuels

kits/ and arenas/

Kit loadouts and arena templates on disk.

kits/*.yml

Reload: yes
Commands: Creating kits and arenas

Supports

  • display-name, icon, ranked, priority, arenas list
  • Full inventory, effects, start effects/sound, death messages
  • rules: block (see Kit rules)

Does not

  • Apply without a ready arena (points a/b, saved .cda, kit linked)
  • Hot-reload players already in a match (next match uses new rules)

Example header

display-name: "<aqua><icon:nodebuff> Nodebuff"
icon: SPLASH_POTION
ranked: true
priority: 50
arenas:
  - flat_pvp
rules:
  build: false
  natural-regen: false
  hit-delay: 20

arenas/*.yml and .cda

Meta reload: yes
Pool / world changes: often restart

Supports

  • Points, areas, gates, elevators, start mode, copy min/max
  • .cda binary palette written by /md arena save

Does not

  • Run matches by itself (kits + pool READY copies)

Example meta snippet

points:
  a: { x: 5, y: 10, z: 3, yaw: 90 }
  b: { x: -5, y: 10, z: 3, yaw: -90 }
start-mode: freeze
copies:
  min: 2
  max: 4

copies.min and copies.max

KeyMeaning
minTarget number of idle READY copies MineDuels keeps for this template. When traffic is low, extra copies may be created up to this count
maxHard cap on simultaneous copies for this template (in use + idle)

Sizing:

  • Busy ranked kit on one server: try min: 3 or 4 if matches often wait on PASTING.
  • Large maps: each copy uses a grid cell (config.yml → arena.grid.spacing). Ensure spacing fits the template footprint.
  • Low-pop test server: min: 1 saves memory; expect paste work when two matches start at once.

Internal pool state lives in instances.yml (not hand-edited). Stuck PASTING: see FAQ and Performance and Spark.

Examples: Kit examples, Arena setup.

How an arena copy is reset

Every arena copy has a journal that remembers the first change of each block while the copy is in use. The reset puts back what the template has at that position, so a block that changed without being noticed is still restored. The journal watches placing and breaking, the blocks next to a placed block (fences, walls, panes, stairs, chests), explosions, fire, fluids, pistons, redstone, signs, buttons and plates pressed by arrows, wind charges and mobs, and the other half of beds and doors.

  • Full verify: every full-verify-every uses, and whenever the journal was full (journal-max-entries) or changes were lost while the reset ran, the copy is pasted again in full before it is handed out.
  • What is not restored by the journal: the text of signs and the data of other block entities are those of the template; containers are emptied when they were opened.
  • After a crash: copies are only trusted again after a graceful stop. Every other start pastes them in full, and the copy of each match that was running is marked for a full paste as well (match.recovery).
  • Copies with errors: a copy that fails to reset three times in a row pauses its template for 5 minutes.

On this page