Searchlight (& Wall Lights) (Fabric)

Mods
16,531 Downloads Last Updated: Aug 15, 2021 Game Version: 1.17.1

Searchlight (& Wall Lights)

This is the Fabric version. You can find the Forge version HERE:

https://www.curseforge.com/minecraft/mc-mods/searchlight-forge.

Showcase Video:

Video Demonstration

Searchlight

This mod adds Searchlight - a special block that doesn't emit light on its own, but casts an invisible Light Source Block in the direction of choosing.

Searchlights

When a player right-clicks a Searchlight block, it rotates in the direction of the player, moving a Light Source block.

The purpose of this block is to light up areas where having a visible light source would be an aesthetic detriment, but do it in a way that would fit Mojang's vision of Vanilla Survival Minecraft.

Searchlight

Holding a Searchlight will display a beam that points from a Searchlight to its Light Source and displays the Light Source's hitbox.

Beam

Wall Lights

This mod also adds a set of Wall Lights: Iron, Copper, Prismarine and 16 Colored variants (matching terracotta's color palette).

4

When placed on a wall, its height is adjusted to the eye level specifically to hide the glowing part.

To follow Mojang's vision of Vanilla, wood and stone variants of Wall Lights are absent by design, because most existing light sources match the wood/stone build style quite well, while there is the lack of fitting light sources for modern and futuristic builds.

Recipes

Searchlight Recipe Wall Light Recipes Colored Wall Light Recipes

Technical details

Fabric version has a dependency: Fabric API

A searchlight tries to face the player when it gets placed. If a raycast in the player's direction yields no result, if won't create a Light Source. If you right click a Searchlight and a raycast yields no result, it won't move a Light Source.

Light Source is placed 1 block away from any surfaces (if possible) to avoid collision with liquids, is not waterloggable, and gets moved in the direction of a Searchlight when replaced, broken or attempted to get pushed by a piston.

Light Source block can interfere with Observers, tree growth, plant growth etc.

Both Searchlight and Light Source are tile entities and get broken by pistons.

Light Source placing raycast (when you right-click a Searchlight) doesn't go through water, but it goes through transparent blocks and transparent sides according to vanilla lighting rules. E.g. it can go through appropriately rotated stairs.

Raycast works within the chunks loaded by the server, but manipulating a Searchlight will cause an unloaded chunk with a Light Source to load and vice-versa.

Light Source that somehow happened to have no associated Searchlight will not be automatically deleted, but won't get restated if replaced manually.

Use in modpacks and with other mods

Feel free to use this mod in a modpack.

For more Vanilla-esque improvements for vanilla problems, consider Inventorio.

To include this mod as a dependency, please visit the GitHub Page

Comments

  • To post a comment, please or register a new account.
Posts Quoted: