Flashlight

Adds a new Utility Item! The Flashlight!

14,71k

Quick challenge

How far can you run before the mobs catch you?

Flashlight

![Player pointing a Flashlight into the distance](https://cdn.modrinth.com/data/cached_images/f6a0397fd118ccc452db9e108508676af7ee97c2.jpeg)

# Flashlight By CreepermeYT
A native datapack and resource-pack (packaged as a mod by modrinth) that will add a **Flashlight** to your world!

The datapack/mod works **server-side**: Install it once, works for everyone on the server!

**Due to Minecraft Datapack Limitations in 1.20.1,
some features are not the same in 1.21.4 and 1.20.1**
These will be marked **[1.21.4 only]** & **[1.20.1 only]**

## Features
- Flashlight crafting recipe:
- made of 4 iron, 1 redstone block, 1 spyglass,

![4 iron, 1 redstone block, 1 spyglass -> turns into -> flashlight](https://cdn.modrinth.com/data/cached_images/744b079a5b08572f3d6fe35dfa6f80fd5e163e2e.png)

the Crafting Recipe will give a **_knowledge book_** instead: **[1.20.1 only]**
![same but it gives a knowledge book instead of flashlight](https://cdn.modrinth.com/data/cached_images/1b455e07c9b7c71ef9f89042de291696de13eb82.png)

- Flashlight item (When held in the mainhand):
- Turns 'on' or 'off' by right clicking
- Summons particles to show the light path while 'on'
- Works as a spyglass accessory: you can use it to zoom as well
- Adapts its focus/width depending on how far you aim it at
- Decreases its durability while 'on' and breaks in 5 minutes **[1.21.4 only]**
- Decreases its durability at a random moment depending on its focus distance: **[1.20.1 only]**

**[1.20.1 only]**

Focus Distance 75% of flashlights will last 50% of flashlights will last 25% of flashlights will last
<50 blocks 3.1 mins 7.5 mins 15 mins
>50 blocks 2.1 mins 5 mins 10 mins

- Flashlight custom model (not included in datapack UNLESS resource pack is installed)
- Changes texture depending on state: 'on' or 'off'

![Small Icon showing the Flashlight 'on' model](https://cdn.modrinth.com/data/LKGDuGZY/3e7d7d4fa733fba7739dfd181366f7a74e7ca195_96.webp)
![Small Icon showing the Flashlight 'off' model](https://cdn.modrinth.com/data/cached_images/e821d07a5a676a45869e665047777bce78eb390f.png)

- Embedded: the dynamic lights datapack: [Dynamic Lights By CreepermeYT](https://modrinth.com/datapack/dynamic-lights-creepermeyt), which adds dynamic lights. The Flashlight requires it to work. **[1.21.4 only]**

## Installation
### Two options:
- **Install as _mod_**:
- The **mod (.jar)** should be installed on the /mods/ folder to work.
- You're good to go :]
- **Install as _datapack_ + _resource pack_**:
- The **resource pack (.zip)** should be installed on the /resourcepacks/ folder to work.
- The **datapack (.zip)** should be installed on the /saves//datapacks/ folder to work.
- **resource pack (.zip)** and **datapack (.zip)** are the **same .zip** file available for download in [versions](https://modrinth.com/datapack/flashlight-creepermeyt/versions)

## Limitations
- Performance: placing and removing over 100 light blocks when you move the flashlight is inevitably demanding on the server.
- Distance limit: the flashlight has a maximum distance of 100 blocks.

ADS