Source-checkedWorld generation

Energy Flashlight

by Antoha256M · for Minecraft

Darkness in caves? Need to light the way forward? Use redstone as energy for your new flashlight!

9.4KDownloads
10d agoLast updated
GPL-3.0-onlyLicense
Data pack · Fabric +3Loaders

About Energy Flashlight

From Modrinth

Darkness in caves? Need to light the way forward? Use redstone as energy for your new flashlight!

📖 About

This datapack adds a flashlight that casts light across the entire beam path.

Important information:

  • In order for light to logically pass through incomplete blocks (slabs for example), you need to install the MIDWUT(click) library datapack;
  • Help with translation into other languages is welcome, currently only available: Russian, English and pre-reformation Russian.

Features:

  • Using redstone dust as energy;
  • Real lighting using light blocks;
  • Charge reduction even if the flashlight is not in your hand;
  • The flashlight shines 20 blocks ahead, covering the entire beam path.

The player can craft a flashlight or give using a function /function energy_flashlight:give/flashlight

  • The player will receive a recipe if he receives a redstone lamp or redstone dust.
  • Recipe visualization on the misode generator website: Click

Instructions for charging a flashlight will always be in the description of the flashlight at zero energy, but I'll repeat it here: the player must hold the flashlight in the main hand, the redstone dust in the off hand, sneak and use the flashlight. The maximum possible charge for a flashlight is 10 redstone dusts, each redstone dust adds 6 minutes of real-time operation, as a result, the flashlight can be charged for 1 hour. If the flashlight is on, the energy is used up and the next time you pick it up, the battery status will be updated, if more than an hour has passed, the flashlight will turn off immediately. This is achieved by storing the gametime in an item, and when the player holds a flashlight, the datapack compares the saved time with the current one.

#

🧩 Add-ons & Technical info

Custom light beams

If you want to add custom light beam, you can do it, but first you need to know: the datapack tick function runs on a 2-tick schedule for optimization, so I added the #energy_flashlight:tick functions tag. You can add your own functions for the spawn light beam to this tag. Why is this necessary? 1\) To optimize the light sources so that their life is handled only in this datapack; 2\) To avoid bugs, the life of light sources must be processed after they are spawned and updated. \ So, to spawn a light beam, you need to set its length and run the function. The length is measured in 0.5 blocks, that is, the length of the raycast 10 is equal to (<=)5 blocks.

# The base length is 20 blocks.
scoreboard players set #raycast main_score 40
execute anchored eyes positioned ^ ^ ^ run function energy_flashlight:other/raycast/loop

Custom charging item

The charging flashlight always accepts only vanilla redstone dust without any custom components, but if you add the energy_flashlight.energy_for_flashlight:true nbt tag to the minecraft:custom_data component, then this item can be used as a charger.

#

🔗 Links

You can leave a comment on the PMC page!

PMC

Russian discord server of datapackers / Русский дискорд сервер датапакеров

Если вы датапакер, ищите адекватной помощи, полезных ресурсов и возможности поделиться проектами, то вам на СвинСоюз: Датапаки! Это сервер-ответвление от изначального заброшенного сервера ZeroCaty "СвинСоюз". Сейчас мы не имеем к нему никакого отношения.

SvinSoyuz

Highlights

From source data

Game versions

Supports 8 Minecraft versions, the newest being 26.3.

Loaders

Runs on Data pack, Fabric, Vanilla, NeoForge and Quilt.

Footprint

Rated a light load on a server.

Energy Flashlight on Nxeon

From our catalogue
One-click install
Supported on Nxeon Minecraft servers. We download it from Modrinth, place it, and restart the server.
Server side
Required on the server
Server type needed
Data pack, Fabric, Vanilla, NeoForge, Quilt
Server load
light
Smallest plan we suggest
Minecraft — 2 GB (2 GB RAM). This follows our own load rating above, not a benchmark.
Latest build
1.0.0, released 2026-10-26

Game versions by loader

LoaderGame versionsNewest
Data pack1.21.9 to 26.3 (5 versions)26.3
Fabric1.21.9 to 26.3 (5 versions)26.3
Vanilla1.21.9 to 26.3 (5 versions)26.3
NeoForge1.21.9 to 26.3 (5 versions)26.3
Quilt1.21.9 to 26.3 (5 versions)26.3

From 8 recorded builds of Energy Flashlight.

Recent builds

BuildReleasedGame versionsLoaders
1.0.02026-10-2626.3Vanilla
1.0.12026-10-2626.3Data pack
1.0.1+mod2026-10-2626.3Fabric, NeoForge, Quilt
1.0.12026-06-2626.2Fabric, NeoForge, Quilt
1.0.02026-06-2526.2Vanilla
1.0.12026-06-2526.2Data pack

Dependencies

  • Optional: modrinth project X0au4r5X (modrinth, not in our catalogue)

Declared by the newest build that lists any. Required ones are installed with it on one-click installs.

Run Energy Flashlight on a Minecraft server

Pick a server or deploy a new one above; it is installed in one click.

What kind of mod it is

From the catalog
Listed on Modrinth as “Mods”

World generation

Changes or adds to how new terrain, biomes and structures are created.

Runs on your server

From source side support

Modrinth lists Energy Flashlight as required on the server. Check its Modrinth page to see whether players need it too.

Compatibility

Game
Minecraft
Loaders
Data packFabricVanillaNeoForgeQuilt
Runs on
Serverrequired on the server
Game versions
26.3 and 7 earlier

Verified at the source

  • ✓ModrinthOfficial listing, checked 2026-10-27Open ↗
  • ✓AuthorAntoha256M, as published on Modrinth
  • ✓LicenseGPL-3.0-onlyFree

Energy Flashlight, answered

Generated from the mod’s own source data.

Do my players need to install Energy Flashlight?

Modrinth lists Energy Flashlight as required on the server. Check its Modrinth page to see whether players need it too.

Which loaders does it support?

Data pack, Fabric, Vanilla, NeoForge and Quilt.

Is it free?

Yes. Energy Flashlight is free to download from Modrinth. Its license is GPL-3.0-only.

How do I add it to my Nxeon server?

Use “Add to a server” on this page, or open NxLabs from your dashboard. We install it, restart your server and switch it on.

NxLabs

Run Energy Flashlight on a Minecraft server.

Deploy in about a minute from $4.99 a month, then add Energy Flashlight in one click.