Antilife Shell
An aura extends from you in a 10-foot Emanation for the duration. The aura prevents creatures other than Constructs and Undead from passing or reaching through it. An affected creature can cast spells or make attacks with Ranged or Reach weapons through the barrier.
If you move so that an affected creature is forced to pass through the barrier, the spell ends.
Antilife Shell 5e 2024 vs. 2014 edition differences
The 2024 version specifies "up to 1 hour" duration, indicating variable length, whereas the 2014 version states a fixed 1-hour duration. The 2024 version describes the barrier as an "aura" and "emanation," but the mechanics of creature passage and attack/spell casting remain the same.