Searchlight (& Wall Lights)
这是 Fabric 版本。Forge 版本请在此处查看:
.
展示视频:
如果您希望支持此类模组的开发,您可以 在此处 进行支持。
每一美元(或在本例中为卢布)都至关重要,它们让我能投入更多时间为您制作各种娱乐项目。
Searchlight
此模组添加了 Searchlight——一种特殊的方块,它自身不发光,而是向选定方向投射一个不可见的“光源方块”。

当玩家右键点击 Searchlight 方块时,它会朝向玩家旋转,从而移动光源方块的位置。
在 1.18 版本中,通过提供红石信号可以关闭 Searchlight。
该方块的用途是照亮那些拥有可见光源会破坏美感的区域,同时以符合 Mojang 对原版生存 Minecraft 愿景的方式进行照明。

手持 Searchlight 时会显示一条光束,从 Searchlight 指向其对应的光源方块,并显示光源方块的碰撞箱。

Wall Lights
此模组还添加了一系列 Wall Lights:铁制、铜制、海晶石以及 16 种彩色变体(匹配陶罐的颜色调色板)。

放置在墙上时,其高度会调整为与视线齐平,专门用于隐藏发光部分。
为了遵循 Mojang 的原版愿景,Wood 和 Stone 变体的 Wall Lights 在设计上被省略,因为大多数现有的光源已经很好地契合了木材/石材建筑风格,而现代和未来主义风格的建筑则缺乏合适的搭配光源。
合成配方

技术细节
Fabric 版本依赖:Fabric API
放置 Searchlight 时,它会尝试面向玩家。如果在玩家方向的射线检测中没有结果,它将不会创建光源方块。如果您右键点击 Searchlight 且射线检测没有结果,它也不会移动光源方块。
光源方块会放置在距离任何表面 1 个方块的位置(如果可能),以避免与液体发生碰撞;它不可被水填充,并且在被替换、破坏或由活塞尝试推动时,会沿 Searchlight 的方向移动。
光源方块可能会干扰观察者、树木生长、植物生长等。
Searchlight 和光源方块均为实体方块(tile entities),会被活塞破坏。
放置光源方块的射线检测(当您右键点击 Searchlight 时)不会穿透水体,但会根据原版光照规则穿透透明方块和透明侧面。例如,它可以穿透正确旋转的楼梯。
射线检测仅在服务器加载的区块内工作,但操作 Searchlight 会导致带有光源方块的未加载区块被加载,反之亦然。
如果某种原因导致光源方块没有关联的 Searchlight,它不会被自动删除,但如果手动替换,也不会重新启动。
在整合包中使用及与其他模组兼容
欢迎在整合包中使用此模组。
如需更多针对原版问题的类原版改进,请考虑 Inventorio。
要将此模组作为依赖项包含在内,请访问 GitHub 页面
Searchlight (& Wall Lights)
This is the Fabric version. You can find the Forge version HERE:
.
Showcase Video:
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.
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.

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.

Wall Lights
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.
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
下载 Searchlight (& Wall Lights) (Fabric)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Searchlight (& Wall Lights) (Fabric)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Searchlight (& Wall Lights) (Fabric)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Searchlight (& Wall Lights) (Fabric)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Searchlight (& Wall Lights) (Fabric)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Searchlight (& Wall Lights) (Fabric)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Searchlight (& Wall Lights) (Fabric)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Searchlight (& Wall Lights) (Fabric)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Searchlight (& Wall Lights) (Fabric)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Searchlight (& Wall Lights) (Fabric)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
1.20 移植
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
缓冲的原始输入和线程化的事件轮询
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
评论 0
登录后参与评分
还没有评论,来抢沙发吧