What it does
#The shader blackout is an optional anti-freecam layer on the client side. A resource pack makes the screen black wherever the camera is not where the player's body is: freecam, a detached camera, or a camera pushed through a wall.
Each player carries a tiny marker that only their own client knows about. The pack's text shader blacks out the screen when that marker is not right in front of the camera (first person) or on its axis close behind it (third person). Vanilla players see nothing at all. Spectators and bypassed players are left alone.
- Works for clients 1.21 and newer (up to 26.3). Older clients and Bedrock players get no pack.
- Off by default:
shader-blackout.enabled: false.
How the pack reaches players
#There are two ways:
- Inside your pack plugin's pack (Nexo, Oraxen or CraftEngine). Blindspot puts its files into that plugin's pack sources on startup and checks that the finished pack really carries them. Blindspot loads before these plugins, so the files are there when they build.
- From Blindspot's own web server, as an optional extra pack. Use this with ItemsAdder or with no pack plugin at all. The port (default
25599) must be reachable by players.
After changing anything under shader-blackout, rebuild the pack in the pack plugin: /nexo reload pack, /oraxen reload pack or /ce reload pack.
Settings
#| Key | Default | Description |
|---|---|---|
shader-blackout.enabled | false | Turn the shader blackout on. |
shader-blackout.delivery | auto | auto: inside the pack plugin's pack when its finished pack carries Blindspot's files, otherwise Blindspot's own web server. inject: only inside the pack plugin's pack. standalone: only Blindspot's web server. |
shader-blackout.standalone.port | 25599 | Port of Blindspot's web server. |
shader-blackout.standalone.bind-address | "" | Address to bind. Blank = every address of the machine. |
shader-blackout.standalone.public-address | "" | What players reach the web server on: a full URL (https://packs.example.com), host:port, or a host (the port above is added). Blank = the address the player joined with. Set this behind BungeeCord or Velocity. |
shader-blackout.kick-on-decline | true | A player who declines the pack is kicked with messages.blackout-declined-kick. |
shader-blackout.marker.colour | "11CA63" | RRGGBB colour of the marker, in quotes. Change it only if another pack of yours draws text backgrounds of exactly this colour at alpha 16. |
shader-blackout.marker.near | 0.6 | The marker is accepted closer than this many blocks. |
shader-blackout.marker.far | 6.0 | Or closer than this, when it is within axis of the screen centre. |
shader-blackout.marker.axis | 1.2 | Axis tolerance for far. |
shader-blackout.screen.lines | 2 lines | Up to 4 lines of up to 64 characters, centred; the first is drawn twice as big. [] = a plain black screen. |
shader-blackout.screen.scene | true | A small pixel-art miner running along the bottom of the screen. |
shader-blackout.screen.scale | 0 | Screen pixels per font pixel, 1 to 6. 0 = picked from the screen size. |
shader-blackout.canary-check | true | Check through the sign probe that the pack's language key resolves on the client. A client that keeps it unresolved twice is reported to staff, without score. |
shader-blackout.fake-pack-weight | 100 | Score for a client that says it loaded Blindspot's own pack without ever downloading it. |
shader-blackout.skip-bedrock | true | Skip Bedrock players. |
Screen text
#Default lines:
screen:
lines:
- "&c&lFreecam is not allowed on this server!"
- "&7Move your camera back to your body to keep playing."
scene: true
scale: 0
Colour codes with & or § work: &0 to &f, &#RRGGBB, &l for bold and &r to reset. The built-in font covers ASCII and Turkish letters; anything else is shown as ?.
Kick message
#When kick-on-decline is on, a player who declines the pack sees messages.blackout-declined-kick from the language file. By default it tells them to rejoin and accept the pack, or to turn on Server Resource Packs in the server list.
Checks tied to the pack
#Two detection checks use the pack (both appear as "Fake resource pack" in alerts):
- a client that claims it loaded Blindspot's own pack without ever downloading it (
fake-pack-weight), - a client whose pack translation stays unresolved twice (
canary-check; staff alert without score, since a mod that hides pack translations looks the same).
See X-ray detection.
Found a mistake or something missing? Open a ticket on Discord.
Report an issue