Mechanics
Other WikisDonate
  • Home
  • Examples
  • Placeholders
  • ⚙️Mechanics
    • Action Bar
    • Boss Bar
    • Command
    • Custom Sound
    • Damage
    • Drop Item
    • Fake Item
    • Firework
    • Flinch
    • Ignite
    • Leap
    • Lightning
    • Message
    • Particle
    • Potion
    • Push
    • Sculk Bloom
    • Sculk Shriek
    • Sound
    • Title
    • Warden Disturbance
  • 🎯Targeters
    • ServerPlayers
    • Shapes
      • Box
      • Scatter
    • Source
    • Target
    • World
  • ❔Conditions
    • Biome
    • Custom Biome
    • Entity Type
    • Gliding
    • Has Permission
    • InCone
    • Light Level
    • Material Category
    • On Ground
    • Range
    • Riding
    • Sneaking
    • Sprinting
  • 🔌Integrations
    • 🌊GeyserMC
    • 🌎MechanicsEverywhere
    • 👽MythicMobs
    • 🔫WeaponMechanics
Powered by GitBook
On this page
  1. Conditions

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.

Mechanics:
  - "Potion{potion=LEVITATION} @World{} ?OnGround{blocks=[$GLASS, ICE]}"

This example levitates all entities in the world that are standing on glass or ice.

Last updated 1 year ago

❔