Ever Changing
Ever Changing 允许你在多人游戏界面中使用 GitHub Gist(与 Engrok mod 兼容)的 URL,而不是常规的服务器 IP。每次你启动 Ngrok 隧道时,它都会从该 Gist 中获取 IP 地址,并且可以使用 Engrok 模组自动更新此地址,非常方便!
Ever Changing 是一个客户端模组,因为它需要在客户端上运行以防止服务器 IP 在客户端发生变化,而不是在服务器上。
最简单的解释
当你启动服务器时,Engrok 模组会自动打开一个 Ngrok 隧道。Ngrok 的 IP 每次打开隧道时都会改变。因此,我特别添加了 GitHub Gist 集成(本质上是文本文件),你可以将其添加到 Gist 文件中以在隧道打开时自动更新隧道 IP(在线且可通过其 ID 访问)。
Ever Changing 模组如何连接?
当你使用模组的 IP 地址格式而不是常规 IP 格式时,它会直接从客户端连接到 GitHub 服务器,无需任何验证或其他操作——并从该 Gist 中获取数据和连接地址。所以每次你在多人游戏界面点击刷新时,IP 会再次从 Gist 中获取。加入服务器时也会发生同样的事情。
使用方法
要使用 Ever Changing,你不需要进行任何设置!你只需要在 Minecraft 的多人游戏界面中添加一个服务器,然后输入以下三种内容之一(示例 Gist 的 ID 为:3bef909cddbfbb117f0bcf101222a5dc):
- GitHub Gist 的主 URL,如果你在 Gist 页面查看,看起来像这样:
gist://https://gist.github.com/MagicQuartz/3bef909cddbfbb117f0bcf101222a5dc
(格式: "gist://" + "https://gist.github.com/gitHubUser/" + gistId)
- GitHub Gist 的 API URL,看起来像这样:
gist://https://api.github.com/gists/3bef909cddbfbb117f0bcf101222a5dc
(格式: "gist://" + "https://api.github.com/gists/" + gistId)
- 直接使用 raw 前缀输入,如下所示:
gist://raw:3bef909cddbfbb117f0bcf101222a5dc (这是使用 Ever Changing 模组时 Minecraft 中的 IP 地址应显示的样子)
(格式: "gist://raw:" + gistId)
这些都可以由服务器所有者提供以实现无缝连接。玩得开心!
请注意,这个模组大约花了 5 小时完成,可能无法完美运行,但我已经尽力修补了所有问题,所以请不要故意破坏任何东西。
Ever Changing
Ever Changing lets you paste the URL of a GitHub gist (compatible with the Engrok mod) instead of a regular server IP in the multiplayer screen, and it pulls the ip from that gist every time you start an Ngrok tunnel, which conveniently can be automatically updated using the Engrok mod!
The Ever Changing mod is a client mod, as it is needed on the client to prevent the server IP from changing on the client, not on the server.
Simplest explanation
When you start the server, the Engrok mod automatically opens an Ngrok tunnel. The IP of Ngrok changes every time you open the tunnel. So, I specifically added a GitHub Gist integration (essentially these are text files) which you can add to automatically update the tunnel IP on the gist file (which is online and accessible to people with its ID) whenever the tunnel opens.
How does the Ever Changing mod connect?
Well, when you the mod's IP address format instead of the regular IP format, it automatically connects to the GitHub servers, hassle free from the client's side - no need for verifications, no nothing - and fetches the data and connection address from that gist. So every time you hit refresh in the the multiplayer screen, the ip is fetched again from the gist. The same thing also happens when you try to join.
Usage
To use ever changing, you don't need to use any settings whatsoever! All you have to do is add a server on the multiplayer screen in Minecraft, and instead of a regular IP address, you type in one of three things (the example gist's id is this: 3bef909cddbfbb117f0bcf101222a5dc):
- The GitHub gist's main URL, which looks like this if you're on the gist's page:
gist://https://gist.github.com/MagicQuartz/3bef909cddbfbb117f0bcf101222a5dc
(Format: "gist://" + "https://gist.github.com/gitHubUser/" + gistId)
- The GitHub gist's api URL, which looks like this:
gist://https://api.github.com/gists/3bef909cddbfbb117f0bcf101222a5dc
(Format: "gist://" + "https://api.github.com/gists/" + gistId)
- Just type it using the raw prefix like this:
gist://raw:3bef909cddbfbb117f0bcf101222a5dc (This is how the IP address in Minecraft is supposed to look with the Ever Changing mod)
(Format: "gist://raw:" + gistId)
Any of these can be provided by the server's owner for seamless connection. have fun!
Please keep in mind this mod was made in about 5 hours so it may not work perfectly, but I did my best to patch everything, so please do not try to intentionally break things.
评论 0
登录后参与评分
还没有评论,来抢沙发吧