Status Effect Instance
An Object used to define a status effect with duration, amplifier, etc.
Fields:
Field | Type | Default | Description |
---|---|---|---|
effect |
Identifier | ID of the status effect. | |
duration |
Integer | 100 | Duration of the status effect in ticks. |
amplifier |
Integer | 0 | Amplifier of the status effect. |
is_ambient |
Boolean | false | Whether the effect counts as an ambient effect. |
show_particles |
Boolean | true | Whether the status effect will spawn particles on the player. |
show_icon |
Boolean | true | Whether the status effect will show an icon on the HUD. |
Examples:
"effect": {
"effect": "minecraft:slowness",
"amplifier": 1,
"duration": 80
}
A Slowness II status which lasts for 4 seconds.
"effect": {
"effect": "minecraft:levitation",
"duration": 200,
"is_ambient": true,
"show_particles": true,
"show_icon": false
}
An ambient and mostly hidden status effect of Levitation I which lasts for 10 seconds.
"effects": [
{
"effect": "minecraft:slow_falling",
"duration": 400,
"is_ambient": false,
"show_particles": false,
"show_icon": true
},
{
"effect": "minecraft:slowness",
"duration": 400,
"is_ambient": false,
"show_particles": false,
"show_icon": true
}
]
An Array of status effect instances with the Slowness I and Slow Falling I status effects that lasts for 20 seconds