**Freecam Control** gives server owners a say over [Freecam](https://www.curseforge.com/minecraft/mc-mods/free-cam). Freecam is great for building, filming and checking your contraptions from the outside. It's less great when someone uses it to look through walls into another team's base. With this mod you keep the good parts and switch off the rest, where *you* choose.
> **Questions or bugs? Join our Discord: https://discord.gg/8gFHKMxRGj**
### What the server can control
- **Worlds:** turn freecam off in whole worlds (a PvP world, say) and on in others (a creative or hub world).
- **Zones:** draw boxes with a command where freecam is **allowed** or **denied**. A deny zone always wins, so you can lock down a vault or an event arena inside a world that otherwise allows it.
- **Claims (FTB Chunks):** the camera can't fly into chunks claimed by a team the player isn't in or allied with. While a player stands in someone else's claim, freecam turns off. Server-team claims (spawn, roads) don't count.
- **Distance:** keep the camera within a set number of blocks of the player (64 by default), with a list of worlds that have no limit.
- **Noclip:** decide whether the camera may fly through blocks. With noclip off, the camera bumps into walls like a player would, so it can't peek into caves and bases.
- **Staff:** operators (permission level 2 by default) and spectators ignore every rule.
### How it feels for players
- Turning freecam on where it isn't allowed shows a short message above the hotbar with the reason ("another team's claim", "not in this world"...).
- Walking into a no-freecam area while using it switches it off.
- Flying the camera somewhere it may not go stops it at the edge, without kicking you out of freecam.
- On servers **without** Freecam Control, and in singleplayer, Freecam works exactly as normal.
### Commands
| Command | Who | What it does |
| --- | --- | --- |
| `/freecamcontrol check` | everyone | Says whether freecam is allowed where you stand, and why |
| `/freecamcontrol zone add <name> allow\|deny <from> <to>` | operators | Adds a zone between two corners |
| `/freecamcontrol zone add <name> allow\|deny radius <blocks>` | operators | Adds a zone around you |
| `/freecamcontrol zone remove <name>` | operators | Removes a zone |
| `/freecamcontrol zone list` | operators | Lists the zones |
| `/freecamcontrol reload` | operators | Reloads the zones file and resends the rules |
`/fcc` is a short alias.
### Settings
`freecamcontrol-server.toml`: `defaultAllowed`, `deniedWorlds`, `allowedWorlds`, `denyInOtherClaims`, `maxDistance`, `unlimitedWorlds`, `noclip`, `noclipWorlds`, `bypassPermission` and the message players see. Zones are saved in `config/freecamcontrol-zones.json`.
### Installing
- **Server:** add the jar to `mods/`. FTB Chunks is optional; the claims rule only works when it's installed.
- **Players:** add the same jar next to Freecam (1.2.4 or newer). Modpack makers: ship it in your pack.
- Players without it can still join. To make sure nobody uses Freecam without it, pair it with **Create Anti-Cheat**: its client check can require Freecam Control whenever Freecam is installed (`modRequires = ["freecam>freecamcontrol"]`, on by default).
### Good to know
Freecam runs on the player's own computer, so these rules are enforced by the player's copy of Freecam Control. A hacked client could ignore them, like any client-side limit. That's why the claims rule and Create Anti-Cheat's mod check are there as backup.
Works with NeoForge 1.21.1 and Freecam 1.2.4+ (tested with 1.3.0).