Searchlight (& Wall Lights) (Fabric)
Searchlight (& Wall Lights)
This is the Fabric version. You can find the Forge version HERE:
If you want to support the development of mods like this, you can do it here.
Every dollar (or, in this case, ruble) counts and allows me to spend more time making various projects for your enjoyment.
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.
When a player right-clicks a Searchlight block, it rotates in the direction of the player, moving a Light Source block.
In 1.18, a Searchlight can be turned off by providing a redstone signal.
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.
Holding a Searchlight will display a beam that points from a Searchlight to its Light Source and displays the Light Source's hitbox.
This mod also adds a set of Wall Lights: Iron, Copper, Prismarine and 16 Colored variants (matching terracotta's color palette).
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.
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