Spylight — Spyglass as Flashlight

Spylight — Spyglass as Flashlight

Lights up the direction you're looking with a Spyglass

ModMC 26.30+Updated 4 months ago
BeraGGBeraGG8 items

Screenshots

Spylight — Spyglass as Flashlight — screenshot 1
Spylight — Spyglass as Flashlight — screenshot 2
Spylight — Spyglass as Flashlight — screenshot 3
Spylight — Spyglass as Flashlight — screenshot 4
Spylight — Spyglass as Flashlight — screenshot 5

Description

You're deep in the dark, and something's up there on the cave ceilings — ore? Mobs? You can't tell. The ceiling is dark and you're not about to place torches everywhere in early game just to get a look.

Introducing: Spylight

Spylight turns your spyglass into a flashlight — point it anywhere, and light will follow.


Main Features

🔦 Dynamic Flashlight

Holding a Spyglass casts a light_block_15 (maximum brightness) along your view direction in real-time:

On the cave ceilings,

Or deep underwater.

The light updates as you move and is removed the momemt you put the Spyglass away.

🔭 Enhanced Zoom

Zooming in applies the same light_block_15 or a Night Vision effect (no particles) to clear up your vision.

🏆 Achievement Compatible

This add-on does not disable achievements.

⚒️ Survival Friendly

Spyglass is now easier to craft! It uses a Glass Pane instead of an Amethyst Shard, making it accessible in early game.

🎨 Now Comes With The Texture Pack

• An optional resource pack is available to visually match the Spyglass item with its new role as a flashlight.

• Custom 3D model and texture when held

• Separate model and texture when used (zooming in)

• Clean scope view — no default border overlay when zooming

The resource pack is purely cosmetic and works independently from the behavior pack.


Compatibility

If you combine with GlowingGlint, Spylight will be inactive. GlowingGlint handles the lighting logic and prevents any conflict.


Technical Info

- Flashlight uses g*etBlockFromViewDirection ***(max 64 blocks)** to place light on the face of whatever block you're looking at. If no block is in range, falls back to entity detection within 32 blocks using dot-product FOV culling, then projects to max distance.

- View change detection uses a tolerance threshold (`0.01`) on head position and view direction to skip redundant updates — no unnecessary block writes per tick.

- Night Vision applied via addEffect with *showParticles: false, *only removed if the remaining duration matches the addon's own application (safe with potion effects).

- Runs on a 2-tick interval (offhand detection: 20-tick),* *all state cleaned up on p**layerLeave.


INSTALLATION

\1. Download the behaviour pack (.mcpack)

\2. Import to Minecraft

\3. Activate in your Minecraft world

\4. Craft your Spyglass and start exploring a cave!

Changelog

V1.0.9 CHANGELOG

- Optimized main-hand detection to use selectedSlotIndex + inventory instead of equippable component.

- Offhand detection now polls every 20 ticks instead of every 2 ticks.

- Fixed memory leak: offhand cache now cleared on player leave.

Download Files

Spylight v1.0.9 NIGHT VISION Version32 KB.mcpack

Other versions

Spylight v1.0.9 LIGHT BLOCK Version32 KB.mcpack
Older versions (1)
RP to change the texture (OPTIONAL)21 KB.mcpack
Source: MCPEDL · by BeraGG · CurseForge