# TerrainMod

> lets you paint terrain texture layers directly in Sons of the Forest.

Mod for [Sons of the Forest](https://store.steampowered.com/app/1326470/Sons_Of_The_Forest/) by [R9X3M](https://sotf-mods.com/profile/r9x3m). Page: https://sotf-mods.com/mods/r9x3m/terrainmod

## At a glance

- **Version:** 1.0.1 (released 2026-06-26)
- **Category:** Quality of Life
- **Game compatibility:** untested on the current patch
- **Loader:** RedLoader
- **Platform:** Client
- **Multiplayer:** not stated
- **Dependencies:** none
- **Downloads:** 1,453 (as of 2026-10-01)
- **Followers:** 0
- **First published:** 2026-06-26
- **Last release:** 2026-06-26

## Install

1. Install RedLoader, the Sons of the Forest mod loader (RedManager can do it for you).
2. Download the mod and put it in the `_RedLoader/Mods` folder inside the game directory.
3. Launch the game and press F1 to confirm it loaded.

Download 1.0.1: https://sotf-mods.com/mods/r9x3m/terrainmod/download/1.0.1
Full guide: https://sotf-mods.com/install

## Compatibility

untested on the current patch.
Details and field reports: https://sotf-mods.com/mods/r9x3m/terrainmod#compatibility

## Description

Features:

 Toggleable in-game terrain brush
 Paint terrain while aiming at the ground
 Adjustable brush radius
 Adjustable terrain layer selection
 Small HUD showing brush status, layer, radius, target terrain, and saved patches
 Remove the most recent patch
 Replay saved terrain patches
 RedLoader mod settings support
 Remappable keybinds
 Save/load support through RedLoader custom save data

## Changelog 1.0.1 (2026-06-26)

Code cleanup and performance improvements
 Cached the main terrain collider after the first lookup instead of repeatedly searching for the terrain object during normal update/aiming behavior.
 Reset the cached terrain reference when the active world/save state is cleared, preventing stale terrain references between sessions.
 Replaced unnecessary reflection for standard Unity TerrainData properties with direct property access.
 Updated brush preview logic to use direct TerrainData access for alphamap dimensions, terrain size, and height sampling.
 Updated aiming and painting coordinate calculations to use direct TerrainData properties.
 Replaced reflected GetInterpolatedHeight calls with direct TerrainData.GetInterpolatedHeight(...) calls.
 Updated pending save replay logic to use the cached terrain lookup path.
 Kept the lower-level alphamap mutation and restore logic unchanged where IL2CPP-specific handling is still needed.

All versions: https://sotf-mods.com/mods/r9x3m/terrainmod/versions

## FAQ

### Does TerrainMod work in multiplayer?

The author has not stated multiplayer support yet. Check the comments and the field reports of other players.

### How do I install TerrainMod?

Install RedLoader (RedManager can do it for you), download TerrainMod 1.0.1 from this page and put it in the \_RedLoader/Mods folder inside your game directory. Launch the game and press F1 to confirm it loaded.

### What does TerrainMod need?

Only Sons of the Forest on Steam and RedLoader. It has no other dependencies.

### Does TerrainMod work on the current game patch?

There are no compatibility reports yet. If you try it, add a field report.

---

Source: https://sotf-mods.com/mods/r9x3m/terrainmod · SOTF Mods, the home of Sons of the Forest modding.
