? Ad Astra Cargo Rockets
概述
我启动了一个自动化代码生成的网站!
我是新手,这个模组可能包含许多错误。如果您能提交拉取请求(Pull Request),我将不胜感激。
此模组为 Ad Astra 添加了货运火箭,并且在与 CC:tweaked 配合使用时,可以实现星际物资运输的自动化。
主要功能
✨ 多级火箭
每个等级都有不同可到达的最大行星数量。其范围限制与 AdAstra 的火箭相同。随着火箭等级的增加,燃料和能量消耗会根据目的地而增加。
✨ 火箭库存系统
[v1.2.4] 火箭本身现在拥有独立的库存(9个槽位)以及独立的燃料/货物流体罐——物品、燃料和货物实际上只存储在这里,发射台本身不持有这些内容。
✨ 管道与漏斗集成
发射台的管道连接和漏斗访问槽位仍然像以前一样存在——但它们不再持有自己的内容,而是作为当前停在发射台上的火箭的直接窗口。
✨ 火箭扫描仪
[v1.2.3] 新增物品 Rocket Scanner,允许你通过单个图形用户界面(GUI)查看世界中所有火箭的位置、维度、飞行状态和库存,无需飞出检查它们。
✨ CC:tweaked Lua API
脚本现在可以通过 Lua API 完全控制火箭,包括 setRocketName(name)、setRocketStatus(status) 等函数。
✨ 代码生成器
自动脚本生成工具位于
✨ 可自定义配置
修改 config/ad_astra_cargo_rockets.json 以自定义目标目的地成本和燃油效率。
✨ 增强动画
更平滑的发射和着陆动画粒子及音效。改进了着陆时的方块碰撞检测。
流体与能量连接
[v1.2.4] 燃料和货物流体存储在火箭本身的罐中,而不是发射台上——但发射台的管道连接工作方式与以前完全相同。当火箭停在发射台上时,发射台的各个面充当该火箭自身罐/库存的直接窗口。
| 侧面 |
功能 |
| 底部 |
燃料罐(同步到停泊火箭的燃料罐) |
| 顶部 / 侧面 |
货物流体罐(同步到停泊火箭的货物罐) |
| 任意侧面 |
Forge Energy (FE) 输入 |
| 漏斗访问槽位 |
停泊火箭的 9 格库存 |
- 将燃料管道连接到 底部 面以供应火箭燃料(例如
ad_astra:fuel, ad_astra:cryo_fuel)。
- 将流体管道连接到 顶部或侧面 面以运输货物液体。
- 指向发射台的漏斗(或任何物品传输模组)将直接插入/提取火箭的库存。
- [v1.3] 不再支持用手桶填充/排空罐(无论是在发射台还是从火箭自己的库存屏幕)。管道、漏斗和 Lua API 是移动燃料/货物流体进出唯一的途径。
- 如果发射台上没有停泊火箭——空的、飞行中或仍在下降——这些连接无处可交付,因此不接受任何东西,就像未连接的管道一样。
版本历史
[v1.4] 错误修复
这是一个破坏性变更。 使用桶填充/排空火箭的燃料和货物罐的功能已被移除。从玩家的角度来看,罐现在是只读的;填充或排空它们的唯一方法是通过连接到发射台上的管道的漏斗(当火箭停在其上时),或通过 Lua API 中的脚本。
修复:
- 修复了库存屏幕和发射台能量条的 GUI 同步问题
- 修复了 Rocket Scanner 的重命名文本字段在输入过程中被覆盖的问题
- 修复了方块信息叠加模组(如 Jade)仅显示一个流体罐的问题
- 改进了发射台状态更改时向所有邻居方块发送更新
- 各种 GUI 优化改进
[v1.2.4] 火箭库存与自动化
这是一个破坏性变更。 火箭本身现在拥有独立的库存和燃料/货物流体罐。
移除的 API:
moveItemsFromRocketToLaunchPad
moveItemsFromLaunchPadToRocket
listRocketInventory
listLaunchPadInventory
listLaunchPadInputSlotIndexes
listLaunchPadOutputSlotIndexes
loadAllItems/unloadAllItems
新函数:
isRocketInventoryEmpty() — boolean
getSecondsSinceLanded() — int
改进:
- 修复了长期存在的货物流体在着陆时消失的错误
- 修复了下降火箭的碰撞检测
- 与管道和漏斗实时同步
[v1.2.3] 火箭扫描仪与自定义名称
- 添加了用于全地图火箭追踪的 Rocket Scanner 物品
- 添加了
setRocketName(name) Lua 函数
- 添加了
setRocketStatus(status) Lua 函数
- 改进了火箭状态管理
火箭发射台 Lua API
? launch()
尝试发射当前在此发射台上的火箭。
返回:
boolean: 成功则返回 true,否则返回 false。
错误:
"No rocket found":发射台上当前没有火箭。
? getTargetPlanetTable()
返回一个表格,包含从当前维度可达的所有行星以及到达每个行星所需的最小火箭等级。
返回:
table<string, int>:键为行星名,值为到达该行星所需的火箭等级的表格。
? isRocketPresent()
检查发射台上是否有火箭。
返回:
boolean: 如果有火箭则返回 true,否则返回 false。
?️ getFuel()
返回火箭燃料罐中的当前燃料量。当火箭停泊时,发射台的 底部 面管道直接写入此相同的罐中。
返回:
?️ getMaxFuel()
返回火箭燃料罐的最大燃料容量。
返回:
?️ getFuelType()
返回火箭燃料箱中当前燃料的流体 ID。
返回值:
string: 流体注册表 ID(例如 "ad_astra:fuel"),如果油箱为空则为 "empty"。
? getCargoFluid()
返回火箭货舱中当前货物流体的量。
返回值:
? getMaxCargoFluid()
返回货物流体的最大容量。
返回值:
? getCargoFluidType()
返回火箭货舱中当前货物流体的流体 ID。
返回值:
string: 流体注册表 ID,如果油箱为空则为 "empty"。
? setRocketStatus(status)
为当前停在此发射台上的火箭设置自定义状态字符串。该字符串会显示在 Rocket Scanner GUI 中,并优先于模组自动推断的等待原因。
参数:
status (string): 要显示的自由文本。传入空字符串可清除状态并回退至模组的自动推断。
错误:
"No rocket found": 当前发射台上没有火箭。
?️ setRocketName(name)
为当前停在此发射台上的火箭设置显示名称。该名称会显示在 Rocket Scanner GUI 的火箭列表中。
参数:
name (string): 要显示的名称(最多 32 个字符;超出部分将被截断)。
错误:
"No rocket found": 当前发射台上没有火箭。
? Rocket Scanner
Rocket Scanner 是一个新增物品,让你无需手动飞行出去检查,即可追踪世界中的每一艘货运火箭。
手持 Rocket Scanner 右键点击以打开扫描器 GUI。左侧面板列出世界中当前加载的所有火箭(跨所有维度),并显示其名称和位置。
从列表中选择一艘火箭后,将显示:
- 位置与维度 — 火箭当前的所在位置。
- 飞行状态 —
Grounded(着陆)、Ascending(上升)或 Descending(下降)。
- 等待原因 — 火箭停在发射台上的原因。
- 燃料 / 货物流体 — [v1.2.4] 火箭自身油箱中的当前量和最大量。
- 物品栏 — 火箭上每个槽位当前装载的物品。
- 名称字段 — 一个文本框,允许直接从 GUI 重命名火箭。
当 GUI 打开时,列表每隔几秒自动刷新一次;或者点击 Refresh 按钮立即更新。
关于非拉丁语系名称的说明: Minecraft 原版 EditBox 文本输入框在某些平台上对 IME 输入(如日语、中文、韩语)存在已知限制——在输入过程中,组合文本可能渲染不正确。这是 Minecraft/LWJGL 的限制,不在模组控制范围内。
Additional Tags
本模组添加了物品标签 denied_in_launch_pad,用于防止指定物品在发射台上使用(例如潜影盒)。通过使用此标签,你可以阻止非法运输行为。
Credit
Fork Source: Ad-Astra-Cargo-Rockets-Unofficial by ChiyahaRe
URL:
Original Fork Source: Ad Astra Cargo Rockets by BillBodkin
URL:
? Ad Astra Cargo Rockets
Overview
I've launched a website that automates code generation!
I'm new to modding. This mod may contain many bugs. I would really appreciate it if you could submit a pull request.
This mod adds cargo rockets to Ad Astra and, when used in conjunction with CC:tweaked, allows for the automation of interplanetary item transport.
Key Features
✨ Multiple Rocket Tiers
Each tier has a different maximum number of planets it can reach. The same range limitations apply as for AdAstra's rockets. With the addition of rocket tiers, fuel and energy consumption now increases depending on the destination.
✨ Rocket Inventory System
[v1.2.4] The rocket itself now has its own inventory (9 slots) and its own fuel/cargo fluid tanks — these are the only place the items/fuel/cargo actually live, the launchpad itself holds nothing.
✨ Pipe & Hopper Integration
The launchpad's pipe connections and hopper-accessible slots are still there exactly as before — but instead of holding their own contents, they now act as a direct window into whichever rocket is currently grounded on the pad.
✨ Rocket Scanner
[v1.2.3] A new item, the Rocket Scanner, lets you view every rocket in the world (position, dimension, flight state, inventory) from a single GUI without flying out to check on them.
✨ CC:tweaked Lua API
Scripts can now control rockets fully via the Lua API with functions like setRocketName(name), setRocketStatus(status), and more.
✨ Code Generator
Automatic script generation tool available at
✨ Customizable Configuration
Change config/ad_astra_cargo_rockets.json to customize target destination cost and fuel efficiency.
✨ Enhanced Animations
Particles and sounds for smoother launch and landing animations. Block collision detection improved for landing.
Fluid & Energy Connection
[v1.2.4] Fuel and cargo fluid live in tanks on the rocket itself, not the launchpad — but the launchpad's pipe connections work exactly as they did before. While a rocket is grounded on the pad, the launchpad's faces act as a direct window into that rocket's own tanks/inventory.
| Side |
Function |
| Bottom |
Fuel tank (synced to the grounded rocket's fuel tank) |
| Top / Sides |
Cargo fluid tank (synced to the grounded rocket's cargo tank) |
| Any side |
Forge Energy (FE) input |
| Hopper-accessible slots |
The grounded rocket's 9-slot inventory |
- Connect fuel pipes to the bottom face to supply rocket fuel (e.g.
ad_astra:fuel, ad_astra:cryo_fuel).
- Connect fluid pipes to the top or side faces to transport cargo liquids.
- Hoppers (or any item-transport mod) pointed at the launchpad insert into / extract from the rocket's inventory directly.
- [v1.3] Filling/draining the tanks with a bucket by hand (either at the launchpad or from the rocket's own inventory screen) is no longer supported — pipes, hoppers, and the Lua API are the only ways to move fuel/cargo fluid in or out.
- If no rocket is grounded on the pad — empty, mid-flight, or still descending — these connections have nowhere to deliver to and simply accept nothing, the same as an unconnected pipe.
Version History
[v1.4] Bug Fixes
This is a breaking change. Filling/draining the rocket's fuel and cargo tanks with a bucket has been removed. The tanks are now read-only from the player's perspective; the only way to fill or drain them is via pipes/hoppers connected to the launchpad while a rocket is grounded on it, or from a script via the Lua API.
Fixes:
- Fixed GUI sync for inventory screens and launchpad energy bar
- Fixed Rocket Scanner's rename text field being overwritten mid-typing
- Fixed block-info overlay mods (e.g. Jade) showing only one fluid tank
- Improved block updates to all neighbors when launchpad state changes
- Various GUI polish improvements
[v1.2.4] Rocket Inventory & Automation
This is a breaking change. The rocket itself now has its own inventory and fuel/cargo fluid tanks.
Removed APIs:
moveItemsFromRocketToLaunchPad
moveItemsFromLaunchPadToRocket
listRocketInventory
listLaunchPadInventory
listLaunchPadInputSlotIndexes
listLaunchPadOutputSlotIndexes
loadAllItems/unloadAllItems
New Functions:
isRocketInventoryEmpty() — boolean
getSecondsSinceLanded() — int
Improvements:
- Fixed long-standing bug where cargo fluid would disappear on landing
- Fixed collision detection for descending rockets
- Real-time sync with pipes and hoppers
[v1.2.3] Rocket Scanner & Custom Names
- Added Rocket Scanner item for world-wide rocket tracking
- Added
setRocketName(name) Lua function
- Added
setRocketStatus(status) Lua function
- Improved rocket state management
Rocket Launchpad Lua API
? launch()
Attempt to launch the rocket currently on this launchpad.
Returns:
boolean: true if successful, false otherwise.
Errors:
"No rocket found": No rocket is currently on the launchpad.
? getTargetPlanetTable()
Returns a table of all planets reachable from this dimension and the minimum rocket tier needed to reach each one.
Returns:
table<string, int>: Table with the key being the planet and the value being the required rocket tier to reach it.
? isRocketPresent()
Checks whether a rocket is present on the launchpad.
Returns:
boolean: true if a rocket is present, false otherwise.
?️ getFuel()
Returns the current fuel amount in the rocket's fuel tank. While a rocket is grounded, the launchpad's BOTTOM-face pipe writes directly into this same tank.
Returns:
?️ getMaxFuel()
Returns the maximum fuel capacity of the rocket's fuel tank.
Returns:
?️ getFuelType()
Returns the fluid ID of the fuel currently in the rocket's fuel tank.
Returns:
string: Fluid registry ID (e.g. "ad_astra:fuel"), or "empty" if the tank is empty.
? getCargoFluid()
Returns the current amount of cargo fluid in the rocket's cargo tank.
Returns:
int: Current cargo fluid in mB.
? getMaxCargoFluid()
Returns the maximum cargo fluid capacity.
Returns:
int: Maximum cargo fluid in mB.
? getCargoFluidType()
Returns the fluid ID of the cargo fluid currently in the rocket's cargo tank.
Returns:
string: Fluid registry ID, or "empty" if the tank is empty.
? setRocketStatus(status)
Sets a custom status string on the rocket currently sitting on this launchpad. This string is shown in the Rocket Scanner GUI and takes priority over the mod's automatic wait-reason guess.
Parameters:
status (string): Free-form text to display. Pass an empty string to clear it and fall back to the mod's automatic inference.
Errors:
"No rocket found": No rocket is currently on the launchpad.
?️ setRocketName(name)
Sets a display name on the rocket currently sitting on this launchpad. The name is shown in the Rocket Scanner GUI's rocket list.
Parameters:
name (string): Name to display (max 32 characters; longer names are truncated).
Errors:
"No rocket found": No rocket is currently on the launchpad.
? Rocket Scanner
The Rocket Scanner is a new item that lets you keep track of every cargo rocket in the world without needing to fly out and check on them manually.
Right-click with the Rocket Scanner in hand to open the scanner GUI. The left panel lists every rocket currently loaded in the world (across all dimensions), showing its name and position.
Selecting a rocket from the list shows:
- Position & dimension — where the rocket currently is.
- Flight state —
Grounded, Ascending, or Descending.
- Waiting on — why the rocket is sitting on the pad.
- Fuel / Cargo fluid — [v1.2.4] the current and max amount in the rocket's own tanks.
- Inventory — every item currently aboard the rocket, slot by slot.
- Name field — a text box to rename the rocket directly from the GUI.
The list refreshes automatically every couple of seconds while the GUI is open, or press the Refresh button to update immediately.
Note on non-Latin names: Minecraft's vanilla EditBox text field has known limitations with IME input (e.g. Japanese, Chinese, Korean) on some platforms — composed text can render incorrectly while typing. This is a Minecraft/LWJGL limitation outside the mod's control.
Additional Tags
This mod adds the itemtag denied_in_launch_pad to prevent specified items from being used in launch pads (e.g. shulker box). By using this tag, you can prevent illegal transport techniques.
Credit
Fork Source: Ad-Astra-Cargo-Rockets-Unofficial by ChiyahaRe
URL:
Original Fork Source: Ad Astra Cargo Rockets by BillBodkin
URL:
评论 0
登录后参与评分
还没有评论,来抢沙发吧