All versions
2.0.0
Release
atrain 2.0.0last month 42
Compatibility
Minecraft: Java Edition
26.2
26.1.x
1.21.x
Platforms
Folia
Paper
Purpur
Spigot
Changes
🌟 核心新功能與改進
- GitHub Release 雙軌線上更新與動態發布日誌檢測:
- 支援
/train update [check|download] [release|beta|auto],提供正式版與測試版雙通道更新。 - 新增
/train version指令,動態比對當前版本並顯示 GitHub 發布標題、日期、類型與專屬更新日誌。 - 管理員登入與開機時自動推播新版本更新提醒。
- 支援
- 舊版 Jar 多層安全移除與 Windows 鎖定防護:
- 更新檔下載完成後直接移入
/plugins目錄,廢除plugins/update/中轉。 - 遇到 Windows ClassLoader 鎖定時自動更名為
.old、標記deleteOnExit並於onDisable()與開機時自動清理,完美支援 PlugMan 熱重載。
- 更新檔下載完成後直接移入
- 無痛設定檔遷移引擎 (ConfigMigrationService):
- 啟動時自動比對
config-version並備份舊檔(如config.backup-v1.yml)。 - 完整保留服主既有繁中註解與自訂數值,無損注入新設定鍵值(升至 config-version 2)。
- 啟動時自動比對
- 列車進出站平滑化與高幀率插值補幀 (#1):
- 平滑高度貼軌 (
snapToRailHeight):重構軌道吸附邏輯,保留連續高精度浮點位移,徹底解決低速離站與靠站時的網格式卡頓與瞬移。 - 每 tick 同步速度向量至礦車實體,讓客戶端在 60/144 FPS 下完美平滑補幀。
- 平滑高度貼軌 (
- 平滑 S 型梯形巡航過渡曲線與中段高速飛馳重現 (#1):
- 實作「起步 20% 平滑加速 → 中段 60% 恆定 1.24x 高速巡航 → 靠站 20% 平緩減速」梯形曲線,注入 5% 微起步基底,重現區間高速飛馳的呼嘯快感。
- 發車時動態解鎖
cart.setMaxSpeed,恢復高速視野 FOV 視覺拉伸特效。
- 站點行駛時間對稱生效與回程繼承修復 (#1):
- 站點編輯 GUI 精確綁定路線 ID,修復修改行駛時間未生效至目標路線的問題。
- 支援回程(REVERSE)反向行駛時對稱繼承去程起點站的自訂秒數,確保雙向行駛時間精準一致。
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:YKKoqUX8:gKJzjGt7"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:YKKoqUX8:gKJzjGt7"
}
