Skip to content

Energy Flashlight حزمة بيانات لماينكرافت 26.3

ظلام في الكهوف؟ تحتاج إلى إضاءة الطريق أمامك؟ استخدم الريدستون كطاقة لمصباحك اليدوي الجديد!

ابتداءً من Antoha256M · Modrinth
على خادم
مشاهدة
27 مشاهدة
محدّث
محدّث 26.10.2026
1 / 2

📖 About

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

Energy Flashlight — لقطة شاشة 3

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.
Energy Flashlight — لقطة شاشة 4

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.

You can leave a comment on the PMC page!

كيفية تثبيت Energy Flashlight

With Millida Launcher

  1. Install Millida Launcher

    The launcher is free: download it at millida.net/launcher and sign in with any nickname.

  2. Click “Install” on this page

    The launcher opens and installs the data pack for Minecraft 26.2–26.3 automatically.

  3. Launch the game

    A profile with it appears in the launcher: click “Play”.

Manually

  1. Download the archive

    Pick the file Energy-Flashlight_DP_v1-0-1_26-3.zip (28 KB) for your game version.

  2. New world: “Data Packs”

    When creating a world, click “Data Packs”, drag the archive into the window, then move it to “Selected”.

  3. Existing world: the datapacks folder

    Put the archive into saves/<world>/datapacks and type /reload in game.

On a server

  1. Archive goes into the server world’s datapacks

    The world/datapacks folder on the server; players do not need to install anything.

  2. Reload the data

    Type /reload in the server console or restart the server.

  3. Use the “To server” button

    On Millida Hosting, the button at the top of the page uploads the file to your server and restarts it for you.

الإصدارات

مع المتطلبات

Minecraftالمشغّلالملفالتاريخالإجراءات
26.3حزمة بيانات26.328.2 KB
26.2حزمة بيانات26.228.2 KB

الأسئلة الشائعة

Which Minecraft versions does Energy Flashlight work on?

There are files for 26.3, 26.2. The newest is 26.3.

Does Energy Flashlight work on a server?

Yes: the data pack goes into the datapacks folder of the server world, and players do not need to install anything.

Where can I download Energy Flashlight safely?

On this page: the file Energy-Flashlight_DP_v1-0-1_26-3.zip (28 KB) is stored on Millida’s server, with no link shorteners. SHA-1 checksum: c4c55d30798aa3b5f7249ca9497b06f3e74cde6f.

التقييمات

كن أول من يقيّم Energy Flashlight

التعليقات 0

سجّل الدخول للتعليقتسجيل الدخول

حزم بيانات مشابهة

كل حزم البيانات

المزيد حول هذا

المؤلف: Antoha256Mالترخيص: GPL-3.0-only

هل أنت المؤلف؟ تواصل معنا — وسنزيله خلال 48 ساعة.