Greenlight
Greenlight 是一个库类模组。 它本身不会添加菜单、功能开关或任何可见的游戏内变化。
当其他模组说明支持或需要 Greenlight 时,请安装它。
Greenlight 的用途
一些客户端功能是无害的美化内容。另一些则可能影响游戏玩法,例如移除雾效、改变黑暗程度,或揭示服务器通常期望玩家无法获取的信息。
Greenlight 为服务器和客户端模组提供了一种共享的处理方式:
- 服务器声明哪些功能是允许的。
- 客户端模组在启用功能前检查该权限。
- 玩家仍可以保留自己的本地设置。
- 服务器可以设定限制,客户端模组会将其钳制在这些限制之内。
目标很简单:兼容的模组默认应保持原版安全(vanilla-safe),仅在服务器允许时才选择加入。
服务器如何允许功能
服务器可以通过其 服务器资源包 发布 Greenlight 策略。
不需要服务端 Greenlight 模组。不需要 Paper、Fabric、NeoForge 或 Bukkit 插件来发送策略文件。只要你的服务器能发送资源包,就能发布 Greenlight 策略。
Greenlight 仅信任 Minecraft 标记为来自 当前服务器 的资源包中的策略。具有相同文件的本地资源包无效。
服务器资源包可以是必需的或可选的。如果玩家拒绝、移除或禁用了可选的服务器资源包,Greenlight 将看不到受信任的策略,兼容的功能将保持被禁用状态。
当你离开服务器时,这些权限也会随之消失。
Greenlight 不做什么
Greenlight 不是反作弊系统。
经过修改的客户端可以忽略客户端规则。Greenlight 旨在服务于诚实的客户端、整合包以及希望拥有干净、统一的权限系统而非每个模组自行发明握手协议的服务器社区。
Greenlight 也不会强制启用功能。它只是告诉兼容的模组服务器允许什么。
对于玩家
只有当你使用的模组支持或需要 Greenlight 时,你才需要安装它。
单独安装 Greenlight 不会改变游戏。
如果服务器未提供某功能的策略,兼容模组应将该功能视为在多人游戏中被禁用。
对于服务器所有者
在你的服务器资源包中,为每个功能添加一个 JSON 策略文件。
从这里开始:
策略文件格式:
对于模组开发者
Greenlight 为 Fabric 和 NeoForge 模组提供了一个小型 API。
你可以选择:
- 依赖完整的 Greenlight 运行时。
- 通过捆绑 API 并在缺少运行时失败的方式可选地支持 Greenlight。
开发者指南:
许可证
LGPL-3.0-or-later
Greenlight
Greenlight is a library mod. It does not add a menu, a feature toggle, or any visible gameplay change by itself.
Install it when another mod says it supports or requires Greenlight.
What Greenlight is for
Some client-side features are harmless cosmetics. Others can affect gameplay, like removing fog, changing darkness, or revealing information the server normally expects players not to have.
Greenlight gives servers and client mods a shared way to handle that:
- The server says which features are allowed.
- The client mod checks that permission before enabling the feature.
- The player can still keep their own local settings.
- The server can set limits, and the client mod clamps to those limits.
The goal is simple: compatible mods should stay vanilla-safe by default, then opt in only when the server allows it.
How servers allow features
A server can publish Greenlight policy through its server resource pack.
No server-side Greenlight mod is required. No Paper, Fabric, NeoForge, or Bukkit plugin is required just to send policy files. If your server can send a resource pack, it can publish Greenlight policies.
Greenlight only trusts policy from resource packs Minecraft marks as coming from the current server. A local resource pack with the same files does nothing.
The server pack can be required or optional. If the player declines, removes, or disables an optional server pack, Greenlight sees no trusted policy and compatible features stay denied.
When you leave the server, the permissions go away.
What Greenlight does not do
Greenlight is not anti-cheat.
A modified client can ignore client-side rules. Greenlight is for honest clients, modpacks, and server communities that want a clean, shared permission system instead of every mod inventing its own handshake.
Greenlight also does not force features on. It only tells compatible mods what the server allows.
For players
You only need Greenlight if a mod you use supports or requires it.
Installing Greenlight alone will not change the game.
If a server does not provide a policy for a feature, compatible mods should treat that feature as denied on multiplayer.
For server owners
Add one JSON policy file per feature to your server resource pack.
Start here:
Policy file format:
For mod developers
Greenlight provides one small API for Fabric and NeoForge mods.
You can either:
- Require the full Greenlight runtime.
- Support Greenlight optionally by bundling the API and failing closed when the runtime is missing.
Developer guide:
License
LGPL-3.0-or-later
下载 Greenlight
下载 Greenlight
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Greenlight
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Greenlight
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Greenlight
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Greenlight
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Greenlight
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Greenlight
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Greenlight
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Greenlight
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
完整更新日志:
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
缓冲的原始输入和线程化的事件轮询
模组
一个用于收集生物掉落物的多区块模组。
模组
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
原版世界生成优化模组
评论 0
登录后参与评分
还没有评论,来抢沙发吧