Tags
Creators
Details
v2.2.0+1.20.1
Compatibility
Required content
Changes
JCM v2.2.0 for MTR 4.0.4 has been released!
MTR Enhancements
This release brings several enhancements for the MTR mod. Notable additions including the lift "ding" sound from MTR 3, basic car auto-filling in sidings and more rendering options.
See the documentation for details.
Vehicle Scripting
This release added Vehicle Scripting, allowing scripts to be used on vehicles. (For players, note that not all MTR 3 scripts will work out of the box)
This is paired with other scripting-related changes, such as the re-introduction of a more complete model loading API.
Please check the Vehicle Scripting docs and the MTR-NTE Compatibility page for more details.
Other scripting changes
- The Rhino JS Engine is updated to use 1.9.
- Eyecandy Scripting: Improved MTR-NTE Compatibility.
- PIDS Scripting: Allow manual z-ordering.
- Added Console API, allowing use of
console.logand alike functions. - The Java class restriction has been revised, it is expected most scripts to remain unaffected.
java.lang.Systemis now restricted by default.- For
currentTimeMillis()andnanoTime(), please use the counterpart fromTiminginstead, which functions equivalently.
- For
java.lang.Classand other misc classes has been restricted.- As usual, you may still turn off the scripting restriction in settings.
For the full list of changes, please refer to the changelogs of the previous v2.2 beta releases.
Download:
You can download this release on Modrinth, CurseForge or GitHub
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:lQqKCDhg:ffs8VCmj"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:lQqKCDhg:ffs8VCmj"
}

