promotional bannermobile promotional banner

[TaCZ Addon] Gun Flashlight

Tactical flashlight system for TACZ: real light from your weapon's attachment, 4 modes, adjustable focus, item batteries, mob reactions and a glare that blinds players. Shader compatible.

Gun Flashlight

A tactical flashlight system for TACZ (Timeless and Classics Zero).

Gun Flashlight turns TACZ weapon flashlights into real light sources, with illumination coming straight from the attachment mounted on your gun. It also adds a standalone handheld flashlight, adjustable beam focus, four lighting modes, tracer rounds and optional gameplay mechanics. Built for multiplayer: server-side controls, synchronized lighting, configurable limits and item-based batteries.

Features

✨ Features

  • Realistic weapon flashlight – the light originates from the actual attachment and follows weapon movement, recoil, aiming and barrel direction.
  • Four lighting modes – Weak, Strong, Strobe and Infrared (IR).
  • Adjustable focus – change the beam angle with Shift + Mouse Wheel.
  • Handheld flashlight – a separate item with its own 3D model, works in either hand.
  • Tracer rounds – glowing tracers for the last rounds of the magazine (low-ammo warning), the whole magazine or 1 every N shots. Client-side visual, optional light along the path.
  • Remembers its state – pick your weapon back up and the flashlight is on or off the way you left it.
  • Individual item batteries – every weapon flashlight and handheld flashlight stores its own charge.
  • Low battery effects – the light flickers and loses intensity when the charge gets low.
  • Infrared mode – invisible light that only players with Night Vision can see.
  • Mob reactions – monsters can be attracted to lit areas or stunned by strong light.
  • Player blinding – aiming a strong light at another player's face causes a full-screen glare and afterimage.
  • Per-weapon adjustments – fine-tune the light position for each weapon.
  • Automatic TACZ integration – the flashlight attachment is enabled on compatible weapons by the mod itself, no patch scripts.
  • Shader compatibility – native Minecraft lighting works with Embeddium, Oculus and shaders, with no extra rendering pass.
  • Optional Flashier backend – use the Flashier Flashlights spotlight system if you have it installed.

Lighting modes

🆕 What's New in 2.11

🔦 New models

  • The tactical weapon flashlight was remodeled: anodized tube, cooling fins, ribbed grip, lens and tail cap, with a Picatinny rail clamp and thumb screw. Same position and size as before, so the light origin does not change.
  • New attachment icon matching the new model.
  • The handheld flashlight now has a 3D model and points forward in your hand instead of up.

✨ Tracer rounds

A new Tracer option in the flashlight menu (Shift + K) uses TACZ's own tracer streak, in the gunpack color:

  • Last rounds (default: last 5) – a visual warning that your magazine is running out.
  • Whole magazine or 1 every N shots.
  • Tracer light – tracers light up their path (Vanilla backend, up to 6 at a time).
  • Client-side only: each player chooses what they see, for everyone's bullets. No change to damage or to the server. Gunpack tracers still work.

💡 Flashlight state on pickup

New menu option On pickup: Remember (default), On or Off. With Remember, the flashlight comes back the way you left it when you pick the weapon or handheld flashlight up again, even after relogging.

⚙️ New defaults

Beam range 128, glare 100% and "Beam follows barrel" enabled. These apply to newly generated gunflashlight-client.toml files; existing configs keep their values.

🌐 Network

Still protocol 6: 2.10.0 and 2.11.x clients and servers are compatible. Using the same version on both sides is recommended.

📜 Previously in 2.10.0

  • Individual item batteries – charge is stored in each flashlight (weapon or handheld) and follows the item when traded or dropped. Tooltip and durability bar show the charge; keepOnDeath was removed.
  • Low battery effects – below lowThreshold (15%) the light flickers and dims, with an actionbar warning and a beep, synchronized for other players.
  • Night Vision increases player blinding (nightVisionMultiplier = 1.6).
  • Infrared (IR) mode – light visible only with Night Vision; no blinding or mob effects; uses half the battery. Can be disabled by the server ([ir] enabled = false).

🎮 Controls

KeyAction
XToggle flashlight
KSwitch lighting mode
Mouse Button 4 (hold)Temporary strobe
Shift + Mouse WheelAdjust beam focus
Shift + KOpen flashlight menu

All keys can be changed in Minecraft's Controls menu.

🔧 Installation

Requirements

  • Minecraft 1.20.1 with Forge 47.x
  • TACZ 1.1.6 or newer
  • Flashier Flashlights 1.2.0 (optional, client only)

Steps

  1. Put gunflashlight-2.11.2.jar in the mods folder, on both client and server.
  2. Remove any older Gun Flashlight versions first.
  3. The flashlight_gunpack is bundled in the mod and installed into the tacz folder automatically. If you still have an old flashlight_gunpack zip in tacz, delete it.
  4. Upgrading from an older version? Delete the old gunflashlight-client.toml to get the new defaults; a new one is generated.
  5. If you created tacz/flashlight_gunpack/.keep, delete it (or the folder) to receive the new flashlight model.

⚙️ Server commands

Operators (permission level 2):

  • /gunflashlight reload
  • /gunflashlight list
  • /gunflashlight get <option>
  • /gunflashlight set <option> <value>
  • /gunflashlight battery <player> <0-100>

Common config changes can be applied with /gunflashlight reload, no restart needed.

💡 How does the lighting work?

The Vanilla backend uses Minecraft's own lighting engine. Instead of an extra lighting or shadow pass, the mod creates temporary client-side light sources with invisible minecraft:light blocks.

  • Light sources exist only on the client. Nothing is saved to the world and no server-side blocks are created.
  • Other players with the mod installed can see your flashlight.
  • Compatible with Embeddium, Oculus and shaders.
  • Vanilla lighting is visual only and does not prevent mob spawning on the server.

Author: oTrenao · Minecraft 1.20.1 · Forge · Technology / Adventure / Utility

Have fun exploring, and don't forget to turn off your flashlight!

[TaCZ Addon] Gun Flashlight Team

profile avatar
Owner
  • 1
    Projects
  • 93
    Downloads
Donate