Skip to content

Packet

Meta Action Type

Executes an action on a specified side, opposite to the one which the action is ran on.

Type ID: apugli:packet

Fields

Field Type Default Description
side String Determines the side at which the packet will be sent to. Accepts either "client" or "server"
action Bi-entity or Entity Action The action to run inside the packet. The type of this action must match where the packet action is being ran.

Examples

"entity_action": {
    "type": "toomanyorigins:packet",
    "side": "SERVER",
    "action": {
        "type": "origins:exhaust",
        "amount": 0.1
    }
}
If ran on the client, this example action will exhaust the player for a value of 0.1 on the server.