Skip to content

Action JSON Format

This is the format of a JSON file describing an action. These can be used in place of creating an action inside of a power.

Action JSON files need to be placed inside the data/<namespace>/{Action Type} folder of your datapack. Where the {Action Type} is either entity, bientity, block or item.

Examples

{
  "type": "origins:add_velocity",
  "y": 2
}

This example is an action that launches the player into the air.

{
  "type": "apoli:active_self",
  "entity_action": {
    "type": "ra_additions:execute_action",
    "entity_action": "ra_additions:action_example_1"
  },
  "cooldown": 20,
  "hud_render": {
    "should_render": false
  },
  "key": {
    "key": "key.use"
  }
}

This is an example of one way that you can use an entity action from a file