Skip to content

Action As Nearest (Entity Action Type)

Zac edited this page Nov 11, 2026 · 1 revision

Entity Action Type


Executes an entity action with the context of the nearest entity.

Warning

This action type should not be used, prefer Provi's Origins's action on nearest.

originscontent:action_as_nearest

Fields

Field Type Default Description
action Entity Action The entity action to execute.

Examples

"entity_action": {
  "type": "originscontent:action_as_nearest",
  "action": {
    "type": "origins:heal",
    "amount": 6
  }
}

This example would restore 3 hearts of health to the nearest entity.

Clone this wiki locally