本模组仍处于开发阶段,可能会导致意外的地形破坏。请务必备份你的世界存档文件!
自动铁路生成 (ARG)
自动铁路生成(Automatic Railway Generation, ARG)会在主世界中自动建造可用的 Create 铁路。
它会寻找村庄、选择站点位置、规划适应地形的路线,并放置真实的 Create 轨道、弯道、路基、桥梁和简易隧道。随着玩家的探索,该网络可以不断扩展。
本模组会修改地形且仍在开发中。在安装或更新之前,请务必备份重要世界。
功能特性
- 在出生点、村庄以及不断扩大的网络之间自动生成铁路
- 适应地形的路由系统,包含平滑的 Create 弯道和缓坡
- 自动生成村庄车站、轨道路基、桥墩和净空高度
- 施工前进行结构和区块实体检查
- 在探索过程中逐步扩展网络
- 内置铁路地图,默认按 M 键打开
ARG 仅负责建设铁路基础设施。列车、信号系统、Create 车站以及时刻表仍需由玩家自行配置。
依赖要求
将 ARG 和 Create 安装到 mods 文件夹中。对于多人游戏,请在服务器和客户端上安装相同版本。
在 Windows 上从源码构建:
gradlew.bat build
jar 文件将生成在 build/libs/ 目录下。
游玩方式
在首次加载世界时,ARG 通常会等待其在出生点附近创建初始铁路。加载屏幕会显示当前进度。这可能导致首次加载时间明显变长。
当启用探索生成时,访问新区域可以发现更多村庄,并随着时间的推移扩展网络。如果无法找到安全路径,困难的路线可能会稍后重试或失败。
按 M 键打开铁路地图:
- 鼠标滚轮:缩放
- 左键拖拽:平移
- 绿色:已完成
- 黄色:已规划或施工中
- 红色:失败
自动生成功能目前仅支持主世界。
安全与配置
ARG 在铺设轨道前会检查完整路线,并避开已知的生成结构、不可破坏的方块以及受保护的方块实体。然而,它必须清除列车走廊内的普通可破坏方块和地形。玩家建造的方块有时无法与自然地形区分开来,因此请务必备份现有世界。
主配置文件位于:
config/automaticrailwaygeneration-common.toml
有用的设置包括:
enableWorldRailGeneration:总开关
blockInitialGeneration:在进入游戏前等待初始铁路生成完毕
enableExplorationGeneration:在探索过程中扩展
initialPlanningRadiusChunks:初始搜索范围
villageStationProbability:村庄获得车站的概率
禁用生成不会移除已经存在的铁路。
管理员命令
/argrail status — 显示铁路状态
/argrail scan — 强制进行另一次扫描和规划
/argrail retry — 重试失败的路线
/argrail export — 将详细信息写入服务器日志
/argrail rebuild <半径> — 重建附近生成的轨道
在使用 rebuild 之前,请备份世界。
This mod is still in the development stage and may cause unexpected structural damage. Please be sure to back up your world save files!
Automatic Railway Generation
Automatic Railway Generation (ARG) automatically builds usable Create railways in the Overworld.
It finds villages, chooses station sites, plans terrain-aware routes, and places real Create tracks, curves, foundations, bridges, and basic tunnels. The network can continue expanding as players explore.
This mod edits terrain and is still in development. Back up important worlds before installing or updating it.
Features
- Automatic railways between spawn, villages, and the growing network
- Terrain-aware routing with smooth Create curves and gentle slopes
- Automatic village stations, track beds, bridge pillars, and clearance
- Structure and block-entity checks before construction
- Gradual network expansion while exploring
- In-game railway map, opened with M by default
ARG builds the railway infrastructure only. Trains, signals, Create stations, and schedules must still be configured by players.
Requirements
Install ARG and Create in the mods folder. For multiplayer, install the same versions on the server and clients.
To build from source on Windows:
gradlew.bat build
The jar will be created in build/libs/.
Playing
On the first world load, ARG normally waits while it creates an initial railway near spawn. The loading screen shows its current progress. This can make the first load noticeably longer.
When exploration generation is enabled, visiting new regions can discover more villages and extend the network over time. Difficult routes may be retried later or fail if no safe path is available.
Press M to open the railway map:
- Mouse wheel: zoom
- Left-drag: pan
- Green: complete
- Yellow: planned or under construction
- Red: failed
Automatic generation currently works in the Overworld only.
Safety and Configuration
ARG checks complete routes before laying track and avoids known generated structures, unbreakable blocks, and protected block entities. However, it must clear ordinary breakable blocks and terrain inside the train corridor. Player-built blocks cannot always be distinguished from natural terrain, so always back up existing worlds.
The main configuration file is:
config/automaticrailwaygeneration-common.toml
Useful settings include:
enableWorldRailGeneration: master switch
blockInitialGeneration: wait for the initial railway before entering
enableExplorationGeneration: expand while exploring
initialPlanningRadiusChunks: initial search range
villageStationProbability: chance for villages to receive stations
Disabling generation does not remove railways that already exist.
Administrator Commands
/argrail status — show railway status
/argrail scan — force another scan and planning pass
/argrail retry — retry failed routes
/argrail export — write details to the server log
/argrail rebuild <radius> — rebuild nearby generated tracks
Back up the world before using rebuild.
评论 0
登录后参与评分
还没有评论,来抢沙发吧