Official documentation Kotlin · Windows
THE MOD CREATOR'S GUIDE
Your ideas.
Your network.
Your mods.
Create for NIMBY Rails with Kotlin.
From your first signal to advanced behaviour, a guide to understanding and building.
Your rules · Kotlin
signalModel(
"mymod.signal", "My signal", "my_textures",
fallback = closed
) {
rules {
when {
!fresh || !routeKnown -> closed
block == Occupancy.Clear -> open
else -> closed
}
}
}Your signal. Your behaviour.Declaration excerpt
SDK 0.9
This edition describes a version in development. Experimental features are marked on their pages. · 0.9.0-alpha.2
AT YOUR OWN PACE
A starting point for everyone.
01
Your first mod
Create your project, add the SDK and write your first signal, step by step.
Create my first signal →02Give it your rules
Settings, indications, textures and driving: your mod defines its behaviour.
Understand signals →03Explore the SDK
Trains, tracks, clock and commands. Find Kotlin signatures and types.
Browse the reference →68 pages · Kotlin examples · Documentation versioned on GitHub