GitMC

模组

· 作者 Alek2403

GitMC 将完整的 Git 版本控制功能引入 Minecraft 单人世界,支持提交快照、创建分支、在分支间切换,并通过游戏内聊天命令将所有内容备份到 GitHub,无需任何外部工具。

0 本站下载 0 关注 更新于 7 个月前

需要前置:Fabric API、Fabric Language Kotlin

最新 1.0.0 · 26.1 · Fabric

一键开服(送7天)

Ever demolished a build you immediately regretted? Wanted to try a completely different base layout without risking your current world? GitMC gives your Minecraft world a full Git repository - the same technology developers use to manage code - so you can save snapshots, experiment freely, and always go back.

No terminal. No external apps. Just type /git save "my message" and you're covered.


What you can do

? Save snapshots Run /git save "Built the nether hub" to checkpoint your world at any moment. Every snapshot stores exactly what your world looked like — blocks, structures, terrain changes.

? Branch your world Create a separate branch to experiment with a mega-build or a new base layout, while your "main" world stays untouched. Switch between them with a single command — GitMC auto-saves before switching and reloads the world automatically.

⏪ Travel through time — and back Use /git log to see your history and /git checkout <hash> to jump back to any past state. Your position is restored after the reload so you land right where you were. Done exploring? /git latest brings you straight back to the newest commit - no need to remember which branch you came from.

? Auto-commit Configure GitMC to save automatically every X minutes, when you sleep in a bed, or when you leave the world. You'll never lose a session of progress again.

☁️ Back up to GitHub Push your entire world history - all branches, all commits - to a private GitHub repository. Pull it back on any machine. Your world, in the cloud, forever.

?️ Restore individual chunks Accidentally corrupted a region or blew up the wrong thing? Restore specific .mca chunk files from any past commit without touching the rest of your world.


How it works

GitMC embeds JGit directly - no Git installation needed on your system. Each world gets its own .git folder inside its save directory. A .gitignore is automatically created and kept up to date, so only meaningful world data is tracked (no session locks, no per-tick noise, no player inventory spam).

All feedback is non-intrusive: quick operations show a small toast notification in the corner, slow network operations (push/pull) show a progress bar that disappears when done.


Quick start

/git init
/git save "My first snapshot"
/git branch create experiment
/git switch experiment
/git switch main

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源