Zones

A zone is a place that plays effects while players are inside, with a title or a message when they come in or go out: a radiation area, a haunted house, the moon, a prison, a sanctuary.
Make a zone in two clicks
/sfx zone wandgives you the wand (a blaze rod, only for staff withscreenfx.zone).- Left click a block for the first corner, right click another block for the second. The chat shows the size; particles show the box.
/sfx zone menu→ New zone → My wand selection → pick one of the 24 ready-made zones, or any preset.
Done: players inside get the effect, it leaves when they walk out. Change everything later from the zone's menu (/sfx zone edit <name>).
Corners on the floor? A selection less than 3 blocks high goes up to 3 blocks above its lowest corner, where players walk. A player is inside when the block at his feet is inside the box.
No wand? /sfx zone around <name> <radius> [preset] makes a zone of that many blocks around you.
The wand also shows the zones around you with particles; /sfx zone show <name> shows the borders of one zone for 15 seconds, /sfx zone tp <name> takes you there (on the surface inside the box, or the highest free spot).
Ready-made zones
zone-templates.yml: pick one and its effects, title, messages and protection items are set in one click.
| Zone | Plays | Protected by |
|---|---|---|
radiation | radiation (Geiger clicks) | gas mask, hazmat suit, iodine pills |
toxic_swamp | toxic gas | gas mask, hazmat suit |
volcano | heat wave | fire resistance |
desert_storm | sandstorm | gas mask |
frozen_peak | blizzard | |
moon | low oxygen | space helmet |
dark_cave | darkness | flashlight, night vision goggles |
boss_arena | a title when coming in | |
bank_vault | alarm | |
haunted_house | haunted | |
nightmare_forest | nightmare | |
shadow_dungeon | shadow realm | blessing charm |
dream_world | dream | |
underwater_temple | underwater | |
prison | jailed | |
cinema | cinematic bars | |
winter_village | winter wonderland | |
party | party | |
sanctuary | sanctuary | |
healing_spring | healing aura | |
checkpoint, finish_line, teleporter, scanner_gate | a moment when coming in |
Add your own templates to zone-templates.yml; new templates of an update are added by themselves.
In commands, a ready-made zone is written template:radiation or just radiation (a ready-made zone wins over a preset with the same name; write preset:radiation for the preset).
Zone options
In the zone's menu, with /sfx zone set <name> <option> <value>, or in zones.yml:
cursed_forest:
world: world
min: [100, 50, 100]
max: [300, 150, 300]
preset: nightmare # plays while a player is inside ("" = nothing)
enter-preset: spook # plays once when a player comes in
exit-preset: "" # plays once when a player goes out
enter-title: "<dark_red>Cursed forest"
enter-subtitle: "&7Something is watching you"
enter-message: "" # action bar when coming in
exit-message: "" # action bar when going out
protected-by: [gas_mask] # players protected by one of these get nothing
protected-message: "" # action bar for a protected player when he comes in
permission: "" # only players with this permission get the zone
protected-by takes items of items.yml (worn if they are wear items, held otherwise), materials, potion:<effect> and items of other plugins. Items with a protection-time (iodine pills) protect for a while after being used.
| Command | |
|---|---|
/sfx zone create <name> [preset] | a zone from your wand selection (no preset: the ready-made zones open) |
/sfx zone around <name> <radius> [preset] | a zone around you |
/sfx zone redefine <name> | new box from your selection |
/sfx zone list · /sfx zone here | every zone · the zones you are in |
/sfx zone delete <name> | delete it |
WorldGuard
- A zone that follows a region:
/sfx zone region <region> <preset>, or inzones.yml:region: spawn,world: world(""= that region id in any world). - Flags, without zones:
/rg flag <region> screenfx-preset <preset>(while inside),screenfx-enter-preset(once, coming in),screenfx-exit-preset(once, going out). The flags are added at startup.
Players with screenfx.zone.bypass never get zone effects. Zones are checked without copying item data and with one WorldGuard question per step; very big zones (over 4096 chunks) are checked by their box.
Actualizat ultima data pe