Experience Drop
The arc:exp_drop condition type checks if the amount of experience dropped is within a specified range.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
min | int | ✅Required | - | The minimum amount of experience dropped. |
max | int | ✅Required | - | The maximum amount of experience dropped. |
Example
The following example will double the experience dropped from killing a mob if the original drop was between 3 and 5 points.
data/my_datapack/arc/double_xp_for_mid_mobs.json
{
"holder": {
"type": "arc:player",
"id": "arc:player"
},
"type": "arc:on_kill_entity",
"conditions": [
{
"type": "arc:exp_drop",
"min": 3,
"max": 5
}
],
"rewards": [
{
"type": "arc:exp_multiplier",
"multiplier": 2
}
]
}
Compatible Action Types
⛏️ On Break Block
The arc:onbreakblock action type is triggered when a player breaks a block.
💀 On Kill Entity
The arc:onkillentity action type is triggered when a player kills an entity.