Isolated Zone Worlds
On this page(12)
In the worlds you list as isolated, every player is alone. They do not see the other players, their dropped items or their projectiles, and they hear none of their fights. Each player can choose to also see their island mates. You use it so a crowded zone still feels like a private dungeon.
| Files | isolation: of modules/zones/config.yml, modules/zones/guis/visibility.yml |
| Player command | /zone visibility |
| Optional | SnSuperiorSkyblock, for the island mode |
| Needs | The packet layer (nms.enabled: true in config.yml) for the sounds, the particles and hide-in-tab: false |
How it works
In a world of isolation.worlds, a player does not see the other players there:
- their body, armor, held item and animations;
- the items they drop and the projectiles they launch (an item or arrow you cannot see, you cannot pick up either);
- the sounds and particles that happen around them.
The chat does not change. Outside those worlds nothing changes: two players who are not both in isolated worlds see each other normally, tab list included. So leaving to another world shows everyone again.
A /dungeons reload applies a changed isolation: block at once. A world taken out of the list shows everyone in it again, with the items and projectiles hidden there. Switching the zones module off shows every hidden player and item again.
The zone mobs, the NPC and the fight are always private, in any world. Isolation is about the other PLAYERS.
Visibility modes
Each player chooses who they see in /zone visibility:
| Mode | What you see |
|---|---|
solo | Nobody else. |
island | Also the members of your SnSuperiorSkyblock island: their body, armor, held item and animations. Nothing else of theirs: no items, projectiles, sounds or particles. |
- It is one-way. The mode decides only what that player sees. When A chooses island and B solo, A sees B (same island), but B does not see A.
- No island. Without an island, or on a server without SnSuperiorSkyblock, island works like solo. Choosing it says so (
visibility.no-island). - Stored. The choice applies at once and is stored per player, so it survives relogs and restarts.
- The default. Until a player chooses,
default-modeapplies. Right after a join, until their data has loaded, they see like solo. - Island changes. Joining, leaving, being kicked or banned from an island, or its disband, applies one tick later.
The visibility menu
visibility.yml is managed by SnLib, and its items: are yours.
fffffffff
ffsfffiff
ffffxffff| Letter | Tile |
|---|---|
s | Solo: solo-current (glows, "SELECTED") while %sndungeons_visibility% is solo, otherwise solo |
i | Island: island-current while %sndungeons_visibility% is island, otherwise island |
x | Close |
f | Filler |
A click runs [zones-visibility] solo or [zones-visibility] island. It follows the enable and permission of commands.visibility. It also needs the permission of /zone or of /zones, and none when neither command exists. A click the player may not make answers menu.not-allowed.
Sounds and particles
Many sounds and particles carry a position but no source: a hit mob's sound, a sweep attack, a block effect. Nothing tells who made them. So in an isolated world, SnDungeons decides by distance:
- one within
effect-radiusblocks of another player of that world, and nearer to them than to you, counts as theirs; - an effect that counts as another player's is not sent to you;
- the nearest player owns it, and one exactly as far from both reaches both;
- the rest reaches you, however far.
Example with the shipped 4: a hidden player hits a mob 2 blocks from them and 3 blocks from you. You neither hear the hit nor see its particles.
effect-radius | Result |
|---|---|
| Too low (1 or 2) | The sounds and particles of their fights reach you. |
| 3 to 5 | Suits melee fights. |
| Too high | The effects near them that are yours or the world's are lost too. |
The effects of island mates are filtered the same way. Positions follow the players block by block. A sound or particle another plugin sends you is dropped by the same rule.
This filter needs the packet layer. With nms.enabled: false the players and their items stay hidden, but these sounds and particles are not filtered.
Tab list
With hide-in-tab: true, a player you do not see also leaves your tab list. With hide-in-tab: false (and the packet layer on) they stay in it. Their ping, game mode and tab name then refresh every 30 seconds, and they are taken out when they quit.
A player another plugin had already hidden from you (a vanish) is never put back. One vanished after SnDungeons hid them stays in your tab list until SnDungeons shows them again or they quit.
Hidden items
A hidden item is taken only by its owner. No other player, mob or hopper picks it up, and it never stacks with another player's item on the ground.
Limits
- Not hidden: the items a player drops when they die, the entities they place (boats, armor stands, item frames) and their pets. Block changes and explosions show too.
- Only the client changes. A hidden player or projectile is still on the server. It still collides and can still deal damage.
- Landing effects. Where a hidden projectile lands near you (an arrow hit, a splash potion), its sound and particles reach you.
- Unloaded chunks. An item or projectile left in a chunk that unloads is visible to everyone when it loads again. The same goes for a world a world manager unloads.
- Crashes. After a crash, a hidden item can stay hidden from everyone, its owner included. Anyone can pick it up until it despawns.
Configuration
| Key | Default | What it does |
|---|---|---|
isolation.worlds | ['dungeons'] | The isolated worlds, by name. Keep the names quoted: YAML reads a bare no as false. [] = no isolation. |
isolation.hide-in-tab | true | true: a player you do not see also leaves your tab list. false: they stay in it (needs nms.enabled: true). |
isolation.default-mode | solo | solo or island, until a player chooses in /zone visibility. |
isolation.effect-radius | 4.0 | Blocks, 1 to 16. Other values are clamped, with a warning. See Sounds and particles. |
Commands
| Command | Default permission | Description |
|---|---|---|
/zone visibility | none | Opens the menu where you choose who you see in the zone worlds. |
Its block is commands.visibility of modules/zones/config.yml (enable, aliases, permission). See Zones.
Placeholders
| Placeholder | Value |
|---|---|
%sndungeons_visibility% | solo or island |
%sndungeons_visibility_label% | Its word, from the status: section of lang/messages_en.yml |
See Placeholders.
Tips
- Put every world that holds zones in
isolation.worlds, and nothing else: hubs and spawns should stay social. - Testing with a friend? Stand together in an isolated world: you do not see each other. Share an island and pick island, and you see them.
- Mark mob areas with nobody near: the wand particles near another isolated player can be filtered out for you.
Default isolation: block of modules/zones/config.yml
# Isolated zone worlds: in these worlds every player is alone. They do not see
# the other players there (body, armor, held item, animations), nor the items
# those players drop, their projectiles, or the sounds and particles around
# them; they cannot pick up those items either. The chat does not change.
# Outside these worlds nothing changes. Each player picks who they see with
# /zone visibility.
isolation:
# The worlds where the zones are, by name. Keep the names quoted: YAML reads
# a bare no as false. An empty list turns the isolation off.
worlds: ['dungeons']
# true = a player you do not see is also taken out of your tab list;
# false = they stay in it (needs nms.enabled: true in config.yml).
hide-in-tab: true
# Who a player sees until they choose in /zone visibility: solo (nobody) or
# island (the members of their SnSuperiorSkyblock island; without an island,
# or without SnSuperiorSkyblock, island works like solo).
default-mode: solo
# Sounds and particles only carry a position, not who made them. In the
# isolated worlds, one that happens within this many blocks of another
# player of that world, and nearer to them than to you, counts as theirs and
# is not sent to you, even when they stand next to you; the rest reaches
# you. Example with 4: a player you do not see hits a mob 2 blocks from them
# and 3 blocks from you: you neither hear the hit nor see its particles.
# Too low (1-2): the sounds and particles of their fights reach you. Too
# high: the effects near them that are yours or the world's are lost too.
# From 1 to 16 (other values are clamped, with a warning); 3 to 5 suits
# melee. The effects of island mates are filtered the same way. Needs
# nms.enabled: true in config.yml; without it the players and their items
# stay hidden but these are not filtered.
effect-radius: 4.0