
这个仅服务器端模组允许你在信标上方放置染色玻璃来隐藏其光束,同时保持信标的所有效果正常工作。
理想情况下,如果 Mojang 在原游戏中添加这一明显且合乎逻辑的功能,该模组就会过时……事实上,我们原本就期望在光束路径上放置一块染色玻璃时会出现这种情况。
使用方法
将一个或多个染色玻璃方块放置在信标方块正上方的任意位置。光束将会消失。移除它们即可重新显示光束。
其他一切功能均与原版完全相同——包括效果、金字塔结构要求,以及使用粘性活塞启用/禁用信标的操作。
单人游戏
在纯单人模式下,此模组不会生效。然而,如果你使用“向局域网开放”,则该模组将对所有连接的玩家正确生效,即使仍处于“单人”模式。
如果世界随后被移至没有安装该模组的服务器、Realms(实时服),或返回到普通的单人模式,染色玻璃方块将再次像原版那样破坏信标的光束。
工作原理
在原版中,客户端和服务器都会检查信标的激活状态,但效果是在服务器端计算的,而渲染则在客户端进行。因此,仅在服务器端将_染色玻璃_从实际上不透明变为实际上透明,就会导致效果生效,但客户端会认为信标未激活,从而不渲染光束。

This small server-side-only mod lets you hide a beacon beam by placing tinted
glass above it, while keeping all the beacon's effects working normally.
Ideally, this mod would be obsoleted by Mojang adding this obvious and logical
feature to the stock game... it's frankly what we'd expect to happen if a block
of tinted glass was put in the beam's path.
Usage
Place one or more tinted glass blocks anywhere directly above the beacon block.
The beam will disappear. Remove them to show the beam again.
Everything else works exactly as normal — effects, the pyramid requirement,
and using sticky pistons to enable/disable the beacon.
Single-player
In pure singleplayer, this mod won't do anything. However, if you use "Open to LAN",
the mod will kick in correctly for all connected players, even if it's still "single
player".
If the world is later moved to a server without the mod, or to Realms, or
back to plain singleplayer, tinted glass blocks will break the beacons again
as normal for vanilla.
How it works
In vanilla, both client and server check for beacon activation, but effects are
server-side while rendering is client-side, so changing tinted glass from effectively opaque to effectively transparent just on the server means the effects happen, but the client believes the beacon's inactive, so doesn't render the beam.
评论 0
登录后参与评分
还没有评论,来抢沙发吧