Gate Setup

Add start gates to a duel arena. Players start behind a fence, hit it to get ready, and the gate opens when the fight starts.

Video Guide

This video shows the same steps. Use /shyamduels gate for the commands.

Open on YouTube if the video does not load.

Permission
Gate commands need shyamduels.practice.gate.setup. shyamduels.admin does not include it, so give it on its own. Operators have it.

Before You Start

  1. Make the arena with /arena create <name>. See Arena Setup.
  2. Check that gates are on in config.yml: door-animation.enabled: true.
  3. Add gates before you set the arena corners. Setting the corners saves the build, so the gate frame must already be there.

Add a Gate

  1. Get the wand: /shyamduels gate wand
  2. Left click the bottom corner of the doorway.
  3. Right click the opposite top corner. Both corners must be on one flat wall (same X or same Z).
  4. Stand on the arena side of the gate, where players should be before the fight. Players on the wrong side are moved to this spot when the gate closes.
  5. Save it: /shyamduels gate addgate <arena>
  6. Repeat for every other doorway in the arena.
  7. Check with /shyamduels gate list.
  8. Play a test duel.

How Gates Work in a Match

When the gates open early, players still get the FIGHT title and sound. Set duels.round.fight-title-on-early-start: false to only show FIGHT after a full countdown.

Gate Commands

CommandWhat it does
/shyamduels gateShows gate help.
/shyamduels gate wandGives the gate wand. Left click is corner 1, right click is corner 2.
/shyamduels gate addgate <arena>Saves the selection as a gate. Your spot becomes the eject point.
/shyamduels gate delete <arena>Deletes all gates of the arena.
/shyamduels gate listLists arenas with gates.
/shyamduels gate reloadReloads gate files from data/complex-door-data/.

Settings

door-animation:
  enabled: true
  animation_ticks: 20
  fence_material: "OAK_FENCE"
  kits: []                     # empty = all kits, or list kit names
  gate:
    close_delay_seconds: 3
    eject_check_radius: 10
    open_speed_ticks: 20
    close_speed_ticks: 20
    debug: false
    ready_up:
      enabled: true
      prompt: "&#FF780C&l⚡ &#FFFA45Hit the gate to ready up!"
      player_ready: "&#37F699✔ &#37F699{player} is ready!"
      all_ready: "&#55FFFF&l⚡ &#55FFFFAll players ready! Opening gates!"
      large_party_threshold: 10     # bigger teams get an action bar instead of chat lines
      large_party_actionbar: "&#37F699✔ &f{player} &7is ready &8({ready}/{total})"
      large_party_bar: "&#37F699✔ Ready: &f{ready}&7/&f{total}"

Gate sounds are in sounds.yml under door_animation.

Tips