Dynamic player lighting banner
Dynamic player lighting icon

Dynamic player lighting

Create a Minecraft mod that adds dynamic player-based lighting. The mod should emit light centered on the player without requiring the player to hold, wear,...

00Free
fabricBoth1.21.1mod
  • Dynamic player lighting now follows players without placing blocks; light samples are injected into rendering with linear falloff, 5-ray occlusion against solid blocks, and warm torch-like brightness by default (14, radius 7). Underwater dims to level 4 with half radius, night vision halves radius, and bright areas fade to level 5. Lighting eases over ~0.4s and updates every 2 ticks for smooth motion.
  • Config: client file dynamicplayerlighting-client.json plus Mod Menu/Cloth Config screen. Options cover enable/disable, brightness (0–15), radius (3–12, capped to 10 on servers), adaptive brightness toggle, and action-bar feedback. Keybind G toggles your glow and broadcasts that state when connected to a modded server.
  • Server features: command /dynamiclight <on|off|toggle> (op≥2) flips global enforcement notice (defaults off); server defaults sent on join. Per-player toggle states persist server-side and inform other modded clients; enforcement warns but still allows local override.
  • Multiplayer behavior: on modded servers all modded clients see each other’s glow using server default brightness/radius, capped to 10 nearby lights with fade between 24–32 blocks. Vanilla servers show only your own light locally.
  • Shader handling: if Iris is present, a simplified fallback runs (no occlusion) but keeps underwater dimming and radius shrink. Spectators, invisible, or dead players do not emit light.
  • Notes/limits: visual-only lighting (no block placement or mob-spawn changes); occlusion uses a lightweight 5-ray check so some edge leaks are possible. Cloth Config + Mod Menu are required client-side for the settings screen.***