Raycast

Entity Action

Fires a projectile from the entity.

Type ID: ope:raycast

Fields

Field Type Default Description
distance Integer Player Reach The distance for the raycast to travel.
block_action Block Actions optional Action to fire when a valid block is hit.
block_condition Block Conditions optional Condition to compare to the block hit.
target_action Entity Actions optional Action to fire when a valid entity is hit.
target_condition Entity Conditions optional Condition to compare to the entity hit.
self_action Entity Actions optional Action to fire on yourself when the raycast hits anything.

Example

"entity_action": {
    "type": "ope:raycast",
    "block_action": {
        "type": "ope:bonemeal"
    },
    "target_action": {
        "type": "origins:set_on_fire",
         "duration": 8
    }
}