runFunction

fun runFunction(id: Identifier, source: CommandSourceStack = requireServer().createCommandSourceStack())

Run a function (data pack function) with an optional command source.

Parameters

id

function identifier

source

command source to use (defaults to server)