SharedWorld
无需专用 Minecraft 服务器,与好友一起游戏。该模组将 e4mc 与 Google Drive(或 S3)同步功能相结合,实现“伪 Minecraft 服务器”,体验如同真实的 Minecraft 服务器。
工作原理
在后台,世界数据会在 Google Drive 或 S3 存储桶中进行同步。第一个加入“共享世界”的玩家将成为“主机”。后续加入的玩家会通过 e4mc 自动重定向到主机。当主机退出游戏时,系统会从在线玩家中选出新的主机,所有玩家会自动重新连接到新主机。
提示:S3 比 Google Drive 更好!
该模组现在支持“S3 存储桶”。这比将世界托管在 Google Drive 上要好得多。优势如下:
- 性能更好。Google Drive 速度较慢。使用 S3 后,你将能更快地加入和离开 SharedWorld。
- 隐私保护。不再需要 Google 登录,分享邮箱体验很糟糕(而且我需要投入大量精力来保护此类信息)。使用 S3 存储桶后,模组不再持有你的邮箱或 Google 账户名称。
- 不会占用你的 Google Drive 空间。
- 无需频繁重新登录 Google Drive,因为会话过期而导致的麻烦。
- 高级用户可以自行托管后端。如果你不想使用任何云服务提供商,完全可以这样做!
- 仍然免费 :)
你只需在创建共享世界时选择“S3 存储桶”选项而不是 Google Drive,并填入你的 S3 存储桶详细信息即可。我个人推荐使用“Cloudflare R2 存储桶”。它免费提供 10GB 存储空间,速度快,如果万一你需要更多存储,Cloudflare 按每 GB/月 $0.015 收费,也就是非常便宜。不过即使是在免费计划下,它也要求提供信用卡。 以下是 Cloudflare 的简短教程: 创建 Cloudflare 账户并登录 -> 在仪表板中点击“storage & databases” -> R2 object storage -> 创建存储桶 -> 输入任意名称并点击创建 -> 返回 R2 object storage,滚动到页面底部,点击“Manage API Tokens” -> 点击 Create user API Token -> 输入任意名称,选择“Object Read & Write”,仅应用于特定存储桶(选择你刚刚创建的那个),点击创建用户 API Token -> 复制显示的密钥,并在创建世界时将它们粘贴到 Shared World 中 -> 享受吧!
除了 Cloudflare,还有许多其他替代方案。如果你没有 Cloudflare 要求的信用卡,可以尝试 Blackblaze B2。它也提供 10GB 免费存储空间,并且在免费计划下不要求提供信用卡。
提示 2:如果 e4mc 给你带来问题,你可以使用其他工具!
如果你有连接问题,可以使用 Tailscale、Radmin VPN、端口转发等……你只需进入 SharedWorld 设置中的“Advanced”标签页(左上角),并在那里设置你的朋友可以通过你选择的方法访问你的 IP 地址。我推荐 Tailscale。
Google Drive 权限
该模组仅请求拥有私有文件夹以存储数据(即你的共享世界)的权限。这意味着模组永远无法访问你的整个驱动器。
数据隐私
模组仅在后端存储其运行所需的信息。例如你的 Minecraft UUID 和世界数据。Google Drive 作用域始终包含你的名字和邮箱,这些信息从未以任何方式使用。模组和后端均在 MIT 许可证下完全开源。此外,如果你愿意,还可以自行托管后端。更多信息请参阅:
快速常见问题解答
- 该模组是否支持“离线玩家”?不支持。Minecraft UUID 用于安全目的,例如你的账户不能加入它不是成员的共享世界。
- 是否支持 S3 存储桶?支持!
- 是否使用 GitHub 进行存储?不支持。你会被标记为违规。
- 我看到代码是 AI 辅助生成的……这真的能很好地工作吗?我在本项目的质量和健壮性上投入了巨大的努力。如果你发现任何问题,请在 GitHub 上告诉我!
- 但我真的非常不喜欢 LLM!这很酷,我尊重你的观点。该模组是免费且开源的,你不必使用它。只是请不要发送恶意攻击给我。我一直对 AI 充满热情,远在 ChatGPT 出现之前就是如此,我们都有各自看待事物的方式。
特别感谢
SharedWorld
Play with your friends without a dedicated Minecraft server. The mod combines e4mc with Google Drive (or S3) sync to achieve "fake Minecraft servers" that feel like real Minecraft servers.
How it works
Behind the scenes, the world is synced on Google Drive or an S3 bucket. The first player to join a 'Shared World' becomes the 'host'. The following players are automatically redirected to the host via e4mc. When the host leaves the game, a new host across the online players is picked and all players automatically reconnect to the new host.
Pro Tip: S3 is better than Google Drive!
The mod now supports 'S3 buckets'. These are SO much better than hosting your world on Google Drive. A few advantages:
- Much better performance. Google Drive is slow. You'll be able to join and leave a SharedWorld much faster.
- Privacy. Google login is no longer required, sharing your email kind of sucks (and I have to put a ton of effort into protecting such information). With S3 buckets the mod no longer holds your email, or your Google Account name.
- Not filling your Google Drive.
- No logging in to Google Drive again every so often because the session expired.
- Advanced users can self-host. Don't use any cloud provider if you don't want to!
- It's still free :)
All you have to do when creating a Shared World is choosing the option 'S3 bucket' instead of Google Drive and put your S3 bucket details. I personally recommend using a 'Cloudflare R2 bucket'. It has 10GB for free, it's fast, and if somehow you need more storage Cloudflare charges $0.015 per GB/month, also known as very cheap. It does ask for a credit card even on the free plan. For the Cloudflare way here's a short tutorial: Create a Cloudflare account and login -> in the dashboard click 'storage & databases' -> R2 object storage -> Create bucket -> put any name and click create -> go back to R2 object storage, scroll to the bottom of the page, click 'Manage API Tokens' -> Click Create user API Token -> Put any name, select 'Object Read & Write', apply to specific buckets only (choose the one you just created), click create user API token -> copy the keys shown and paste them on Shared World when creating your world -> Enjoy!
There are also many other alternatives other than Cloudflare. If you don't have a credit card, which Cloudflare asks for, you can try Blackblaze B2. It also has 10GB of free storage and doesn't ask for it for the free plan.
Pro Tip 2: If e4mc gives you problems, you can use something else!
If you have connection problems, you can use Tailscale, Radmin VPN, port forwarding... All you have to do is go to the 'Advanced' tab on the SharedWorld settings (top left corner) and set there the IP where your friends can reach you with the method of your choice. I recommend Tailscale.
Google Drive permissions
The mod only requests permission to have a private folder where it stores data (that is, your shared worlds). This means that the mod never has access to your entire drive.
Data Privacy
The mod stores on a backend only the information it requires to function. That is data like your minecraft UUID and world data. Google Drive scopes always contain your name and email, this information is never used in any way. Both the mod and backend are fully opensource under a MIT license. Furthermore, it is possible to self-host the backend if you want. For more information see:
Quick FAQ
- Does the mod support 'offline players'? No. The minecraft UUID is used for safety, e.g. your account can't join Shared Worlds that it's not a member of.
- S3 bucket support? Yes!
- Using github for storage? No. You will get yourself flagged.
- I see the code is AI assisted.. Does this really work well? I have put a TON of effort into the quality and robustness of this project. If you find any issue, please tell me so on GitHub!
- But I really really don't like LLMs! That's cool and I respect that. The mod is free and open-source, you don't have to use it. Just please don't send me any hate. I have always been very passionate about AI from way before ChatGPT, we all have our own ways of looking at things.
Special thanks
Special thanks to vgskye for creating the e4mc mod. Without it I wouldn't have been able to figure out the networking to create this.
下载 SharedWorld
下载 SharedWorld
下载 SharedWorld
下载 SharedWorld
下载 SharedWorld
下载 SharedWorld
下载 SharedWorld
下载 SharedWorld
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 SharedWorld
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 SharedWorld
新增
- 新增对 Minecraft 26.3 的支持。
- 主机端注意事项。 如果世界上次是在不同的 Minecraft 版本中游玩,或者使用了你未安装的模组,那么在打开任何界面之前,你会看到一个屏幕,列出所有变更内容。使用更高版本进行主机托管会永久更新该世界(仍在使用旧版本的朋友在更新前无法再作为主机托管);使用较低版本进行主机托管可能会导致部分功能损坏;缺失的模组会导致其方块和物品从世界中移除。由你决定:“继续托管”或“取消”。过去,使用较低版本的 Minecraft 进行主机托管会被直接拒绝;现在则交由你自己决定。
修复
- 在 26.x 版本中,如果在错误时机取消托管并再次尝试托管,游戏可能会卡在加载界面上,直到重启才会恢复。
- 当 Minecraft 本身在打开世界前询问某些事项时(例如针对来自其他版本的世界提示“是否备份此世界?”),点击“取消”现在会将你带回共享世界界面,而不是让托管处于半完成状态。
- 你刚刚点击过的按钮不再在步骤切换后保持选中轮廓(在 26.x 版本的创建世界界面中最为明显)。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
添加区块认领和玩家组队功能,并与 Xaero's Minimap 和 World Map 集成
评论 0
登录后参与评分
还没有评论,来抢沙发吧