Description
Checks if the player is looking at either a block or an entity.
Only usable by a player.
Attributes
Attribute | Aliases | Description | Default |
---|---|---|---|
type | t, block, b, entity, e | The object to check against |
Examples
Conditions:
- lookingat{b=DIRT} true
TargetConditions:
- isPlayer orElseCast fallbackmechanic
- lookingat{e=COW} true