Skip to content

Status Effect Entry

fzzyhmstrs edited this page Nov 20, 2024 · 2 revisions

Grants the player a status effect.

JSON Definition

Key Type Value Example Note
"type" String
"lootables:status"
"status" Object

See Status Definition

Required

Lootable Number defines the amount the player is healed.

Status Definition

Key Type Value Example Note
"id" String
"minecraft:strength"
Registered ID of the status effect.
"amplifier" Integer
3
Optional, default 0

The amplification of the status. Amplification is (level - 1). Value must be between 0-255.
"duration" Integer
200
Optional, default 0

The duration of the status in ticks. 20 ticks is one second. Value should be greater than 0.
"ambient" Boolean
true
Optional, default false

Whether Minecraft considers the effect "ambient", like a beacon effect.
"show_particles" Boolean
false
Optional, default true

Whether potion particles will appear while the effect is active.
"show_icon" Boolean
false
Optional, defaults to the value of show_particles

Whether a status effect icon appears in the players HUD.
"hidden_effect" Boolean

Status Definition

Optional, no default

Recursive hidden effect that is applied when this one runs out. This is itself a status effect, just like built by this definition, nested inside its parent.

This hidden effect can have its own hidden effect, and so on. Probably don't go too crazy with it though.

Examples

15 minutes of water breathing! Heck yeah.

{
  "type": "lootables:status",
  "status": {
    "id": "minecraft:water_breathing",
    "duration": 18000,
    "ambient": true
  }
}

Clone this wiki locally