Skip to content

Reference

Invokes an action file.

Type ID: kaya:reference

Format

Field Type Default Description
value Identifier The ID of the action to invoke.

Example

{
    "type": "kaya:reference",
    "value": "example:entity/set_on_fire_for_5_secs"//(1)!
}
  1. The location of the file is data/example/kaya/action/entity/set_on_fire_for_5_secs.json with this as its contents:

    {
        "type": "kaya:set_entity_on_fire",
        "ticks": 200,
        "entity": "this"
    }
    

This example invokes the example:entity/set_on_fire_for_5_secs action.

History

Minecraft Mod Changelog
1.21.5 0.1.0 Added the type.