On Ground

The on ground condition checks if the entity is currently standing on the ground. We can also check which block they are standing on.

Argument
Description
Default Value

blocks

The list of blocks the entity can be standing on.

*Required

Using the wildcard ($), you can select many blocks at once. For example, $GLASS selects all glass blocks and panes. Be careful though, since $CAR will select call carpets, and CARVED_PUMPKIN and CARROT.

Mechanics:
  - "Potion{potion=LEVITATION} @World{} ?OnGround{}"

This example will levitate all entities who are standing on the ground in the world.

Last updated