promotional bannermobile promotional banner

Spylight — Spyglass as Flashlight

Lights up the direction you're looking with a Spyglass

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 follows.

 


 

Main Features

 

🔦 Dynamic Flashlight

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

 

Cave CeilingsOn the cave ceilings,

 

Underwater 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 clears up your vision.

Light block

 Night 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.

Crafting Recipe

 

🎨 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 getBlockFromViewDirection (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, all state cleaned up on playerLeave.

 

- Behavior pack only — no custom entities, no resource pack required.

 

Sharing this add-on without official links (CurseForge/MCPEDL) is not allowed.

 

You're allowed to modify the script for PERSONAL USE only.

 


 

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!

The Spylight — Spyglass as Flashlight Team

profile avatar
Owner
  • 11
    Followers
  • 6
    Projects
  • 255.0K
    Downloads

Miaww

More from BeraGGView all