Swift Harvest Datapack, Crops Replant Themselves

Quick rating

Community listing page, reviews here may not be monitored by the author.

Swift Harvest Datapack, Crops Replant Themselves

By MD22Owner

No reviews yet

Auto replant for farming: break a grown crop and it sows itself again from one seed of the drop. Wheat, carrots, potatoes, beetroot and nether wart. Server-side datapack - no mod, nothing for players to install.

Mod Loaders
Minecraft
26.3 26.2

About

Description

Swift Harvest

Break a grown crop and it plants itself again. One seed from what you just harvested goes back into the ground, the rest is yours.

No more walking the same row twice — once to break, once to replant.


What it does

Harvest a crop the normal way. The moment it drops, the field is sown again.

Crop Replants as
Wheat Wheat seeds
Carrots Carrot
Potatoes Potato
Beetroot Beetroot seeds
Nether wart Nether wart

Exactly one item from the drop is used for replanting. Break a wheat plant that gives you four seeds and you keep three. Nothing is created out of nothing, and nothing extra is taken.

It works with any tool and with your bare hands. Fortune still works — a bigger drop simply means more left over after the one seed goes back.


Why it does not use right-click

The obvious version of this idea is "right-click a crop to harvest it". That is what mods do, and there is a reason it is always a mod.

A datapack can only react to events the game reports. Right-clicking a crop in vanilla does nothing at all, so the game reports nothing — no advancement trigger fires, no statistic moves. Tested on a real 26.2 server with a real mouse click against every candidate trigger (item_used_on_block, any_block_use, default_block_use): placing a torch on stone fires two of them, right-clicking ripe wheat fires none.

So this pack hooks the one moment that is reported: the harvest itself. You break the crop as always — the replanting is what you no longer have to do.


It does not slow your server down

There is no scanning of your farms and no per-player raycast. The pack looks at dropped items only, three times a second. With nothing lying on the ground that check costs nothing at all.


Good to know

  • Dropping seeds by hand onto empty farmland plants them too. Some people like this; it is a side effect of how the pack works, not a hidden feature.
  • The crop is planted at age 0 and grows at the normal vanilla speed.
  • Villager farmers are unaffected; they already replant on their own.
  • Works on existing worlds. Safe to remove at any time — nothing is stored.

Compatibility

  • Minecraft 1.21.9 – 1.21.11, 26.1.x, 26.2 and 26.3 (pre-release) Each series has its own download; pick the one matching your version.
  • Vanilla, Fabric, Paper, Spigot, Purpur, Folia, NeoForge — it is a datapack
  • Server-side only. Players install nothing.
  • Conflicts only with other packs that change crop drops

Every crop was tested on a real server on all four version series.


If you downloaded this before

The earlier version did not work — nothing happened in game at all.

Its folder was called funktions and its files ended in .mcfunktion; Minecraft only reads function/ and .mcfunction. There were no function tags, so nothing would have started even with the right names. The tool check looked at an NBT path called Dimensions, which does not exist. And a right-click was never detected at all — the old code only checked whether a crop happened to be two blocks in front of you. Loading it on a test server gave Unknown function harvest:tick.

This release is a full rewrite, and it is tested. Sorry to anyone who downloaded the old one.


FAQ

Do I need a hoe? No. Any tool works, and so do bare hands.

Do I get the seed back? You get the whole drop minus the one item used to replant.

Does Fortune still work? Yes. The drop is vanilla; only one item is taken from it.

Does it work on farms other players built? Yes, anywhere in the world.

Can I still farm the normal way? Yes. Break, bone meal, villagers, redstone farms — all unchanged.