Skip to content

Offset Action

Entity Action

Causes entity actions to become offset, origin point being the player.

Type ID: lunali:offset_action

Field Type Default Description
x Float 0.0 How far it should be offset from x.
y Float 0.0 How far it should be offset from y.
z Float 0.0 How far it should be offset from z.
offset_action Entity Action The action to offset.

Examples

"offset": {
   "type": "origins:active_self",
    "key": "key.origins.primary_active",
    "cooldown": 0,
    "entity_action": {
      "type": "lunali:offset_action",
      "x": 0,
      "y": 5,
      "z": 0,
      "offset_action": {
        "type": "origins:fire_projectile",
        "count": 1,
        "entity_type": "minecraft:arrow"
      }
    }
  }

This example will cause an entity to fire an arrow 5 blocks above them.