Description
See in caves, at night and under water without torches or potions. One command, nothing else. Stable Script API, no experiments, no items, so achievements stay on.
How it works
- Type
/nightvisionor/nv: night vision on. - Type it again: off.
- Each player switches their own.
It stays on until you turn it off:
- through death: respawn and it's still on (setting);
- through leaving and rejoining: it is saved on your player;
- through milk: it comes back within 2 seconds;
- no flicker: it is topped up long before the last ten seconds, so the screen never starts to blink;
- potions kept: a longer night vision potion is never cut short;
- clean view: no swirling particles around you (setting).
Settings (operators)
/nightvisionconfiglists them;/nightvisionconfigtext setting onchanges one, saved in the world. They also sit at the top ofscripts/main.js.opsOnly(off): only operators may use it.keepOnDeath(on): stays on after a death.showIcon(off): show the effect's particles.
Versions
Every Bedrock version from 1.21.100 to the current one. That is as far back as custom slash commands go in the stable Script API (2.1.0); older versions can't run it.
Tested
Tested on Bedrock Dedicated Server 1.26.63; not yet seen in a real game client.
- 12 checks with a simulated player in a Beta-APIs test world (the add-on itself uses no beta API): /nightvision turns it on (about 10 minutes, topped up) and off, /nv does the same, cleared (as by milk) it is back within 2.5 seconds, a nearly-finished effect is topped up, a longer potion isn't cut short, it comes back after death and respawn, keepOnDeath off clears it, opsOnly stops a player who isn't an operator.
- In the real-client run: the effect reaches the client on /nv and is removed again; another player has their own toggle; after leaving and a server restart the effect is still on.
- 60 checks with real network clients in a world with no experiments and cheats off, shared by all five wave 7 add-ons: every command reaches the client, operator-only commands refuse other players, settings and saved data survive a restart and /reload. After the run, level.dat still shows cheats off, no experiment ever used and never loaded in creative.
- 15 checks with all 41 of our Bedrock packs in one world (the five wave 7 add-ons and 36 others; 40 behaviour and 10 resource packs, 314 commands): every command still registers and answers, a meteor runs, no script errors, level.dat clean.
- Checks on the shipped file: manifest, stable API only, no beta module, the settings block at the top of the script, particle and sound names found in the installed game's own lists, images, and a scan for other creators' and franchises' names.
Not tested: a real phone, console or PC client, or a real Realm. Nobody has looked through the effect on a screen; a test client was seen receiving the night vision effect. Versions older than 1.26.63 were checked by compiling against each older Script API's published types, not by running them. No achievement was earned in a test; the tag means level.dat shows no experiment and cheats off after a run.
Install: open the .mcaddon and add the behaviour pack to your world. Needs Minecraft 1.21.100 or newer (stable Script API 2.1.0); it has only been run on 1.26.63. Licence: MIT.
Not affiliated with Mojang or Microsoft.
More free tools: actuallyop.com




