๐ CustomCrops
CustomCrops ํธํ์ฑ ์๋ด.
Actionsโ
Set Seasonโ
Changes the season of a designated world to a specific one.
Syntax: customCropsSetSeason <world> <season>
| Parameter | Syntax | Default Value | Explanation |
|---|---|---|---|
| world | world | none | The target world where the season will be changed |
| season | Season | none | The new season to be applied to the designated world. |
actions:
setSeason: customCropsSetSeason SPRING world
Conditionsโ
Check Seasonโ
Verifies whether the current season of a designated world matches a specific season.
Syntax: customCropsSeason <season> [world]
| Parameter | Syntax | Default Value | Explanation |
|---|---|---|---|
| season | Season | none | The specific season to be compared against the world's state. |
| world | world:name | player location | The world to check for the current season. |
conditions:
isSpring: customCropsSeason SPRING
weatherInPlayerWorld: customCropsSeason SUMMER world:%ph.player_home_world%
overworldIsWinter: customCropsSeason WINTER world:overworld
Objectivesโ
Cropโ
Triggers when a player harvests or plants CustomCrops.
Syntax:
customCropsCropPlant <crop_id> [amount]customCropsCropHarvest <crop_stage_id> [amount]
| Parameter | Syntax | Default Value | Explanation |
|---|---|---|---|
| crop_id | id | none | The unique identifier of the crop/seed. |
| crop_stage_id | id | none | The ID of the crop at a specific growth stage. |
| amount | amount:Int | 1 | The number of crops to harvest or plant. |
objectives:
plantTomato: customCropsCropPlant tomato
harvestTomato: customCropsCropHarvest customcrops:tomato_stage_* amount:5
Harvest objectives support wildcards (e.g., tomato_stage_*), allowing you to track multiple growth stages at once.
Potโ
Triggers when a player places or breaks CustomCrops pots.
Syntax:
customCropsPotPlace <id> [amount]customCropsPotBreak <id> [amount] [isCancelled]
objectives:
placePot: customCropsPotPlace default amount:5
breakPot: customCropsPotBreak default_* amount:5
Harvest objectives support wildcards (e.g., default_*), allowing you to track multiple growth stages at once.
Watering Canโ
Triggers when a player interacts with watering cans, pots, or sprinklers.
Syntax:
customCropsCanFill <watering_can_id> [amount]customCropsCanPot <watering_can_id> [pot_id] [amount]customCropsCanSprinkler <watering_can_id> [sprinkler_id] [amount]
| Parameter | Syntax | Default Value | Explanation |
|---|---|---|---|
| item_id | id | none | The unique identifier of the watering can item. |
| pot_id | pots:id | all | The unique identifier of the pot to be watered. |
| sprinkler_id | sprinklers:id | all | The unique identifier of the sprinkler to interact with. |
| amount | amount:Int | 1 | The number of times to perform the action. |
objectives:
fillCan: customCropsCanFill watering_can_1 amount:3
canPot: customCropsCanPot watering_can_2 pots:default amount:5
canSprinkler: customCropsCanSprinkler watering_can_* sprinklers:sprinkler_1
Harvest objectives support wildcards (e.g., watering_can_*), allowing you to track multiple growth stages at once.
Sprinklerโ
Triggers when a player places or breaks CustomCrops sprinklers.
Syntax:
customCropsSprinklerPlace <sprinkler_id> [amount]customCropsBreakSprinkler <sprinkler_id> [amount]
| Parameter | Syntax | Default Value | Explanation |
|---|---|---|---|
| sprinkler_id | id | none | The unique identifier of the sprinkler. |
| amount | amount:Int | 1 | The number of sprinklers to place or break. |
objectives:
placeSprinklers: customCropsSprinklerPlace sprinkler_1
breakSprinklers: customCropsSprinklerBreak sprinkler_* amount:2
Harvest objectives support wildcards (e.g., sprinkler_*), allowing you to track multiple growth stages at once.
Scarecrowโ
Triggers when a player places or breaks CustomCrops scarecrows.
Syntax:
customCropsScarecrowPlace <scarecrow_id> [amount]customCropsScarecrowBreak <scarecrow_id> [amount]
| Parameter | Syntax | Default Value | Explanation |
|---|---|---|---|
| scarecrow_id | id | none | The unique identifier of the scarecrow. |
| amount | amount:Int | 1 | The number of scarecrows to place or break. |
objectives:
placeScarecrow: customCropsScarecrowPlace scarecrow amount:3
breakScarecrow: customCropsScarecrowBreak scarecrow amount:1
Scarecrow ID Check
The <scarecrow_id> must match the ID defined in your server's configuration file. You can find these IDs in the following path:
yourServer/plugins/CustomCrops/config.yml
Specifically, look for the mechanics.scarecrow.id section to ensure you are using the correct identifier.