promotional bannermobile promotional banner
premium banner
Automatic Crop Harvest and Containor aware storage

Description

# CropMatic v1.0.0

Auto-harvest crops with a composter + barrel combo!

## Setup

1. Place a **barrel** in the ground (1 block below farm level)
2. Place a **composter** directly on top of the barrel (at farm level, same Y as your farmland)
3. Plant wheat around the composter within the scan radius
4. The system auto-detects the combo and activates the harvester

```
[Farmland][Wheat][Wheat][Composter][Wheat][Wheat][Farmland]
                        [  Barrel ]  (1 block below)
```

## How It Works

- When wheat reaches full maturity (age 7), the harvester automatically breaks and replants all mature crops in the radius
- Harvested items (wheat + seeds) are inserted **directly into the barrel** using custom loot tables
- The barrel will stop accepting items when full (27 slots)

## Yield Multiplier

Each successful harvest cycle increases the yield multiplier (up to 4x):

| Multiplier | Effect |
|------------|--------|
| 1x | 1 wheat + 1 seed per crop |
| 2x | 2 wheat + 1 seed per crop |
| 3x | 3 wheat + 2 seeds per crop |
| 4x | 4 wheat + 3 seeds per crop |

## Configuration

Open the settings menu:
- `/trigger cm_trigger set 1` (works for all players)
- `/function cropmatic:config/menu` (op only)

### Settings

- **Enabled** — Master on/off toggle
- **Messages** — Toggle chat notifications
- **Particles** — Toggle harvest particle effects
- **Harvest Interval** — Ticks between harvest cycles (default: 200 = 10 seconds)
  - Presets: Fast (100 ticks / 5s), Slow (600 ticks / 30s)
  - Custom: +/- 20 ticks per click
- **Scan Radius** — Blocks around composter to scan (default: 4 = 9x9 area, max: 7 = 15x15)

## Supported Crops

- **Wheat** (age 7) → wheat + wheat seeds
- **Carrots** (age 7) → carrots
- **Potatoes** (age 7) → potatoes
- **Beetroots** (age 3) → beetroot + beetroot seeds
- **Nether Wart** (age 3) → nether wart

## Debug Mode

To enable debug messages (shows harvest timer firing, crop counts, etc.):
```
/scoreboard players set #enabled cm_debug 1
```
To disable:
```
/scoreboard players set #enabled cm_debug 0
```

permission for usage
You do have permission to include it in modpacks with credit
You cannot redistribute the code

## Credits

check out patreon, made by pnksounds aka Axl using an LLM, have fun