Arena Setup
Make duel arenas, build arenas and FFA arenas. Every arena is saved, and its blocks are put back after each match.
How Arenas Work
When you set both corners of an arena, ShyamDuels uses FastAsyncWorldEdit (FAWE) to save the blocks inside as a schematic. After every match the schematic is pasted back, so the arena always looks the same.
- Schematics are saved in
plugins/ShyamDuels/schematics/<arena>.schem. - If you change the build later, run
/arena saveschem <arena>to save it again. - Only blocks inside the two corners are put back. Make the area big enough.
The Arenas World
On first start, ShyamDuels makes an empty world called Arenas. Build your arenas there. Go there with /sd arenasworld.
arenas:
world: Arenas
difficulty: HARD # HARD is needed for full crystal and respawn anchor damage
An arena belongs to the world you stand in when you run /arena create. You can use other worlds, but cloning only copies the Arenas world.
Arenas on every start, so changes there are lost. Build and edit only in Arenas.
Make a Duel Arena
- Make the arena:
/arena create Arena1 - If you want start gates, add them now, before the corners. Then the gate frame is part of the saved build.
- Stand on one corner and run
/arena corner1 Arena1. - Stand on the opposite corner (other side, other height) and run
/arena corner2 Arena1. When both corners are set, the build is saved and you get a message. - Stand where player 1 starts, face the way they should look, and run
/arena spawn1 Arena1. - Do the same for player 2:
/arena spawn2 Arena1. - Optional: stand in the middle and run
/arena center Arena1. The world border and copies use it. - Link a kit:
/arena addkit Arena1 NoDebuff
You can link many kits to one arena. A match takes any free arena that has its kit.
/arena addkit Arena1 NoDebuff
/arena addkit Arena1 Sword
/arena addkit Arena1 Axe
Check your arena with /arena info Arena1.
Build Arenas
Players can place and break blocks only when both the arena and the kit allow it.
- Set up the arena as normal.
- Turn build on for the arena:
/arena build BuildArena true - Turn build on for the kit:
/kit build BridgeKit true - Optional: only allow some blocks. Hold a block and run
/kit allowblock BridgeKit. Repeat for each block.
Placed armor stands follow the same rules: they can only be placed when the kit and arena allow building. The arena rule block-breaking can change what players may break.
Build height and ceiling
arenas:
build-height-limit-offset: 2 # no blocks in the top 2 blocks of the arena
allow-infinite-height: false # true = players can fly or launch above the arena top
Players cannot go above the top of the arena, unless allow-infinite-height is true or the kit has flight or double jump. Turn it on for Mace and Wind Charge kits.
FFA Arenas
- Set up the arena (corners, spawn1, kit link) like a duel arena.
- Make it an FFA arena:
/arena ffa MyFFA true - Optional: add more spawn points. Stand on each spot and run
/arena addffaspawn MyFFA. - Optional: set the name and icon for the FFA menu:
/arena setdisplayname MyFFA <red>NoDebuff FFA /arena seticon MyFFA # uses the item in your hand
Without extra spawns, players appear at spawn1. /arena clearffaspawns MyFFA removes the extra spawns. See FFA Mode for more.
When an FFA arena is reset, admins get a message and players in it are moved to the spawn and get their kit again:
arenas:
reset-messages:
enabled: true
notify-players: true # players in the arena: ffa.arena-reset-tp
notify-admins: true # players with shyamduels.admin: ffa.arena-resetting
Copy an Arena
/arena copypaste pastes a copy of an arena somewhere else and registers it. Use it to make more arenas with the same build.
- Fully set up the first arena (corners, spawns, center, kits).
- Stand where the middle of the copy should be.
- Run
/arena copypaste Arena1 Arena2.
The copy gets the kits, build setting, type, spawns, FFA spawns, FFA name and icon, and gates of the first arena. It gets its own saved build. /arena copypasteundo removes the last copy. Do not use this in clone worlds.
Arena Cloning
Cloning gives you more arenas without building more. The plugin copies the whole Arenas world on start.
arenas:
cloning: 2 # 0 = off
reset-clones-on-startup: true # make the copies fresh on every start
sanitize-clone-worlds: true # remove old entity data from the copies
With cloning: 2, you get the worlds Arenas1 and Arenas2. Each duel arena in Arenas gets a copy in each world at the same spot, named Arena1_1, Arena1_2 and so on. So 30 arenas become 90.
- Copies get the kits, build setting and gates of the first arena.
- FFA arenas and arenas in other worlds are not copied.
- Copies reset from the first arena's schematic.
/arena listshows how many copies there are.
When not to use cloning
- Your arenas are in different worlds. Only the
Arenasworld is copied. - You want each arena to look different.
- You have few players. Each copy is a full world folder on disk.
For more copies of only some busy arenas, see Arena Instances.
Arena Status
| Status | Meaning |
|---|---|
AVAILABLE | Free for a match. |
IN_USE | A match is running. |
REGENERATING | Blocks are being put back. |
UNAVAILABLE | The reset failed two times. It tries again after 60 seconds, or run /arena reset <arena>. |
To put blocks back now, run /arena reset <arena>. For all arenas, /arena resetall.
arenas:
reset-queue:
max-concurrent: 3 # duel resets running at the same time
ffa-one-at-a-time: true # only one FFA arena resets at a time
clear-entities-on-startup: true
Arena World Border
Players in a match, and their spectators, see a world border around the arena. It is only shown to them. The real world border does not change, and lobby players see the normal border.
The border is a square made from the two corners (and the center, if set). It needs both corners.
world-border:
enabled: true
padding: 0.0 # extra blocks on each side
warning-blocks: 0 # red screen when this close to the border (0 = off)
warning-time: 0 # red screen time warning in seconds (0 = off)
warning-blocks and warning-time at 0 if you do not want a red screen near the border.
Shrinking border
The border can get smaller during a match. It turns red while it shrinks. Players outside it take damage.
world-border-shrink:
enabled: false
kits: ['*'] # '*' = all kits, or list kit names
interval: 1m # time between shrinks
shrink:
blocks-per-interval: 10
duration: 5s # how long each shrink takes
minimum-distance-from-center: 5
sound:
enabled: false # one sound at each shrink, only for fighters
sound: minecraft:block.note_block.pling
volume: 1.0
pitch: 1.0
damage:
enabled: true
amount: 2.0 # 2.0 = one heart
interval: 1s
buffer-blocks: 0.0 # blocks outside the border before damage starts
damage-per-step: 0.5 # extra damage for each block further outside
This needs world-border.enabled: true too. The first shrink waits one interval after the fight starts.
Arena World Rules
arenas.gamerules sets the game rules of the arena worlds on start: time, weather, mob spawning, death messages and more. Every rule has a comment in config.yml. Keep mob-griefing: true so TNT and creepers can break blocks in build kits.
Arena Commands
See Commands for every /arena command.