in safe mode (which is enabled by default), the game API is partially available to you
the API methods that are available to you are described here


sm.vec3 - full


sm.util - full


sm.quat - full


sm.noise - full


sm.color - full


sm.uuid - full


sm.json -

{
    writeJsonString = sm.json.writeJsonString,
    parseJsonString = sm.json.parseJsonString,
    open = sm.json.open --only if the "safe (with sm.json.open)" mode is enabled
}


sm.game -

{
    getCurrentTick = sm.game.getCurrentTick,
    getServerTick = sm.game.getServerTick
}


sm.projectile -

{
    solveBallisticArc = sm.projectile.solveBallisticArc
}