Active Self - apace100/origins-fabric GitHub Wiki

Power Type. Executes an entity action on the player when the player uses the active power keybind (default: G).

Type ID: origins:active_self

entity_action, Entity Action: The action to execute on the player.

cooldown, int: Interval of ticks this power needs to recharge before the action can be executed again.

hud_render, Hud Render: Determines how the cooldown of this power is visualized on the HUD.

key, Key, default = "primary": Which active key this power should respond to.

Example:

{
  "type": "origins:active_self",
  "entity_action": {
    "type": "origins:if_else",
    "condition": {
      "type": "origins:on_fire"
    },
    "if_action": {
      "type": "origins:extinguish"
    },
    "else_action": {
      "type": "origins:set_on_fire",
      "duration": 8
    }
  },
  "cooldown": 20,
  "hud_render": {
    "should_render": false
  }
}

This power allows players to press G in order to set themselves on fire for 8 seconds, or, if they are already burning, extinguish themselves.