Links
Tags
Creators
Details
1.1-beta1
Compatibility
Required content
Changes
S1 MTR Addon — 1.1-beta1 更新日志 / Changelog
适用版本 / Supported versions: Minecraft 1.20.1 (MTR 4.0.4) 与 / and Minecraft 1.20.4 (MTR 4.0.5)
中文
新增
万向节点(Multi-Direction Node)
- 从方速 MTR4 移植的最小可用版万向节点,并且与方速兼容(安装方速的情况下,S1MTR的万向节点会自动不注册)
- 突破 MTR 原版
Angle枚举 22.5° 离散限制,支持任意角度绑定。实现方式为幻影Angle实例 + 实例缓存。 - 未绑定方向时显示持续旋转的线框标记;绑定后按设定角度固定。右键可用刷子打开配置界面输入角度与切换旋转绑定。
- 可用轨道连接器 / 删除器连接两个万向节点,按绑定角度生成轨道;几何不成立时自动降级为直线。破坏方块会删除相连轨道。
- 渲染使用零资源线框,不依赖方速的 OBJ / sowcer 渲染栈。
- 附带两处 MTR 修复:客户端路径缓存不再被 22.5° 快照轨道替换;侧线寻路放宽角度匹配,使任意角度轨道可被寻路识别。
侧线列车限速(独立于手动驾驶限速)
- 在铁路仪表盘点开侧线的界面底部、以及刷子刷侧线后的高级设置中,各增加一个「列车限速 (km/h)」输入框。
- 限速值与 MTR 原生的「手动驾驶最高速度」完全独立:使用本模组自己的存储(客户端显示值 + 服务端权威值,通过 C2S 数据包同步),不会被手动限速滑块覆盖,也不会反向影响手动驾驶。
- 语义为
min(轨道自身限速, 该侧线列车限速):经过低限速轨道时按轨道限速行驶,经过高限速轨道时按列车限速行驶。 - 由限速造成的时间损耗不计入晚点判定,列车不会因此触发追点加速。
建设器与万向节点联动
- 快速轨道建设器、自动速度轨道建设器均支持连接万向节点(含方速的万向节点)。
- 副手持快速轨道建设器、主手持原版轨道节点放置时,自动替换为 S1MTR 万向节点。
- 刷子刷万向节点时,界面最下方同样提供「S1MTR 高级设置」与「复合构建放样」入口,可正常改速度与放样;方速的万向节点也支持。
公开 API(供其它模组 / 脚本调用)
top.s1metro.s1mtr.api.TrainDoorApi:获取指定列车、最近列车、某车站 / 某站台列车的开门进度百分比(0–100)。数据源为 MTR 的车门动画值,与画面一致。top.s1metro.s1mtr.api.RailSpeedColorApi.getColor(int speedKmh):按速度返回MTR_DEFAULT配色的 ARGB 颜色(从 MTRRailType读取档位色,含 250 km/h 铜色与 400 km/h 品红,中间线性插值)。
修复与兼容
- 修复与方速 MTR4 共存时的硬崩溃:两者 Mixin 重叠(尤其
EnumHelper.valueOf的@Overwrite)会导致启动崩溃。现通过 Mixin 配置插件做运行时互斥——检测到fangsu时禁用本模组那一套万向节点 Mixin 与方块注册,改用方速自己的实现。
其它
- 双目标构建:
1.20.1与1.20.4两个 jar 均已提供。
鸣谢 :方速的MTR拓展,MAGIC MTR Addon
English
Added
Multi-Direction Node
- A minimal, self-contained port of FangSu MTR4's multi-direction node: block, item, block entity, model and language entries, added to the creative tab.
- Breaks MTR's 22.5°
Angleenum restriction and supports arbitrary angles. Implemented with phantomAngleinstances plus an instance cache, so MTR core's reference (==) angle comparisons keep working. - Shows a continuously rotating wireframe marker while unbound; locks to the configured angle once bound. Use a brush on it to open the config screen and enter an angle or toggle rotation binding.
- Rail connectors / removers can connect two multi-direction nodes and generate rails at the bound angle, falling back to a straight rail when the geometry is invalid. Breaking a node removes its connected rails.
- Rendering uses a zero-asset wireframe and does not depend on FangSu's OBJ / sowcer rendering stack.
- Includes two MTR fixes: client path cache is no longer replaced by 22.5° snapshot rails, and siding pathfinding accepts arbitrary-angle matches.
Siding train speed limit (independent of manual-driving speed)
- A "Train speed limit (km/h)" field was added both to the siding screen opened from the railway dashboard and to the advanced settings opened by brushing a siding.
- The limit is completely independent of MTR's native manual-driving max speed: it uses this mod's own storage (client display value + server authoritative value, synced via a C2S packet). It neither gets overwritten by the manual speed slider nor affects manual driving.
- Semantics:
min(rail's own speed limit, this siding's train speed limit). Trains run at the rail limit on low-speed rails and at the train limit on high-speed rails. - Time lost due to the limit is excluded from delay calculation, so trains do not trigger catch-up acceleration because of it.
- Editable far from the depot: displaying and saving the limit does not depend on nearby rail data; open the siding from the dashboard anywhere to change it.
Builder integration with multi-direction nodes
- Both the fast rail builder and the automatic-speed rail builder can connect to multi-direction nodes, including FangSu's.
- With the fast rail builder in the offhand and a vanilla rail node in the main hand, placing a node automatically substitutes an S1MTR multi-direction node.
- Brushing a multi-direction node also exposes the "S1MTR advanced settings" and "composite lofting" buttons at the bottom of the screen, with speed editing and lofting working normally. FangSu's multi-direction node is supported too.
Public APIs (for other mods / scripts)
top.s1metro.s1mtr.api.TrainDoorApi: query the door opening progress percentage (0–100) of a specific train, the nearest train, or trains at a station / platform. The value comes from MTR's door animation and matches what is shown in game.top.s1metro.s1mtr.api.RailSpeedColorApi.getColor(int speedKmh): returns theMTR_DEFAULTARGB color for a speed, read from MTRRailTypestops (including 250 km/h copper and 400 km/h magenta) with linear interpolation in between.
Fixes and compatibility
- Fixed a
fabric-registry-syncintrusive-holder crash when FangSu was installed, by creating unregistered Block objects lazily and conditionally. - Restored the stable curve-lofting logic, fixing missing blocks on curved lofts.
Other
- Dual-target builds provided for
1.20.1and1.20.4.
Thanks:Fangsu's MTR Addon,MAGIC MTR Addon
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:U74iNbrt:HmALHe6S"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:U74iNbrt:HmALHe6S"
}

