-
Notifications
You must be signed in to change notification settings - Fork 0
API and Addon Integration
Agrarian Reform is designed for deep integration with DasikLibrary and open extension by third-party mod developers and datapack creators.
Agrarian Reform relies on DasikLibrary (>=1.8.3) for core infrastructure:
| DasikLibrary API Module | Used In Agrarian Reform | Purpose |
|---|---|---|
DynamicGameRuleManager |
AgrarianGameRules.java, AgrarianCropRules.java
|
Registers namespaced dynamic GameRules cleanly with GSON sync and live world storage. |
ConfigHelper |
AgrarianConfig.java |
Loads and saves versioned JSON global configuration templates with schema migrations. |
Third-party mods can programmatically query Agrarian Reform's crop cache and growth math:
// Check if a block is recognized as an agricultural crop
boolean isCrop = AgrarianCropRules.isCropBlock(myBlock);
// Query effective growth speed multiplier (respects frozen -1, positive override, global fallback)
int effectiveMultiplier = AgrarianCropRules.getEffectiveGrowthMultiplier(level, myBlock);
// Check if a block state is at its maximum harvestable age
boolean maxAge = AgrarianCropRules.isMaxAge(blockState);Add custom armor items or boots to protect farmland from trampling:
data/agrarian_reform/tags/item/soft_step_boots.json:
{
"replace": false,
"values": [
"mymod:padded_leather_boots",
"mymod:farmer_shoes"
]
}Explicitly register custom plants with The Continuum offline growth simulator:
data/agrarian_reform/tags/block/continuum_plants.json:
{
"replace": false,
"values": [
"mymod:custom_corn_crop",
"mymod:custom_tomato_bush"
]
}See also: Plant Registry & Universal Crops and Architecture & Mixins.
๐ Repository Source Disclaimer: The documentation in this Wiki reflects the current source code state in the repository, which may include recent unreleased commits or developmental features ahead of public release builds on CurseForge and Modrinth.
Agrarian Reform: The Living Earth | Instant Gratification & Vanilla Outsider Collections
Developed with โค๏ธ by Dasik (Rifaditya) | Licensed under GPLv3
๐พ Agrarian Reform Wiki
- The Continuum (Offline Growth)
- Plant Registry & Universal Crops
- Hydro-Dynamics & Irrigation
- Soil Resilience & Trample Logic
- Right-Click Harvest & Replant
- Polyculture & Biodiversity
- Seed Sowing & Grass Cultivation
- Universal Bone Meal
- Global Growth Multiplier
- Performance & Queue Throttling
- GameRules
- Commands
- Configuration
- Aesthetics & Ambient Feedback
- Advancements