Crop Age
The arc:crop_age condition type checks if a crop is at a specific age.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
age | int | ✅Required | - | The age of the crop. |
Example
The following example gives the player a bone meal when they harvest a wheat crop that is exactly at age 6 (one stage before fully grown).
{
"holder": {
"type": "arc:player",
"id": "arc:player"
},
"type": "arc:on_harvest_crop",
"conditions": [
{
"type": "arc:block",
"block": "minecraft:wheat"
},
{
"type": "arc:crop_age",
"age": 6
}
],
"rewards": [
{
"type": "arc:item",
"item": { "id": "minecraft:bone_meal" }
}
]
}
Compatible Action Types
⛏️ On Break Block
The arc:onbreakblock action type is triggered when a player breaks a block.
🧪 On Brew Potion
The arc:onbrewpotion action type is triggered when a player brews a potion.
⚡ On Get Destroy Speed
The arc:ongetdestroy_speed action type is triggered when a player is determining how quickly they can break a block. This action type allows you to modify the destroy speed based on various conditions.
🌾 On Harvest Crop
The arc:onharvestcrop action type is triggered when a player harvests a crop.
🖱️ On Interact Block
The arc:oninteractblock action type is triggered when a player interacts with a block, such as right-clicking it.
🧱 On Place Block
The arc:onplaceblock action type is triggered when a player places a block.
🌱 On Plant Crop
The arc:onplantcrop action type is triggered when a player plants a crop.
🔥 On Smelt Item
The arc:onsmeltitem action type is triggered when a player takes an item out of a furnace, smoker, or blast furnace. Just like experience orbs in vanilla Minecraft, this action also counts the items that are taken out with a hopper. As long as the player takes out one of the smelted items, the action will be triggered. The action is called for every item smelted individually, regardless of how many are taken out at once.
🪵 On Strip Log
The arc:onstriplog action type is triggered when a player strips a log or wood block using an axe.