/ Effect

This command is used to add effects to players (@a @p @s) or entities (@e)

Command logic: /effect [entity] [effect] [time] [level]


Effect in a entity

To start, let's add levitation to a horse for 10 seconds.

/effect @e[type=horse] levitation 10 1
GIF

Effect in a player

Let's add level 3 of speed to a player for 15 seconds.

/effect @p speed 15 3
GIF

Effect list

  absorption
  bad_omen
  blindness
  conduit_power
  dolphins_grace
  fire_resistance
  haste
  health_boost
  hero_of_the_village
  hunger
  instant_damage
  instant_health
  invisibility
  jump_boost
  levitation
  mining_fatigue
  nausea
  night_vision
  poison
  regeneration
  resistance
  saturation
  slow_falling
  slowness
  speed
  strength
  water_breathing
  weakness
  wither