
DatapacksJava
Stay In The Light
Java data pack listed for Minecraft 26.x. Downloads from the MC Java Mods app on Android.
⬇ Download on ModrinthStay in the Light
Step into darkness and you die instantly.
How it works
- Every tick the pack checks the light level at every player's feet.
- If it's below 5, the player dies on the spot.
- It's the combined light level, the same one mob spawning uses: the brighter of block light (torches, lava, glowstone) and sky light, with sky light dimmed by time of day and weather.
- Players in creative and spectator mode are ignored.
Limitations
- Nights outdoors are deadly. At midnight open-air sky light drops to 4, so without a light source nearby you die; in rain it starts even earlier, at dusk.
- Respawning at night can turn into a death loop: if your spawn point is dark, you die again right after respawning. Keep a light source next to your bed or spawn.
Configuration
The threshold is set in data/stay_in_the_light/function/tick.mcfunction: light:{light:{max:4}} kills at 4 and below. Raise or lower the number to change it, then run /reload.
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 26.1, 26.1.1, 26.1.2
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Modrinth — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — see the MC Java Mods guides for the full walkthrough.
File checked by MCModsHub
- Downloads as stay-in-the-light-1.0.0.zip
- Download size: 3 KB
- Download link checked 22 Oct 2026 — working
These come from our own check of the pack file, not from the source page.