跳到正文

Afar

作者:linstarowo

A faster, lighter minecraft chunk caching solution

收藏

截图

介绍

中文介绍正在准备中,下面暂时显示原文。

Afar

License: MIT

Afar is a faster, lighter chunk caching solution for minecraft, allowing you to see far beyond the server’s view distance.

How It Works

Instead of modifying the complex rendering engine, Afar operates at lower level. It works directly on the client’s network connection.

  1. Cache (Save): It silently listens to and saves all the chunk data packets the server sends to your client into a local database.
  2. Load (Read): When you move around and need chunks that are within your client’s view distance but beyond the server’s, Afar seamlessly loads that previously saved data from your cache instead of waiting for the server to send it.

Key Features

🚀 Performance

  • Utilizes SQLite as the storage backend, offering significantly faster read/write speeds and smaller file sizes compared to serializing NBT data to files.

🔧 Compatibility

  • Works purely at the network connection level, intercepting and forging packets. It makes zero changes to the game’s rendering code.
  • This makes it theoretically 100% compatible with any rendering optimization mods like Optifine, Sodium, Iris, and any mod that affects chunk rendering or visual aesthetics.

Dependence

  • Minecraft SQLite JDBC (modrinth)
  • World ID Provider such as VoxelMap and JourneyMap ( Xaero’s Map compatibility is still in production.)

Usage

  • You can find Afar config button in the settings menu or the mod list menu. All configuration items have corresponding explanations.
  • Here are some client-side command you can use
/afar dataInfo    //Show database infomation
/afar runVacuum   //Run database vacuum, which will optimize the size and read/write speed of the database
/afar doDrop      //Delete all chunk data
/afar deleteOld <float:hours>  // Delete all records before the specified database running time. You can check the running time using /afar dataInfo

Disclaimer

  • This mod simply re-uses data the server has already sent you. It does not hack the server to get more data. Your client’s performance when rendering a larger view distance is dependent on your own PC’s capabilities.

常见问题

Afar 支持哪些 Minecraft 版本?

Afar 支持 Minecraft Java 版 1.20.1–1.20.6,共 6 个版本,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。

Afar 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅客户端。

评论

登录后评论和评分

linstarowo 的其他作品

查看全部 →