跳到正文

Auto Replant Tree

作者:Cukkoo

Automatically replants saplings when a player breaks a log block. Supports all vanilla tree types across Fabric, Forge, and NeoForge.

收藏

介绍

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

Auto Replant Tree

Automatically replants saplings when you break a log block. Works on the server — no client mod needed.

Features

  • All vanilla trees — Oak, Spruce, Birch, Jungle, Acacia, Dark Oak, Mangrove, Cherry, Pale Oak
  • Nether trees — Crimson and Warped stems replant their respective fungi on nylium
  • 2×2 support — Dark Oak and Jungle trees replanted as a 2×2 grid
  • Sneak to cancel — Hold sneak while breaking to skip replanting
  • No-sapling mode — Set requireSapling: false to plant without consuming saplings
  • Stripped & wood variants — Recognizes all log, stripped log, wood, and hyphae variants
  • Full inventory search — Finds saplings anywhere including offhand
  • Per-tree config — Enable/disable specific trees via config/autoreplant.json

Supported Versions

| Minecraft | Fabric | Forge | NeoForge |
| ——— | —— | —– | ——– |
| 26.1.x | ✅ | ✅ | ✅ |
| 1.21.4 | ✅ | — | ✅ |
| 1.20.1 | ✅ | ✅ | — |

How It Works

  1. Break a log block
  2. Holding sneak? (if sneakToDisable: true) → Skip
  3. Matching sapling found in inventory? (skipped if requireSapling: false)
  4. Ground valid? (dirt, grass, nylium, etc.)
  5. Sapling planted, one consumed from inventory (none consumed if requireSapling: false)

Supported Trees

| Log Type | Sapling Planted | 2×2 |
| ———— | —————— | — |
| Oak | Oak Sapling | No |
| Spruce | Spruce Sapling | No |
| Birch | Birch Sapling | No |
| Jungle | Jungle Sapling | Yes |
| Acacia | Acacia Sapling | No |
| Dark Oak | Dark Oak Sapling | Yes |
| Mangrove | Mangrove Propagule | No |
| Cherry | Cherry Sapling | No |
| Pale Oak | Pale Oak Sapling | No |
| Crimson Stem | Crimson Fungus | No |
| Warped Stem | Warped Fungus | No |

Configuration

Config file at config/autoreplant.json:

{
  "sneakToDisable": true,
  "requireSapling": true,
  "trees": {
    "oak": true, "spruce": true, "birch": true,
    "jungle": true, "acacia": true, "dark_oak": true,
    "mangrove": true, "cherry": true, "pale_oak": true,
    "crimson": true, "warped": true
  }
}
  • Set any tree to false to disable its auto-replant
  • sneakToDisable: false → always replant regardless of crouching
  • requireSapling: false → plant without consuming saplings

Installation

Drop the jar into your server’s mods/ folder. Works server-side only — no client installation needed.

License

MIT

常见问题

Auto Replant Tree 支持哪些 Minecraft 版本?

Auto Replant Tree 支持 Minecraft Java 版 1.20–26.2,共 23 个版本,可用的加载器:Fabric / Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。

Auto Replant Tree 怎么安装?

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

评论

登录后评论和评分

Cukkoo 的其他作品

查看全部 →