Skip to Content
MineDuels

Gameplay config examples

Loot tables, knockback profiles, rank tiers with rewards, tournament prizes, queue effects and more, ready to copy.

Every sample below is a full or partial file you can paste. Run /md reload after editing, unless the file's page says restart.

Skywars loot table

# loot.yml
tables:
  skywars:
    rolls: [4, 7]
    items:
      - { item: stone, amount: [16, 32], weight: 10 }
      - { item: oak_planks, amount: [16, 32], weight: 8 }
      - { item: cooked_beef, amount: [4, 8], weight: 6 }
      - { item: iron_sword, weight: 3 }
      - { item: diamond_sword, weight: 1, enchants: { sharpness: 1 } }
      - { item: bow, weight: 3 }
      - { item: arrow, amount: [8, 16], weight: 4 }
      - { item: diamond_chestplate, weight: 1, enchants: { protection: 1 } }
      - { item: golden_apple, amount: [1, 2], weight: 3 }
      - { item: ender_pearl, weight: 2 }
      - { item: splash_potion, potion: strong_healing, weight: 2 }
  mid-island:
    rolls: [2, 3]
    items:
      - { item: diamond_helmet, weight: 2 }
      - { item: diamond_boots, weight: 2 }
      - { item: golden_apple, amount: [2, 4], weight: 5 }

rolls is how many items a chest gets. weight is how likely an item is compared with the others. amount: [min, max] picks a random stack size. Use a table in a kit with loot-table: mid-island.

Knockback profiles

# knockback.yml
profiles:
  default:
    horizontal: 0.4
    vertical: 0.4
    vertical-limit: 0.4
    friction: 2.0
    extra-horizontal: 1.0
    extra-vertical: 1.0
  combo:
    horizontal: 0.35
    vertical: 0.3
    vertical-limit: 0.32
    friction: 2.0
    extra-horizontal: 0.8
    extra-vertical: 0.6
  sumo:
    horizontal: 0.45
    vertical: 0.36
    vertical-limit: 0.38
    friction: 2.0
    extra-horizontal: 1.1
    extra-vertical: 0.8
  heavy:
    horizontal: 0.55
    vertical: 0.45
    vertical-limit: 0.45
    friction: 2.0
    extra-horizontal: 1.2
    extra-vertical: 1.0

Use a profile in a kit with knockback: heavy. Raise horizontal for longer pushes and vertical for higher hits.

Rank tiers with rewards

# ranks/_default.yml
enabled: true
placement-games: 5
unranked: "<gray>Unranked"
announce-overall: true

tiers:
  bronze:
    display: "<#cd7f32>Bronze"
    min-elo: 0
    commands: []
  gold:
    display: "<gold>Gold"
    min-elo: 1150
    commands:
      - "lp user %player% parent addtemp gold-rank 7d"
  champion:
    display: "<gradient:#ff5f6d:#ffc371><bold>Champion</bold></gradient>"
    min-elo: 1800
    commands:
      - "give %player% diamond 16"
      - "broadcast %player% reached Champion!"

rank-up:
  title: true
  broadcast: true

commands run from the console when a player reaches the tier. %player% is the player name. A different ladder for one kit goes in ranks/<kit>.yml.

A kit with its own ELO rules

# ranks/sumo.yml
elo:
  default: 1000
  k-factor: 24
  bonus:
    streak:
      enabled: true
      source: kit
      after: 3
      per-level: 2
      max: 10
    first-win-of-day: 5

Tournament prizes and host cooldowns

# social.yml
tournament:
  join-seconds: 120
  min-players: 4
  default-max-players: 16
  announce-seconds: [60, 30, 10]
  reward-commands:
    - "give %player% diamond 5"
    - "eco give %player% 250"
  host-cooldowns:
    default: 3600
    vip: 1800
    mvp: 600

The cooldown tier of a host is chosen by the permission of their rank. Rewards are given to each winner.

Party size and broadcast tiers

# social.yml
party:
  max-size: 8
  chat-prefix: "@"
  broadcast-cooldowns:
    default: 300
    vip: 120
    mvp: 60

Give a leader a bigger party with the permission mineduels.party.size.<n>. Example: mineduels.party.size.16.

Clans

# social.yml
clans:
  name:
    min-length: 3
    max-length: 16
  tag:
    min-length: 2
    max-length: 5
    colors: true
  blocked-words: [admin, staff, owner, moderator, helper]
  max-members: 20
  chat-prefix: "!"
  prefix-format: "<dark_gray>[</dark_gray>%clan_tag%<dark_gray>]</dark_gray> "
  stats:
    ranked-only: false
    win-points: 10
    loss-points: 5

Queue found effects

Give both players a short speed boost while the match loads.

# matchmaking.yml
queue:
  match-found:
    delay-seconds: 3
    effects:
      - { type: speed, amplifier: 1, duration-seconds: 10, particles: false }

Ranked search range

# matchmaking.yml
queue:
  ranked:
    initial-range: 50
    range-step: 25
    step-seconds: 5
    max-range: 400

A player starts matching within 50 ELO. Every 5 seconds the range grows by 25, up to 400.

Auto GG lines

# autogg.yml
enabled: true
delay-ticks: 20
win:
  - "gg"
  - "gg wp"
loss:
  - "gg"
  - "good fight!"
draw:
  - "gg"

Match command rules

# config.yml
match:
  command-mode: allow
  allowed-commands: [leave, forfeit, surrender, stats, msg, tell, party, p]
  commands-by-type:
    tournament: [leave, forfeit, msg]
    party-ffa: [leave, forfeit, msg, p]

With command-mode: allow, only the listed commands work. With deny, every command works except those in blocked-commands. A list in commands-by-type replaces allowed-commands for that match type. Players with mineduels.match.commands.bypass can use anything.

Disable the plugin in some worlds

# config.yml
worlds:
  disabled: [survival, creative]
  blocked-commands: [queue, duel, rematch, spectate, "party create"]

Use enabled: [lobby, mineduels_arenas] instead to turn it on only in those worlds.

Per kit start effects and sound

# kits/sumo.yml
start-effects:
  - speed:1
  - speed:1:30s
start-sound:
  sound: entity.ender_dragon.growl
  volume: 0.5
  pitch: 1.6

Effects are applied at FIGHT each round. The form is effect:level or effect:level:duration.

Webhook for restarts

# webhook.yml
enabled: true
url: "https://discord.com/api/webhooks/ID/TOKEN"
format: discord
username: "MineDuels"
mention: "<@&123456789012345678>"
server-label: "Lobby 1"
stable-seconds: 15
progress-minutes: 5
events:
  drain-started: true
  drain-empty: true
  server-started: true
  server-stopping: true

Keep the URL secret. After /md drain start the channel is told when the server is empty and safe to restart.

Related: Kit examples, Matchmaking examples, Custom menu examples.

On this page