PicoMC
现代 Minecraft。极致轻量。
⚠️ PicoMC 处于早期开发阶段。可能会出现错误,安装前请务必备份服务器数据。
PicoMC 是一款专为 LeafMC 1.21.11 构建的优化插件。它会自动应用数百项精心调优的设置,并实时动态管理服务器资源。其目标是在仅 512MB–1GB RAM 的情况下,为 1–5 名玩家流畅运行现代生存版 Minecraft。
其他版本可能可以加载,但无法获得完整的性能提升(例如 PaperMC、Purpur 或更早/更新的版本)。
依然是原汁原味的 Minecraft
其他项目通过用 C 或其他语言从头重写 Minecraft 来实现低硬件占用——技术上令人印象深刻,但你失去了所有东西:没有插件、没有模组、也没有熟悉的游戏行为。
PicoMC 基于 LeafMC 运行,而 LeafMC 建立在 Gale → Purpur → Paper → Spigot → Bukkit 之上。这意味着:
- 任何 Spigot、Paper 或 Purpur 插件均可与 PicoMC 共存
- 原版客户端可直接连接——无需客户端模组
- 完整的生存游戏体验——内容未被阉割,只是经过优化
v1.0.0-beta 包含的功能
自动配置优化
首次启动时,PicoMC 会将你所有的原始配置文件备份到服务器根目录下的一个文件夹中,然后将其替换为针对 bukkit、spigot、paper、gale、leaf、purpur 和 server.properties 优化后的版本。备份仅执行一次——重启不会创建重复的备份。
自适应视距调节
PicoMC 会自动寻找你的硬件在 TPS 高于 19.0 时所能维持的最大视距。
- 当 TPS 降至 19.0 以下时 → 立即降低视距,每 30 秒重试一次直到稳定
- 当 TPS 在 15 分钟内保持在 19.8 以上时 → 尝试将视距增加一个区块
- 每次更改后有 5 分钟的冷却时间,之后才能再次进行调整
- 为你的特定硬件找到并锁定最佳设置
双态生物 AI
- 敌对生物在距离玩家 16 格处发现玩家,而不是原来的 40+ 格
- 超过 16 格的生物完全停止大脑运算——几乎不消耗 CPU 资源
- 在 16 格范围内,它们完全激活并锁定玩家
- 注意:目前未被察觉的生物会呈现冻结状态——未来版本将添加空闲漫游功能,使它们在未锁定目标时也显得生机勃勃
- 被动动物简化为基础漫游
- 村民进行交易和睡觉,除此之外没有其他行为
选择性自然生成
从自然生成中移除: 幻翼、流浪商人、热带鱼、发光鱿鱼、海豚、蝙蝠、熊猫、狐狸、北极熊、疣猪兽等
保留: 所有生存必需的生物——牛、羊、猪、鸡、狼、所有敌对生物、鱿鱼、蝌蚪
创造模式不受影响。所有生物仍可通过刷怪蛋和命令获取。
区块预生成
/pico pregenerate <radius> 会在后台异步生成以出生点为中心的圆形区域区块,同时保持服务器响应能力。进度会向所有在线玩家广播。
即将推出
PicoMC 正在积极开发中。随着项目的演进,功能可能会发生变化、新增或被取消。
PeekSync
服务器通常会将玩家视野范围内的所有区块保留在内存中。PeekSync 允许服务器将区块从内存中卸载,同时在客户端保持可见——由客户端持有视觉渲染,服务器仅加载玩家实际附近的区块。这可能会在探索期间显著降低服务器的 RAM 使用量。
垂直区块切片
不再一次性加载整个 300 格高的区块列,而是仅加载玩家实际所在位置的垂直部分。玩家在表面?除非他们前往地下,否则不要加载深层地下部分。这可能完全取代现有的世界高度缩减方案。
高级生物 AI 系统
目前,未被察觉的生物会完全冻结,这会破坏沉浸感。未来版本将赋予未被察觉的生物简单的空闲漫游功能,使其看起来栩栩如生——廉价的随机移动且无寻路成本。此外,更深层的目标选择器操作将在 NMS 级别完全剥离特定的 AI 行为,从而进一步降低 CPU 开销。
完整配置系统
通过配置文件提供完全可自定义的设置。针对不同硬件情况的预设,包括 RAM、CPU、BALANCED(平衡)和 PERFORMANCE(性能)模式。CUSTOM(自定义)预设允许你微调 PicoMC 管理的每一个值——生成限制、刻率、视距范围、生物活动范围等。
这些功能中的某些可能在开发过程中发生重大变化或由更好的方案替代。随着项目的发展,还将添加更多功能。
JVM 参数
提供两个版本——请根据你使用的宿主环境选择。
完全控制(推荐——VPS、独立服务器、自建主机):
-Xms512M -Xmx512M
-XX:+UseG1GC
-XX:+ParallelRefProcEnabled
-XX:MaxGCPauseMillis=100
-XX:+UnlockExperimentalVMOptions
-XX:+DisableExplicitGC
-XX:+AlwaysPreTouch
-XX:G1NewSizePercent=20
-XX:G1MaxNewSizePercent=40
-XX:G1HeapRegionSize=4M
-XX:G1ReservePercent=12
-XX:G1HeapWastePercent=4
-XX:G1MixedGCCountTarget=4
-XX:G1MixedGCLiveThresholdPercent=75
-XX:InitiatingHeapOccupancyPercent=15
-XX:SurvivorRatio=8
-XX:MaxTenuringThreshold=2
-XX:+UseStringDeduplication
-XX:+UseCompressedOops
-XX:+UseCompressedClassPointers
-XX:+PerfDisableSharedMem
-XX:+ShrinkHeapInSteps
-XX:SoftRefLRUPolicyMSPerMB=0
-XX:MinHeapFreeRatio=20
-XX:MaxHeapFreeRatio=40
受限宿主环境(Pterodactyl、共享主机、容器——无法控制 Xms):
-XX:+UseG1GC
-XX:+ParallelRefProcEnabled
-XX:MaxGCPauseMillis=100
-XX:+UnlockExperimentalVMOptions
-XX:+DisableExplicitGC
-XX:G1NewSizePercent=20
-XX:G1MaxNewSizePercent=40
-XX:G1HeapRegionSize=4M
-XX:G1ReservePercent=12
-XX:G1HeapWastePercent=4
-XX:G1MixedGCCountTarget=4
-XX:G1MixedGCLiveThresholdPercent=75
-XX:InitiatingHeapOccupancyPercent=15
-XX:SurvivorRatio=8
-XX:MaxTenuringThreshold=2
-XX:+UseStringDeduplication
-XX:+UseCompressedOops
-XX:+UseCompressedClassPointers
-XX:+PerfDisableSharedMem
-XX:+ShrinkHeapInSteps
-XX:SoftRefLRUPolicyMSPerMB=0
-XX:MinHeapFreeRatio=20
-XX:MaxHeapFreeRatio=40
-XX:MaxRAMPercentage=50.0
将 512M 替换为你想要的分配值。如果使用 1GB,请使用 1G。
要求
- 服务器: LeafMC 1.21.11
- Java: 21
安装
- 将
PicoMC.jar 放入 /plugins 文件夹
- 启动服务器 — 配置文件会自动备份并优化
- 重启服务器 — 首次启动后需要重启一次,所有配置更改才能完全生效
- 完成
命令
| 指令 |
说明 |
/pico status |
TPS、内存占用、实体数量、视距 — 带颜色编码显示 |
/pico pregenerate <半径> |
异步预生成出生点周围的区块 |
/pico reload |
重新加载插件 |
权限:picomc.admin(默认:op)
注意事项
- 配置仅在首次启动时替换——原始配置文件已备份至服务器根目录
- 适用于任何规模的服务器——针对小型服务器进行了优化
- 专为 Leaf 1.21.11 设计——其他版本可能无法获得同等性能
- 此为早期版本——请在 GitHub 上报告问题
本资源与 Mojang、Paper、Purpur、Gale 或 LeafMC 无关。
PicoMC
Modern Minecraft. Tiny footprint.
⚠️ PicoMC is in early development. Expect bugs, and always back up your server before installing.
PicoMC is an optimization plugin built specifically for LeafMC 1.21.11. It automatically applies hundreds of carefully tuned settings and dynamically manages server resources in real time. The goal is to run modern survival Minecraft on as little as 512mb–1gb RAM for 1–5 players.
Other versions may load but won't achieve full performance gains (such as PaperMC, Purpur, or older and newer versions).
Still real Minecraft
Other projects achieve low hardware usage by rewriting Minecraft from scratch in C or other languages — impressive technically, but you lose everything. No plugins, no mods, no familiar behavior.
PicoMC runs on LeafMC which is built on Gale → Purpur → Paper → Spigot → Bukkit. That means:
- Any Spigot, Paper, or Purpur plugin works alongside PicoMC
- Vanilla clients connect — no client mods needed
- Full survival gameplay — nothing gutted, just optimized
What's in v1.0.0-beta
Automatic Config Optimization
On first startup PicoMC backs up all your original configs to a folder in your server root, then replaces them with optimized versions across bukkit, spigot, paper, gale, leaf, purpur and server.properties. Backup only happens once — restarts won't create duplicate backups.
Self-Tuning View Distance
PicoMC finds the highest view distance your hardware can sustain above 19.0 TPS — automatically.
- TPS drops below 19.0 → immediately reduces view distance, retries every 30 seconds until stable
- TPS stays above 19.8 for 15 minutes → tries increasing view distance by one chunk
- 5 minute cooldown after any change before doing anything again
- Finds and locks onto the optimal setting for your specific hardware
Two State Mob AI
- Hostile mobs detect players at 16 blocks instead of 40+
- Mobs beyond 16 blocks stop ticking their brain entirely — nearly free CPU cost
- Within 16 blocks they activate fully and target players
- Note: mobs currently appear frozen when unaware — future versions will add idle wandering so they feel alive even when not targeting
- Passive animals simplified to basic wandering
- Villagers trade and sleep, nothing else
Selective Natural Spawning
Removed from natural spawning: phantom, wandering trader, tropical fish, glow squid, dolphin, bat, panda, fox, polar bear, hoglin, and more
Kept: all survival-essential mobs — cows, sheep, pigs, chickens, wolves, all hostile mobs, squid, tadpoles
Creative mode unaffected. Everything still accessible via spawn eggs and commands.
Chunk Pregeneration
/pico pregenerate <radius> generates chunks in a circle around spawn asynchronously while the server stays responsive. Progress is broadcast to all online players.
What's coming
PicoMC is actively developed. Features may change, be added, or cancelled as the project evolves.
PeekSync
The server normally keeps chunks loaded in memory for everything a player can see. PeekSync lets the server unload chunks from memory while keeping them visible on the client — the client holds the visual, the server only loads what players are actively near. Could significantly reduce server RAM usage during exploration.
Vertical Chunk Slicing
Instead of loading all 300 blocks of a chunk column at once, only load the vertical sections near where the player actually is. Player on the surface? Don't load the deep underground sections until they go there. May replace the world height reduction approach entirely.
Advanced Mob AI System
Currently mobs freeze completely when unaware which breaks immersion. Future versions will give unaware mobs simple idle wandering so they look alive — cheap random movement with no pathfinding cost. Beyond that, deeper goal selector manipulation will strip specific AI behaviors entirely at the NMS level for even lower CPU cost.
Full Config System
Fully customizable settings via a config file. Presets for different hardware situations including RAM, CPU, BALANCED, and PERFORMANCE modes. A CUSTOM preset lets you tweak every single value PicoMC manages — spawn limits, tick rates, view distance bounds, mob ranges, and more.
Some of these features may change significantly or be replaced by better approaches during development. More features will be added as the project grows.
JVM Flags
Two versions — use whichever fits your host.
Full control (recommended — VPS, dedicated, self hosted):
-Xms512M -Xmx512M
-XX:+UseG1GC
-XX:+ParallelRefProcEnabled
-XX:MaxGCPauseMillis=100
-XX:+UnlockExperimentalVMOptions
-XX:+DisableExplicitGC
-XX:+AlwaysPreTouch
-XX:G1NewSizePercent=20
-XX:G1MaxNewSizePercent=40
-XX:G1HeapRegionSize=4M
-XX:G1ReservePercent=12
-XX:G1HeapWastePercent=4
-XX:G1MixedGCCountTarget=4
-XX:G1MixedGCLiveThresholdPercent=75
-XX:InitiatingHeapOccupancyPercent=15
-XX:SurvivorRatio=8
-XX:MaxTenuringThreshold=2
-XX:+UseStringDeduplication
-XX:+UseCompressedOops
-XX:+UseCompressedClassPointers
-XX:+PerfDisableSharedMem
-XX:+ShrinkHeapInSteps
-XX:SoftRefLRUPolicyMSPerMB=0
-XX:MinHeapFreeRatio=20
-XX:MaxHeapFreeRatio=40
Restricted host (Pterodactyl, shared hosting, containers — no Xms control):
-XX:+UseG1GC
-XX:+ParallelRefProcEnabled
-XX:MaxGCPauseMillis=100
-XX:+UnlockExperimentalVMOptions
-XX:+DisableExplicitGC
-XX:G1NewSizePercent=20
-XX:G1MaxNewSizePercent=40
-XX:G1HeapRegionSize=4M
-XX:G1ReservePercent=12
-XX:G1HeapWastePercent=4
-XX:G1MixedGCCountTarget=4
-XX:G1MixedGCLiveThresholdPercent=75
-XX:InitiatingHeapOccupancyPercent=15
-XX:SurvivorRatio=8
-XX:MaxTenuringThreshold=2
-XX:+UseStringDeduplication
-XX:+UseCompressedOops
-XX:+UseCompressedClassPointers
-XX:+PerfDisableSharedMem
-XX:+ShrinkHeapInSteps
-XX:SoftRefLRUPolicyMSPerMB=0
-XX:MinHeapFreeRatio=20
-XX:MaxHeapFreeRatio=40
-XX:MaxRAMPercentage=50.0
Replace 512M with your desired allocation. For 1gb use 1G.
Requirements
- Server: LeafMC 1.21.11
- Java: 21
Installation
- Drop
PicoMC.jar into /plugins
- Start the server — configs are backed up and optimized automatically
- Restart the server — a restart after first launch is needed for all config changes to fully take effect
- Done
Commands
| Command |
Description |
/pico status |
TPS, RAM, entities, view distance — color coded |
/pico pregenerate <radius> |
Pre-generate chunks async around spawn |
/pico reload |
Reloads the plugin |
Permission: picomc.admin (default: op)
Notes
- Configs replaced on first startup only — originals backed up to server root
- Works on any server size — optimized for small servers
- Designed for Leaf 1.21.11 — other versions may not perform as well
- This is an early release — please report issues on GitHub
Not affiliated with Mojang, Paper, Purpur, Gale, or LeafMC.
评论 0
登录后参与评分
还没有评论,来抢沙发吧