Arenas

5commands
1file
4figures
5min read
Sheet 17 of 31 · Building

Fileseconomy.yml

Fileeconomy.ymlCommand/zadmin wandCommand/zadmin pos1An arena is one playable map: a lobby, a spawn, spawners, waves, and whatever rooms, gates, barricades and machines you add on top. Arenas are saved one file each in plugins/IgniteZombies/arenas/<name>.yml. For the step-by-step build, follow the Arena Setup Guide.

What an arena holds

PartRequiredPurpose
LobbyYesWhere players wait for the countdown.
SpawnYesWhere players start the match.
Max playersYes1 to 16, 4 by default.
SpawnersYesPoints where enemies appear.
WavesYesWhat spawns each wave. See Waves.
RoomsNoZones that open as the team progresses.
GatesNoDoors that cost money and open rooms.
BarricadesNoWindows enemies break and players repair.
Power switchNoOpens power-locked rooms and gates.
MachinesNoShops, the Mystery Box, Pack-a-Punch, the Team Machine. See Machines.

Spawners

A spawner is a single point. Enemies appear there and nowhere else, so an area with no spawners never has enemies appear inside it, open or not.

A spawner belongs to whichever room it physically stands in. If it is outside every room it counts as part of the starting area and is live from wave 1. In the creator you can also assign a room to a spawner by hand, but that only matters for spawners that sit outside every room.

Rooms

With highlights on, every room is outlined in the world so you can see exactly what it covers.
A room outlined in green by the creator highlights

Rooms split the map into zones. A room is either open or closed, and only spawners in open rooms spawn enemies. At the start of a match the open rooms are:

  • every room flagged as a start room;
  • the room the arena spawn stands in, even if it is not flagged.

From there, each bought gate opens the room on its other side, and anything reachable through further open gates. A room flagged requiresPower stays closed until the power is on, even if the gate into it has been bought, and blocks the way through to rooms behind it.

Shapes

ShapeMade withUse it for
CuboidRegion Wand (/zadmin wand) or /zadmin pos1 + pos2Simple boxes.
VoxelRoom Voxel Wand (/zadmin room wand)L-shapes, diagonal walls, any outline.

With the voxel wand you click the corners of the floor outline in order, then click a block at ceiling height. The plugin fills the outline and extends it from your lowest to your highest click. Sneak + left-click undoes the last corner and sneak + right-click clears them all.

Rooms may not overlap, and a voxel room must stay in one world.

The Rooms list in the Arena Creator. The hover shows the flags and how many blocks the room covers.
The creator's Rooms list with six rooms, room 1_up hovered showing start room No, needs power No, a 2845 voxel region and the click actions

Flags

Command/zadmin room addSet them as the optional arguments of /zadmin room add <arena> <id> [start] [requiresPower], or in the creator's Rooms list: left-click toggles start room, right-click toggles requires power.

FlagEffect
startOpen from the first wave.
requiresPowerClosed until the power switch is on.

Gates

A gate is a region of blocks, the door, linked to two rooms. When a player buys it, every block in the region turns to air and the room graph is worked out again. The blocks come back when the match ends.

/zadmin gate add <arena> <id>
/zadmin gate link <arena> <id> <fromRoom> <toRoom>

Use - for a side that is the starting area rather than a room. Links work both ways.

Players buy a gate by right-clicking it. The click counts if it lands on the gate, if the player is looking at the gate from up to 6 blocks away, or if they are within 3 blocks of its centre.

Fileeconomy.ymlPrice. A new gate copies gate-default-cost ($1,000) from economy.yml and keeps its own price from then on. Change it in the creator's Gates list (right-click a gate) or under cost in the arena file.

Power. If either linked room needs power, the gate cannot be bought until the power is on. The hologram shows this.

A gate in the creator: $1,000, linking the starting area (-) to room 1.
The creator's Gates list, gate start_to_1 hovered showing cost $1000 and a link from the starting area to room 1

Barricades

A barricade is also a region. Each has its own max health, copied from barricade-default-max-health (500) when it is made and changeable in the creator's Barricades list. How damage and repairs work is on Revives & Barricades.

Power

The power switch: pay once and every power-gated room opens for the rest of the match.
The Power Switch hologram asking $3000 on a dark wall

The power switch is a machine. Buying it turns power on for the whole arena, opens every power-locked room that is now reachable and unlocks power-locked gates. It stays on until the match ends. Creator Mode has a redstone torch that toggles power for testing.

Between matches

When a match ends the arena is put back as it was: gates closed and rebuilt, barricades back to full, power off, enemies removed. Nothing from one match carries into the next.

Validation

Command/zadmin arena validate/zadmin arena validate <arena> checks the arena and lists every problem it finds:

MessageFix
spawn-location not set / lobby-location not setSet the spawn or lobby.
no spawners configuredAdd at least one spawner.
spawner outside any room regionYou have rooms, but this spawner is in none of them. Move it or grow a room.
no startRoom and arena spawn is outside every room regionFlag a start room or move the spawn into a room.
gate ... references missing roomThe linked room was removed or renamed. Link the gate again.
no spawner is reachable from arena spawn at start of gameWith every gate shut and no power, no spawner is live. Put one in a start room.

The arena file

Everything above is saved in arenas/<name>.yml as soon as you change it, and again on shutdown. You rarely need to touch it, but it is plain YAML:

KeyHolds
name, max-players, spawn, lobbyBasics. Locations are world,x,y,z,yaw,pitch.
spawnersLocation and optional room for each spawner.
waveswave-1, wave-2... each with its enemy groups.
rooms.<id>region or voxels, start-room, requires-power.
gates.<id>region, cost, from-room, to-room, hologram position.
barricades.<id>region, max-health, hologram position.
power-switches, team-machinesLocation and cost.
kit-shops, perk-shops, weapon-shops, lottery-shops, mystery-boxes, weapon-enchanters, armor-shops, armor-enchantersLocation, optional region and hologram position. Weapon shops add weapon-type, armor shops add armor-tier.

Edit the file only with the server stopped, or it will be overwritten by the copy in memory.

Loading the index

Enter openUp Down moveEsc close