# ardrake/mouflonhardcoremod architecture

> Architecture diagram of the GitHub repository ardrake/mouflonhardcoremod, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-21). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ardrake/mouflonhardcoremod
- Repository: https://github.com/ardrake/mouflonhardcoremod

## Overview

This Vintage Story mod prevents players from placing blocks while jumping. At startup it registers the custom block behavior; during asset finalization it attaches that behavior to soil-material blocks. The behavior intercepts placement, rejects it when the player's jump control is active, and otherwise delegates to the base placement logic. The excerpts show these runtime relationships; no README or sampled source describes additional product capabilities.

Main entry points: [`MouflonsHardcoreMod/MouflonsHardcoreMod.cs`](https://github.com/ardrake/mouflonhardcoremod/blob/main/MouflonsHardcoreMod/MouflonsHardcoreMod.cs) (Mod system), [`MouflonsHardcoreMod/JumpRestriction.cs`](https://github.com/ardrake/mouflonhardcoremod/blob/main/MouflonsHardcoreMod/JumpRestriction.cs) (Jump restriction)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_lifecycle["Mod lifecycle"]
  node_core["Mod system"]
  node_soil["Soil behavior setup"]
end

subgraph group_placement["Placement rule"]
  node_restriction["Jump restriction<br/>[JumpRestriction.cs]"]
  node_baseplacement["Base placement"]
end

node_game(("Vintage Story"))

node_game -->|"starts"| node_core
node_core -->|"registers behavior"| node_game
node_core -->|"finalizes assets"| node_soil
node_soil -->|"attaches to soil"| node_restriction
node_game -->|"requests placement"| node_restriction
node_restriction -->|"delegates when allowed"| node_baseplacement

click node_core "https://github.com/ardrake/mouflonhardcoremod/blob/main/MouflonsHardcoreMod/MouflonsHardcoreMod.cs"
click node_soil "https://github.com/ardrake/mouflonhardcoremod/blob/main/MouflonsHardcoreMod/MouflonsHardcoreMod.cs"
click node_restriction "https://github.com/ardrake/mouflonhardcoremod/blob/main/MouflonsHardcoreMod/JumpRestriction.cs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_core,node_soil toneBlue
class node_restriction,node_baseplacement toneAmber
class node_game toneIndigo
```

## Components

### Mod lifecycle

- [Mod system](https://github.com/ardrake/mouflonhardcoremod/blob/main/MouflonsHardcoreMod/MouflonsHardcoreMod.cs): `MouflonsHardcoreMod/MouflonsHardcoreMod.cs`
- [Soil behavior setup](https://github.com/ardrake/mouflonhardcoremod/blob/main/MouflonsHardcoreMod/MouflonsHardcoreMod.cs): `MouflonsHardcoreMod/MouflonsHardcoreMod.cs`

### Placement rule

- [Jump restriction](https://github.com/ardrake/mouflonhardcoremod/blob/main/MouflonsHardcoreMod/JumpRestriction.cs): `MouflonsHardcoreMod/JumpRestriction.cs`
- **Base placement**

### Other components

- **Vintage Story**

## Connections

- Vintage Story → Mod system: starts (evidence: `MouflonsHardcoreMod/MouflonsHardcoreMod.cs`)
- Mod system → Vintage Story: registers behavior (evidence: `MouflonsHardcoreMod/MouflonsHardcoreMod.cs`)
- Mod system → Soil behavior setup: finalizes assets (evidence: `MouflonsHardcoreMod/MouflonsHardcoreMod.cs`)
- Soil behavior setup → Jump restriction: attaches to soil (evidence: `MouflonsHardcoreMod/MouflonsHardcoreMod.cs`)
- Vintage Story → Jump restriction: requests placement (evidence: `MouflonsHardcoreMod/JumpRestriction.cs`)
- Jump restriction → Base placement: delegates when allowed (evidence: `MouflonsHardcoreMod/JumpRestriction.cs`)
