Cosmonautics: Warp Drive
使用储存的电能,将 Sable 物理化的船只和空间站跃迁至任意已记录的位置——无论处于哪个维度。
这是 Create + Cosmonautics 生态系统的扩展模组,基于 Sable 的物理/子层级系统构建。
✨ 特性
- Warp Drive(跃迁驱动器) —— 插入跃迁水晶(或记忆卡),注册驱动器当前位置,选择保存的目的地,然后跃迁其附着的整个物理化结构——包括跨维度移动。控制台屏幕会显示实时信息(FE、倒计时、坐标或所选点的名称——可配置)。
- Warp Crystal(跃迁水晶) —— 数据核心。只有跃迁水晶才能真正触发跃迁。
- Memory Card(记忆卡) —— 一种无需前往月球即可记录位置的更廉价方式。像跃迁水晶一样注册并存储点位,但无法独立触发跃迁——需先用晶体驱动器将其点复制到跃迁水晶上。存储容量可配置。
- Crystal Driver(晶体驱动器) —— 将一个跃迁水晶或记忆卡中的已保存位置复制到另一个跃迁水晶或记忆卡上,或删除不再需要的点位。
- Moon Crystal(月球水晶) —— 仅在 Cosmonautics 的月球维度中发现的新资源。开采矿石,然后使用 Create 的砂纸进行精炼。
- 超空间跳跃效果 —— 每次跃迁前短暂的充能过程,伴有屏幕扭曲效果(仅对实际乘坐飞船的玩家可见)和汇聚粒子效果(对附近所有人可见)。
- 完全可配置:每次跃迁的 FE 消耗、充能时间、粒子数量、控制台显示模式以及记忆卡容量。
- CC: Tweaked 支持 —— 跃迁驱动器可作为外设工作,因此计算机可以通过 Lua 读取其状态并进行控制。可选功能;即使未安装 CC: Tweaked,模组也能正常运行。
? 使用方法
- 在月球上开采月球水晶矿(需要钻石镐)以获得原始月球水晶。
- 使用 Create 的砂纸将其精炼为月球水晶。
- 制作跃迁水晶——或者如果暂时不想前往月球,可以制作更便宜的记忆卡——然后制作跃迁驱动器,并将其安装在 Sable 物理化的结构上(例如 Create 飞艇)。
- 插入水晶/卡片并按下 Register Here(在此注册) 以保存该位置。
- 飞往其他地方,在同一块(或另一块)水晶/卡片上注册另一个位置——通过跃迁驱动器的 GUI 重命名条目以便追踪。
- 选择目的地并按下 Warp(跃迁)。驱动器消耗 FE,播放一段短暂的超空间序列,并将整个结构移动到那里。(如果使用记忆卡?需先用晶体驱动器将其点复制到跃迁水晶上——跃迁功能仅能通过跃迁水晶触发。)
使用晶体驱动器可以在水晶/卡片之间复制已保存的位置,或删除其中一个。
? 依赖项
本模组不自行产生 FE——请自备电源(Create 发电机或其他任何产生 FE 的模组)。
可选依赖:
- CC: Tweaked —— 启用跃迁驱动器的计算机外设功能。
安装 CC: Tweaked 后,跃迁驱动器可作为类型为 warp_drive 的外设使用——将计算机直接连接或通过有线调制解调器连接。
可用方法:getEnergy, getEnergyCapacity, getWarpCost, hasCrystal, getWarpPoints, getSelectedPoint, selectPoint, registerHere, renamePoint, warp, isCharging, getChargeSeconds。
warp() 开始充能而非瞬间跳跃,与在 GUI 中按下 Warp 完全一致,返回 true 或 false 以及原因字符串。
GitHub 仓库中包含两个示例程序:warp.lua 打印驱动器状态并跃迁至选定地点,warp_monitor.lua 在高级显示器上绘制触控界面。两者均为供编辑的起点而非完整程序——外设故意仅暴露数据和控件,因此界面由您自行设计。
完整的方法参考请参见 GitHub 上的 README。
⚙️ 配置
| 选项 |
默认值 |
描述 |
warpCostFE |
2,000,000 |
每次激活跃迁驱动器消耗的 FE |
warpChargeTicks |
60 (3秒) |
按下 Warp 与实际跳跃之间的延迟 |
warpParticleCount |
32 |
充能期间在飞船周围生成的粒子数量 |
warpDriveDisplayMode |
FE |
控制台屏幕显示的内容:FE、COUNTDOWN、COORDINATES 或 POINT_NAME |
memoryCardCapacity |
5 |
记忆卡可容纳的已保存位置数量(1–10) |
? 开发说明
本模组代码的很大一部分是在 AI(Claude)的帮助下编写的。
设计决策、测试和最终决定均由我做出,但我希望公开所使用的工具。
? 致谢
- Sable & Sable Companion by ryanhcode —— 本模组跃迁机制所基于的物理/子层级系统。
- Dimensional Sable by hollow_egg —— 跨维度子层级支持,直接用于实际的跃迁跳跃。
- Create Cosmonautics by the Cosmonautics Team.
- Create by the Create team.
- New Mod Icon
Author: Devina_X
Work: Create Cosmonautics Expansion
? 已知问题
- 跃迁驱动器/晶体驱动器的方块碰撞箱仍为简化的占位符。
欢迎提交错误报告和反馈——这是一个早期测试版!
源代码与问题追踪:GitHub~~~~
如果你对该模组有任何建议或发现 bug,可以在 cosmonautics 的 Discord 服务器 中告知我,并在专属频道中 @ .waco__!
Cosmonautics: Warp Drive
Warp your Sable-physicalized ships and stations to any recorded location — in
any dimension — using stored electrical power.
An addon for the Create + Cosmonautics ecosystem, built on Sable's
physics/sub-level system.
✨ Features
- Warp Drive — insert a Warp Crystal (or Memory Card), register the
drive's current location, pick a saved destination, and warp the entire
physicalized structure it's attached to — including across dimensions. The
console screen shows live info (FE, countdown, coordinates, or the selected
point's name — configurable).
- Warp Crystal — the data core. Only a Warp Crystal can actually trigger
a warp.
- Memory Card — a cheaper way to record locations without a trip to the
Moon. Registers and stores points just like a Warp Crystal, but can't
trigger a warp on its own — copy its points onto a Warp Crystal with a
Crystal Driver first. Storage capacity is configurable.
- Crystal Driver — copy a saved location from one Warp Crystal or Memory
Card onto another, or delete one you no longer need.
- Moon Crystal — a new resource found only in Cosmonautics' Moon
dimension. Mine the ore, then refine it with Create's Sand Paper.
- Hyperspace jump effect — a short charge-up before each warp, with a
screen-distortion effect (visible only to players actually riding the ship)
and a converging particle effect (visible to everyone nearby).
- Fully configurable: FE cost per warp, charge-up time, particle count,
console display mode, and Memory Card capacity.
- CC: Tweaked support — the Warp Drive works as a peripheral, so computers can read its status and drive it from Lua. Optional; the mod works fine without CC: Tweaked installed.
? How to use it
- Mine Moon Crystal Ore on the Moon (diamond pickaxe required) for
Raw Moon Crystal.
- Refine it into a Moon Crystal with Create's Sand Paper.
- Craft a Warp Crystal — or a cheaper Memory Card if you don't want
to make the trip yet — then a Warp Drive, and install the drive on a
Sable-physicalized structure (e.g. a Create airship).
- Insert the crystal/card and press Register Here to save that location.
- Fly elsewhere, register another location on the same (or a different)
crystal/card — rename entries from the Warp Drive's GUI to keep track of
them.
- Select a destination and press Warp. The drive spends FE, plays a
short hyperspace sequence, and moves the whole structure there. (Using a
Memory Card? Copy its points onto a Warp Crystal with a Crystal Driver
first — Warp only works from a Warp Crystal.)
Use a Crystal Driver to duplicate a saved location across crystals/cards,
or to delete one.
? Requirements
- NeoForge for 1.21.1
- Create
- Create Cosmonautics — provides the
Moon dimension, Titanium items, and the Dimensional Sable support this mod's
cross-dimension warp relies on
- Sable
- Dimensional Sable — usually
already present via Create Cosmonautics' own bundled copy
This mod does not generate FE on its own — bring your own power source
(Create generators, or any other FE-producing mod).
Optional:
- CC: Tweaked — enables the Warp Drive's computer peripheral.
With CC: Tweaked installed, a Warp Drive can be used as a peripheral of type warp_drive — attach a computer directly or over a wired modem.
Available methods: getEnergy, getEnergyCapacity, getWarpCost, hasCrystal, getWarpPoints, getSelectedPoint, selectPoint, registerHere, renamePoint, warp, isCharging, getChargeSeconds.
warp() begins the charge-up rather than jumping instantly, exactly like pressing Warp in the GUI, and returns either true or false plus a reason string.
Two example programs are included in the GitHub repository: warp.lua prints the drive's status and warps to a chosen point, and warp_monitor.lua draws a touch-controlled interface on an Advanced Monitor. Both are starting points to edit rather than finished programs — the peripheral deliberately exposes data and controls only, so the interface is yours to design.
Full method reference is in the README on GitHub.
⚙️ Configuration
| Option |
Default |
Description |
warpCostFE |
2,000,000 |
FE consumed per Warp Drive activation |
warpChargeTicks |
60 (3s) |
Delay between pressing Warp and the actual jump |
warpParticleCount |
32 |
Particles spawned around the ship while charging |
warpDriveDisplayMode |
FE |
What the console screen shows: FE, COUNTDOWN, COORDINATES, or POINT_NAME |
memoryCardCapacity |
5 |
How many saved locations a Memory Card can hold (1–10) |
? A note on development
Large parts of this mod's code were written with the help of AI (Claude).
Design decisions, testing, and final calls are mine, but I wanted to be
upfront about the tooling used.
? Credits
- Sable & Sable Companion by ryanhcode —
the physics/sub-level system this mod's warp mechanic is built on.
- Dimensional Sable by hollow_egg — cross-dimension sub-level support,
used directly for the actual warp jump.
- Create Cosmonautics by the Cosmonautics Team.
- Create by the Create team.
- New Mod Icon
Author: Devina_X
Work: Create Cosmonautics Expansion
? Known issues
- Block hitboxes for Warp Drive / Crystal Driver are still simplified
placeholders.
Bug reports and feedback welcome — this is an early beta!
Source & issue tracker: GitHub~~~~
If you have an suggestion/bug for the mod, you can let me know on the cosmonautics Discord server and ping .waco__ in the dedicated channel!
评论 0
登录后参与评分
还没有评论,来抢沙发吧