Farm System
The Farm System is the core harvesting engine of Tycoon.
It controls crop behavior, XP gain, essence rewards, custom drops, evolution items and growth rendering.
The system is area-based, performance-safe and supports both client-side and server-side crop rendering.
farm:
trigger: WHEAT
area:
world: ""
min: [0, 0, 0]
max: [0, 0, 0]
Defines the main crop type used inside the farm area.
Defines the rectangular region where special farm logic applies.
If empty → system behaves globally.
If true, ageable crops must be fully grown before harvesting.
Available modes:
This controls how crop breaking and regrowth are handled.
SERVER Mode (Authoritative)
Default and safest option.
Blocks are physically modified on the server
Uses region scheduler for growth
Fully synchronized across all players
Ageable crops replant at age 0
Grow per stage with configurable tick delay
Double-height plants restore properly
Sugar cane restores correctly with height validation
Shared farming environments
CLIENT Mode (Visual-Only Masking)
Optimized personal rendering.
Real block is not removed
Player receives fake block change
Regrowth happens client-side only
Other players see original block state
Fully personal harvesting illusion
Registers fake harvest entries
Schedules client-only restoration
Does not modify world state
ticks-per-stage → random growth interval
double-height-restore → restore delay
single-restore → restore delay
keep-final-stage → keep visually mature
Supports:
Each growth stage delay is randomly selected in range.
straight-to-inventory
Directly inserts drops into player inventory.
drop-items-floor-if-full-inventory
If inventory full:
false → stop giving drops
Supports stacking and storage hooks.
Harvest Rule Structure
Minimum Tycoon Hoe level required.
Supports:
Custom Drop Items
Supports:
Full ItemFactory integration
Evolution Items
If player collects required amount → converts to evolution item.
Evolution can be placed inside:
XP & Essence Calculation Flow
Final gain includes:
Formula pipeline:
All boosts are additive before rounding.
Crop yield boosters support:
Configured under enchant settings.
Boss Integration
Each crop break automatically notifies:
Boss damage is directly tied to farm activity.
ConcurrentHashMap stacking buffers
Essence batching (500ms window)
RegionScheduler for growth
Double Height Handling
Supported:
Prevents bottom-half breaking exploits.