There’s no proper API or modding documentation as of yet, so it’s just mostly looking through the source to find em’ 🙂
Spawn monster can be used like:
spawnMonster("", player.x+1, player.y);
spawnMonster("giantrat", player.x+1, player.y);
spawnMonster("pirateghost", player.x+1, player.y, true);
The last parameter “true” forces the spawn, even if the monster shouldn’t normally be spawned in that location.