Skip to content

Conditional: Entity Block Status

ricochet1k edited this page Jul 1, 2012 · 7 revisions

Syntax: {entity}.is{status}.{block materials}

Description: Checks blocks around the entity.

The {status} in the syntax above may be replaced with any of the following:

  • On

    Returns true if the specified entity is standing on a block of the specified type(s).

    Damage: #Stop people hitting others on sand in Partyland. Notify them of their idiocy.
        - 'if event.world.Partyland and target.isonblock.SAND and event_value.greaterthan.0': "message.attacker.NO HITTING ON THE BEACH"
  • Over

    Returns true if the entity is some distance over any block of the specified material(s) without obstruction (as defined by a filter).

  • Under

    Returns true if the entity is any distance under any block of the specified material(s) without obstruction (as defined by a filter).

The Over and Under statuses use a filter to approach cases where a human thinks a case should return true.

Clone this wiki locally