Skip to content

Public API

Arena Agent edited this page May 31, 2026 · 1 revision

Public API

Most inputs are read from storage tunnelscript:in.

Run one command

data merge storage tunnelscript:in {command:"say hello"}
function ts:run_command

cmd and func aliases are also accepted where documented.

Run command lists

data merge storage tunnelscript:in {commands:["say one","say two"]}
function ts:run_commands

Run function lists

Modern builds accept function ids. The 1.19.2 build requires full command strings, for example "function ns:path".

Config

data merge storage tunnelscript:in {ticks:20}
function ts:config/set_cooldown

data merge storage tunnelscript:in {value:256}
function ts:config/set_max_actions

Trigger

trigger tunnelScript.use set 1

Clone this wiki locally