跳到正文

AFKFarming

作者:Iraquidose

Server-side AFK zones that keep your mob farms, crop farms and spawners running while nobody is nearby. No client mod needed.

收藏

截图

介绍

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

AFK Farming

Keep your server’s farms running when nobody is around. Server-side only: players join with a plain vanilla client.

AFK Farming lets server owners mark out AFK zones. Inside a zone, the game acts as if a player is standing nearby, so mob farms, spawners, crop farms and redstone keep working while everyone is offline or somewhere else.

You don’t need to add anything to your modpack. Install it on the server and that’s it.


What a zone does

A zone works at two different scales: some effects cover every chunk the zone touches, others stop exactly at the zone’s box.

In every chunk the zone touches

Minecraft loads and ticks whole chunks, so these effects cover the entire chunks, not just the box:

  • Chunks stay loaded and ticking. Redstone, hoppers, furnaces and mob movement keep running with nobody nearby. Zones survive restarts and keep their dimension active even when it’s empty.
  • Crops and plants grow. Wheat, saplings, sugar cane and anything else that grows on random ticks grows anywhere in these chunks, even just outside the box. A real player nearby works the same way.
  • Nether portals can still spawn zombified piglins.

Only inside the zone’s box

These effects stop exactly at the box you gave /afkzone:

  • Natural mob spawning works. Each zone counts as a player for the spawn range check and for the mob caps, so it adds the same spawning room one player would. Mobs only spawn inside the box.
  • Mobs don’t despawn while they’re inside the box, just like when a player is within 32 blocks.
  • Monster spawners run when they’re inside the box.

Zones don’t stop mobs spawning close by the way a real player does, so mob farms work right up to the zone’s edges. A real player standing nearby still blocks spawns around themselves, the same as in vanilla.

Tip: make the box match your mob farm’s spawning area. Crop farms only need to be in the same chunks as the zone.


Commands

Command What it does
/afkzone create <name> Turns your WorldEdit selection into a zone
/afkzone create <name> <from> <to> Makes a zone from two corners (no WorldEdit needed)
/afkzone remove <name> Removes a zone
/afkzone list Lists the zones in your current dimension
  • Zones are saved per dimension, along with the world.
  • A zone can cover up to 1,024 chunks.
  • Zones are 3D boxes, so include the full height of your farm.

Permissions

Permission Allows
afkfarming.all Everything below
afkfarming.zone.create /afkzone create
afkfarming.zone.remove /afkzone remove
afkfarming.zone.list /afkzone list

Without a permissions mod, only ops (level 2+) and the console can use the commands. LuckPerms works on every loader, for example:

/lp user <player> permission set afkfarming.all true


Versions

Minecraft Loaders
26.3 NeoForge, Fabric
1.21.1 NeoForge, Fabric
1.20.1 Forge, Fabric
  • Fabric: needs Fabric API on the server.
  • Optional: WorldEdit (7.2+ on 1.20.1, 7.3+ on 1.21.1, 7.4+ on 26.3) for creating zones from a selection.
  • Optional: LuckPerms, or any permissions mod for your loader.

Good to know

  • Server-side only. AFK Farming adds no blocks, items or packets, so clients don’t need it. It also works in singleplayer, but a singleplayer world only runs while it’s open.
  • Plays nicely with /forceload. Chunks you force-loaded yourself stay loaded when you remove a zone.
  • On 26.3, dedicated servers pause after 60 seconds with nobody online. Set pause-when-empty-seconds=0 in server.properties if your farms should keep running on an empty server.
  • Don’t install it alongside AFK Anchor. Both add /afkzone. If you want a placeable block that players can set up themselves, use AFK Anchor instead.

常见问题

AFKFarming 支持哪些 Minecraft 版本?

AFKFarming 支持 Minecraft Java 版 1.20.1–26.3,共 3 个版本,可用的加载器:Fabric / Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。

AFKFarming 怎么安装?

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

评论

登录后评论和评分

Iraquidose 的其他作品

查看全部 →