RailTransit
一个用于 Slimefun4 的轨道交通插件
适用于 Paper 26.2+ 服务器的 Slimefun4 插件。组建组织、规划路线、一键自动生成寻路,并让列车在循环中自动运行。
项目功能介绍
RailTransit 添加了从建设到运营的完整轨道交通玩法循环:
· 两个新的 Slimefun 物品
· 列车 (RT_TRAIN, 矿车模型) — 在高级工作台使用动力矿车合成
· 控制台 (RT_CONTROLLER, 讲台模型) — 右键打开可视化轨道交通控制面板
· 组织系统 — 创建带有头像和描述的组织,邀请成员,并协作建造铁路
· 路线系统 — 每个组织可拥有多条路线,每条路线绑定一组车站。支持单向(返回车库)和循环模式
· 智能寻路 — 使用 DFS 算法沿铁轨自动查找从侧线出发、经过所有目标车站的路径,并生成持久化的航点
· 列车自主运营 — 列车沿编译好的路径自动循环运行,到站时进行广播,停靠等待后返回车库,再次出发
· 断点续传 — 如果在编译过程中遇到未加载区块,请使用 /railtransfer continue 继续而无需返回起点
· 重启后自动恢复 — 服务器重启后自动扫描并恢复正在运行的列车
为何下载
· 开箱即用 — 使用原版铁轨(普通、动力、激活、探测),无需额外的轨道模组
· 全图形界面操作 — 组织、路线、车站及编译均可通过控制台访问。同时提供完整的命令补全功能
· 低维护成本 — 自动车站广播、可配置的停靠/发车间隔(秒)、自动碰撞恢复、自动重启恢复 — 设置好后即可无忧使用
· 适合多人游戏 — 基于组织的路线管理,非常适合协作构建大规模城市轨道交通网络
· 轻量且稳定 — 仅依赖 Slimefun;JSON 数据存储便于备份/迁移;寻路在主线程之外运行;基于 tick 驱动的轻量级执行
下载前须知
· 环境要求:Paper 26.2(或兼容的 26.x.x),并已安装 Slimefun4 作为硬性依赖
· 权限:需要 railtransit.use 权限节点
· 轨道规范:侧线铁轨(探测铁轨)= 起点/车库;车站铁轨(激活铁轨)= 站台;动力铁轨 = 高速路段;普通铁轨 = 普通路段
· 车站是全局的 — 存储在列表中,可在不同路线间复用。添加或删除车站后必须重新编译
· 编译与区块加载 — 长距离编译期间遇到未加载区块属正常现象。请使用 continue 继续。矿车会在区块边界停止 — 这是预期行为
· 数据文件:plugins/RailTransit/group.json(组织)和 station.json(车站、路线、路径)。编辑前请备份
· 版本历史
· v1.0.6:铁块电梯
· v1.0.3:精炼版本
· v1.0.2:断点续传 (/railtransfer continue)
· v1.0.0-alpha:首个可用版本
命令列表
· /railtransfer select [org id] [line id] — 选择一条线路;放置列车以在其上运行
· /railtransfer compile [org id] [line id] — 编译一条线路;然后手持空手右键点击侧线铁轨作为起点
· /railtransfer continue [org id] [line id] — 继续编译(参数可选,默认使用上一条线路)
· /railtransfer out [org id] [line id] — 设置返回车库后的发车间隔(秒)
· /railtransfer wait [org id] [line id] — 设置每站的停留时间(秒)
· /railtransfer help — 查看帮助
· /railtransit — 主命令,别名:rt, railway
权限节点
· railtransit.use — 使用轨道交通命令的权限
快速入门
- 安装 Slimefun 和本插件,重启服务器
- 合成列车和控制台;放置控制台并创建一个组织
- 铺设轨道:起点侧线 + 沿线普通/动力铁轨 + 各车站处的激活铁轨
- 通过控制台添加车站,创建路线,绑定车站
- 编译路线(手持空手右键点击侧线铁轨);若遇未加载区块请使用 continue 继续
- 使用 select 选择路线,将列车放置在侧线上,开始运营
RailTransit
A rail transit addon for Slimefun4
A Slimefun4 addon for Paper 26.2+ servers. Form organizations, plan routes, auto-generate pathfinding with one click, and let trains run autonomously in loops.
What This Project Does
RailTransit adds a complete rail transit gameplay loop from construction to operation:
· Two New Slimefun Items
· Train (RT_TRAIN, minecart model) — Crafted with a powered minecart at the Enhanced Workbench
· Command Console (RT_CONTROLLER, podium model) — Right-click to open the visual rail transit control panel
· Organization System — Create organizations with avatars and descriptions, invite members, and build railways collaboratively
· Route System — Multiple routes per organization, each bound to a set of stations. Supports one-way (return-to-depot) and loop modes
· Smart Pathfinding — Uses DFS algorithm to auto-find a path along rails from the siding, passing all target stations, and generates persistent waypoints
· Autonomous Train Operation — Trains auto-circulate along compiled paths, announce stations on arrival, wait, return to depot, and depart again
· Breakpoint Resume — If unloaded blocks are encountered during compilation, use /railtransfer continue to resume without returning to start
· Auto-Recovery on Restart — Automatically scans and restores running trains after server reboot
Why Download
· Out-of-the-Box — Uses vanilla rails (normal, powered, activator, detector) with no extra track mods needed
· Full GUI Operation — Organizations, routes, stations, and compilation all accessible via the Command Console. Full commands with tab completion also available
· Low-Maintenance — Auto station announcements, configurable stop/departure intervals (in seconds), auto-crash recovery, auto-restart recovery — set it and forget it
· Multiplayer-Friendly — Organization-based route management, perfect for collaborative large-scale urban rail networks
· Lightweight & Stable — Only depends on Slimefun; JSON data storage for easy backup/migration; pathfinding runs off main thread; tick-driven lightweight execution
Essential Info Before Downloading
· Environment: Paper 26.2 (or compatible 26.x.x) with Slimefun4 installed as a hard dependency
· Permission: Requires railtransit.use permission node
· Track Conventions: Siding rails (detector rails) = start/depot; Station rails (activator rails) = platform; Powered rails = high-speed sections; Normal rails = normal sections
· Stations Are Global — Stored in a global list and can be reused across routes. Must recompile after adding/removing stations
· Compilation & Chunk Loading — Unloaded blocks during long-distance compilation are normal. Use continue to resume. The minecart stops at chunk borders — this is intended behavior
· Data Files: plugins/RailTransit/group.json (organizations) and station.json (stations, routes, paths). Back up before editing
· Version History
· v1.0.6: Iron block elevator
· v1.0.3: Refined version
· v1.0.2: Breakpoint resume (/railtransfer continue)
· v1.0.0-alpha: First usable version
Command List
· /railtransfer select [org id] [line id] — Select a line; place a train to run on it
· /railtransfer compile [org id] [line id] — Compile a line; then right-click a siding rail as start point
· /railtransfer continue [org id] [line id] — Resume compilation (parameters optional, uses last line)
· /railtransfer out [org id] [line id] — Set departure interval (seconds) after returning to depot
· /railtransfer wait [org id] [line id] — Set dwell time (seconds) per station
· /railtransfer help — View help
· /railtransit — Main command, aliases: rt, railway
Permission Node
· railtransit.use — Permission to use rail transit commands
Quick Start
- Install Slimefun and this plugin, restart server
- Craft Train and Command Console; place Console and create an organization
- Lay tracks: start siding + normal/powered rails along route + activator rails at each station
- Add stations via Console, create a route, bind stations
- Compile the route (right-click siding rail empty-handed); use continue for unloaded chunks
- Use select to choose the route, place the Train on the siding, and start operations
评论 0
登录后参与评分
还没有评论,来抢沙发吧