Status Effect Instance
An Object used to define a status effect with duration, amplifier, etc.
Note
To make the Status Effect Instance infinite, you can set the value of duration
to -1
.
Fields
Field | Type | Default | Description |
---|---|---|---|
effect |
Identifier | The identifier of the status effect. | |
duration |
Integer | 100 |
Determines the duration of the status effect (in ticks). |
amplifier |
Integer | 0 |
Determines the strength of the status effect (0 being level 1). |
is_ambient |
Boolean | false |
Determines whether the particle effects of the status effect is less noticeable. |
show_particles |
Boolean | true |
Determines whether the status effect should display particle effects on the entity. |
show_icon |
Boolean | true |
Determines whether the status effect would display an icon on the HUD. |
Examples
"effect": {
"effect": "minecraft:slowness",
"amplifier": 1,
"duration": -1
}
A Slowness II status with an infinite (∞) duration.
"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