Transformice Api

| Command | Example | Purpose | |---------|---------|---------| | a[name] | aAlice | Authenticate as guest | | m[msg] | mHello! | Send chat message | | j[roomName] | jRoom1 | Join a specific room | | c | c | Create a new default room | | g | g | Get ready (start game) | | R | R | Respawn as mouse | | B | B | Become shaman (if eligible) | | e[itemId] | e3 | Place shaman item (3 = wooden plank) |

async function getPlayerStats(username) try const player = await api.player.get(username); console.log(`Player: $player.name`); console.log(`Cheese Gathered: $player.cheese`); console.log(`Firsts: $player.firsts`); console.log(`Tribe: $player.tribeName`); catch (error) console.error("Mouse not found! Did they get banned?"); transformice api

It’s important to distinguish between the two ways you can "code" for Transformice: Unlike external bots, these modules run natively on

The , primarily referred to as the Module API , is a Lua-based scripting system that allows players to create custom minigames (modules) directly within the game environment. Unlike external bots, these modules run natively on the game's servers, enabling developers to modify game physics, handle player interactions, and create unique objectives. Core Functionality The Transformice API (often called the Web API)

The Transformice API is more than a technical specification—it is the reason a 14-year-old mouse game still boasts daily peaks of thousands of players. By lowering the barrier to entry (simple Lua scripting) while providing enough power (HTTP requests, custom entities), the API turned players into creators.

The Transformice API (often called the Web API) is a set of interfaces provided by Atelier 801 that allows developers to access game-specific data. Instead of manual scraping, the API provides a structured way to retrieve: