-
Notifications
You must be signed in to change notification settings - Fork 9
AStages Crop Restriction
Crop Restrictions controls the ability to grow of specific crops based on progression stages. This feature enables tailored farming mechanics, adding depth to resource management and gameplay progression.
| Method | Description | Parameters | Returns |
|---|---|---|---|
AStages.addRestrictionForCrop(id, stage, cropBlock) |
Create and add generic crop restriction. |
id: arbitrary string used as identifier.stage: progression stage.cropBlock: block to be restricted. |
ACropRestriction |
AStages.addRestrictionForCrop(id, stage, cropBlock, compareCondition, age) |
Create and add more concisely crop restriction. |
id: arbitrary string used as identifier.stage: progression stage.cropBlock: block to be restricted.compareCondition: condition to be applied for age checking.age: age to be checked. |
ACropRestriction |
Tip
To define in a more precise way some restriction, you can use ACompareCondition enum provided by AStages to lock, for instance, the wheat only if its growth level is under 4. ACompareCondition could be: "equal", "less", "less_equal", "great", "great_equal".
// Server Script Folder -> file.js (arbitrary file name).
AStages.addRestrictionForCrop("astages/crop1", "stage_crop", "minecraft:wheat")
AStages.addRestrictionForCrop("astages/crop2", "stage_crop", "minecraft:wheat", "less", 4)Documentation:
-
Restrictions
- Crop
- Dimension
- Effect
- Enchant
- Item (Old)
- Loot
- Mob
- Ore
- Pet
- Recipe
- Region
- Screen
- Structure -
Addons
- Curios API
- Pufferfish Skill's -
Simple Restrictions (via commands)
Brand new and intuitive way to add restriction! -
Developers
- Plugin
- Restrictions
- Simple Restrictions
- Stage System
- Utils -
Q&A
A place where questions are on the agenda! -
Changelogs
Changelogs since 0.6.0 version! -
What's Happened? (FLOP!)
New code formatting is coming!