Skip to content

Side

Executes an action when it's invoked on a specific logical side of the game.

Type ID: kaya:side

Format

Field Type Default Description
side Environment Determines when to execute the action when invoked on the specified logical side.
action Action The action to execute.

Environment

A string that determines when an action is invoked on which logical side.

Value Description
client The action was invoked on the logical client side.
server The action was invoked on the logical server side.

Example

{
    "type": "kaya:side",
    "side": "server",
    "action": {
        "type": "kaya:add_velocity",
        "method": "single",
        "space": "local",
        "entity": "this",
        "velocity": [
            0.0,
            1.0,
            1.5
        ]
    }
}

This example will only add velocity to the entity from the kaya:this_entity context parameter on the server side.

History

Minecraft Mod Changelog
1.21.5 0.1.0 Added the type.