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
- Make the arena with
/arena create <name>. See Arena Setup. - Check that gates are on in
config.yml:door-animation.enabled: true. - 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
- Get the wand:
/shyamduels gate wand - Left click the bottom corner of the doorway.
- Right click the opposite top corner. Both corners must be on one flat wall (same X or same Z).
- 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.
- Save it:
/shyamduels gate addgate <arena> - Repeat for every other doorway in the arena.
- Check with
/shyamduels gate list. - Play a test duel.
How Gates Work in a Match
- When the match starts, fences block the doorway.
- With ready up on, players hit the gate to say they are ready. When all players are ready, the gates open before the countdown ends.
- Without ready up, the gates open when the countdown ends.
- The gates close again after a short time.
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
| Command | What it does |
|---|---|
/shyamduels gate | Shows gate help. |
/shyamduels gate wand | Gives 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 list | Lists arenas with gates. |
/shyamduels gate reload | Reloads 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: "%F699✔ %F699{player} is ready!"
all_ready: "7FFFF&l⚡ 7FFFFAll players ready! Opening gates!"
large_party_threshold: 10 # bigger teams get an action bar instead of chat lines
large_party_actionbar: "%F699✔ &f{player} &7is ready &8({ready}/{total})"
large_party_bar: "%F699✔ Ready: &f{ready}&7/&f{total}"
Gate sounds are in sounds.yml under door_animation.
Tips
- Flat wall only: both corners need the same X or the same Z.
- Stand on the right side when you run
addgate. - Copies get gates:
/arena copypaste, cloning and instances move the gates with the arena. - Gates do nothing? Check
door-animation.enabledand thekitslist, then restart.