Automated Crop Field
Keep an entire 9 × 9 farm plot tilled and planted automatically from a nearby supply chest holding an Iron Hoe and Wheat Seeds. The worn hoe returns to the chest after every use, and pacing limits the scan to 4 tills + 4 plantings at a time so it stays well within Tier 2 step and transfer budgets.

World setup
Section titled “World setup”- Build a 9 × 9 dirt plot with a hydrated center water block (or water along the edge).
- Craft the Use ability onto a World Sensor (World Sensor + Lever on a Crafting Table).
- Place a Tier 2 Interface facing sideways across the field at soil height (centered along one edge) and name it
field. - Install your World Sensor (Use) in
field, set the box to width 9, height 2, depth 9, and click Show area.y = 0covers the soil layer (minecraft:dirt/minecraft:farmland).y = 1covers the crop layer right above the soil.
- Place a Chest holding an Iron Hoe and Wheat Seeds, attach a Tier 1 Interface with an Item Expansion, and name it
barn. - Bind both Interfaces to a Tier 2 PLC.
Script
Section titled “Script”S = point("field/world")BARN = point("barn/item")
def scan(): # Till up to 4 open dirt blocks per scan tilled = 0 for x, y, z in S.find("minecraft:dirt", 162): if tilled == 4: break if y == 0 and S.matches(x, 1, z, "#minecraft:air"): S.up.use(x, y, z, src=BARN, key="minecraft:iron_hoe") tilled += 1
# Plant up to 4 empty farmland blocks per scan planted = 0 for x, y, z in S.find("minecraft:farmland", 81): if planted == 4: break if y == 0 and S.matches(x, 1, z, "#minecraft:air"): S.up.use(x, y, z, src=BARN, key="minecraft:wheat_seeds") planted += 1Why this works
Section titled “Why this works”- Planting seeds and tilling dirt require clicking the top face of the block—using
S.up.use(...)targets the top face while keeping(x, y, z)in normal box coordinates. - When
use()takes the Iron Hoe fromBARN, it applies tool durability and returns the worn hoe right back toBARNautomatically after clicking. - Capping each scan to
4tills +4plants = at most8item takes fromBARN, which stays comfortably inside a Tier 1 Interface’s 16-item take allowance and avoids step budget spikes on a large 9×2×9 box.
Ways to tweak it
Section titled “Ways to tweak it”- Plant different crops or saplings: Replace
"minecraft:wheat_seeds"with"minecraft:carrot","minecraft:potato","minecraft:beetroot_seeds", or"minecraft:oak_sapling". - Bone-meal a single spot: Add a
S.up.use(x, 1, z, src=BARN, key="minecraft:bone_meal")call to speed up growth on a specific crop or sapling tile. - Keep in mind:
S.block()andS.matches()read block IDs and tags, not block state properties like crop growth age—so pair this planter with a modded harvester or a water-flush redstone harvest cycle when you want automatic harvesting too.
Not an official Minecraft website. Not approved by or associated with Mojang or Microsoft.