> For the complete documentation index, see [llms.txt](https://guide.chillzone.cc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://guide.chillzone.cc/getting-started/technical/optimisations.md). Agents can also search and read this documentation through its [MCP server](https://guide.chillzone.cc/~gitbook/mcp).

# Optimisations

Modern Minecraft Java server jars are, unfortunately, very poorly optimised. To maintain our stable experience with our peak player counts, we've had to make some compromises. We aim to only make optimisations that have little impact on vanilla gameplay, however it's a constant task. We're always open to making changes to suit your farms or other builds.

The server runs Folia (specifically, a fork called [Canvas](https://canvasmc.io/)). This is yet another paper fork, however it's a special one as it splits the world into individually ticked regions.

The server configuration files are also public: <https://github.com/mythiccal/configs>\ <sub>*I do my best to keep these up to date, but they can inevitably fall behind. If you have any questions, just ask.*</sub>

## Changes

**View Distance** = **10 Chunks** (vanilla)

**Simulation Distance** = **8 Chunks** *(reduced to 6 chunks with >25 players).*

{% code title="All mob spawn limits. "ambient" is just bats." %}

```
spawn-limits:
  monsters: 40
  animals: 10
  water-animals: 3
  water-ambient: 2
  water-underground-creature: 3
  axolotls: 3
  ambient: 0
```

{% endcode %}

{% code title="Spawn tickrates are kept the same as vanilla where it matters most (i.e. mob farms, squid farms, etc)." %}

```
ticks-per:
  animal-spawns: 400
  monster-spawns: 1
  water-spawns: 2
  water-ambient-spawns: 200
  water-underground-creature-spawns: 2
  axolotl-spawns: 100
  ambient-spawns: 400
  autosave: 6000
```

{% endcode %}

## Redstone

We haven't modified hopper behaviour, clocks will all still work.

We Utilise [Alternate Current](https://github.com/SpaceWalkerRS/alternate-current/blob/main/README.md) for Redstone, it will only affect the extremely technical aspect of the game. Notably, this does break some tnt duper designs, typically the ones without slime/coral. For an example, see our [Farms](https://guide.chillzone.cc/getting-started/technical/farms.md) page.

### Otherside

We use the "Otherside" plugin on our server, meaning a lot of farms using multiple dimensions, that previously wouldn't have worked, are now functional with only one account needed!

{% embed url="<https://hangar.papermc.io/Kyle/Otherside>" %}
This does not apply to all farms, some technical multi-dimensional farms will still not function and instead require two accounts. It depends on what is done on the other chamber, and how long mobs spend there. We maintain the default 20s persistence.
{% endembed %}

### Otherside Gating

The Otherside Gate slows down mob farms that send hostile mobs through portals, but only while the area those mobs come out in is lagging. When that area runs smoothly, the gate does nothing and you won't notice it.

Why it exists: our server runs on Canvas, which runs each part of the world separately. A farm keeps going at full speed even when the place its portal leads to is lagging, so mobs keep pouring in and can eventually crash a region. On a regular server, lag slows everything down together, farm included, and the gate brings that back.

#### What it affects <a href="#what-it-affects" id="what-it-affects"></a>

Only farm mobs going through Nether or End portals, in either direction. Everything else always goes straight through.

| Hostile mobs that would normally despawn (zombies, skeletons, zombified piglins and so on) | Yes   |
| ------------------------------------------------------------------------------------------ | ----- |
| A hostile mob riding a minecart or boat                                                    | Yes   |
| Players, and anything a player is riding or riding with                                    | Never |
| Tamed pets                                                                                 | Never |
| Mobs with a name tag                                                                       | Never |
| Mobs on a lead                                                                             | Never |
| Hostile mobs that won't despawn, such as ones that picked up an item                       | Never |
| Passive mobs, villagers and iron golems                                                    | Never |
| Items, XP and empty minecarts or boats                                                     | Never |

What the gate does depends on how the other side is running:

1. **Running smoothly** (about 18 TPS or better): every mob goes straight through. In the background, the gate learns how many mobs per tick your farm normally sends.
2. **Lagging** (below about 18 TPS, or a single tick stuck for more than 0.15 seconds): mobs get through at your farm's normal rate for each tick the other side actually runs. At half speed, that's half as many mobs per second. The rest wait at the portal.
3. **Catching up:** for 5 seconds after the lag clears, waiting mobs come through at up to twice the normal rate, so the backlog arrives gradually instead of all at once.
