Configuration
Pretend You Have Friends has a small server settings file for the rules everyone shares. Everything personal (AI connection, keys, memories, voice) is set by each player on their own computer and never stored on the server.
Server settings
Section titled “Server settings”The server settings file is pyhf-server.toml, in each world’s serverconfig folder (<world>/serverconfig/pyhf-server.toml). In singleplayer it is in your own save. It holds no secrets.
The defaults:
rosterCap = 3respawnDelaySeconds = 10planTimeoutSeconds = 90participantMessagesPerMinute = 6| Key | Default | Allowed | What it does |
|---|---|---|---|
rosterCap |
3 |
0 to 16 | How many friends one player may have at once. Checked when a friend is made or brought from another world. |
respawnDelaySeconds |
10 |
0 to 600 | Seconds between a friend’s death and its return at home. |
planTimeoutSeconds |
90 |
10 to 600 | How long the server waits for the owner’s game to send a plan before it drops the request. |
participantMessagesPerMinute |
6 |
0 to 60 | How many messages each other player (trusted or not) may send to someone else’s friend per minute. Simple orders don’t count. 0 stops these messages entirely. |
Each player’s settings
Section titled “Each player’s settings”These live in the pyhf folder of each player’s game folder and stay on that computer:
| File | What it holds |
|---|---|
pyhf/client.json |
The chosen AI connection, its model and the custom address. No secrets. |
pyhf/secrets.json |
API keys saved on the AI connection screen. Keep it private; never share it. |
pyhf/profiles/ |
Each friend’s private profile: notes, memories, chat history and summaries, per server. |
pyhf/voice.json |
Voice settings, including the microphone gain. |
pyhf/speech/ |
The offline speech engine, unpacked from the mod the first time it is needed. |
The AI connection and Voice screens in the friends menu change these for you. See Choosing a connection and Talking and voice.
Key bindings
Section titled “Key bindings”Found under Pretend You Have Friends in Controls:
| Binding | Default |
|---|---|
| Open friends menu | O |
| Push to talk to friends | V |
| Mute or unmute hands-free listening | Not set |
Commands
Section titled “Commands”Every command starts with /pyhf and works for any player on their own friends, or on friends that trust them where noted. No operator level is needed.
| Command | Who | What it does |
|---|---|---|
create <name> ["<skin>"] [stability] |
Anyone | Make a friend. See Friends. |
follow, stay, come, stop, status, dismiss <friend> |
Owner, trusted | Simple orders. |
set_home <friend> |
Owner | Home here, or the bed you look at. |
yes, no <friend> |
Owner, trusted | Answer a question from the friend. |
goto <friend> <x y z> |
Owner, trusted | Walk to a spot. |
mine <friend> <x y z> |
Owner, trusted | Mine one block. |
attack <friend> <player> |
Owner, trusted | Fight a player. See Fighting. |
trust, untrust <friend> <player> |
Owner | See Trust. |
remove <friend> confirm |
Owner | Remove a friend for good. See Friends. |
list |
Anyone | Your friends and the friends you may command. |