介绍
CC:Warium
CC:Warium is a ComputerCraft/CC:Tweaked addon for Minecraft (Forge 1.20.1) that integrates with the Warium mod, giving players programmable control over Warium’s vehicle control node directly from Lua. With CC:Warium, you can wrap Warium’s block(s) as peripherals and issue commands like pitch, yaw, roll, throttle, landing gear, and trigger—all controllable via computer programs.
🎯 Key Features
Peripheral Exposure: Allows the “vehicle control node” block (from Warium) to be used as a CC/Tweaked peripheral. That means you can place a computer, wrap the block, and call methods to control it.
Lua Function Interface:
CC:Warium exposes convenient functions via Lua, such as:
setNodePitch() — control the pitch of the vehicle node
setNodeYaw()
setNodeRoll()
setNodeThrottle()
setNodeLandingGear()
setNodeTrigger(…, )
getNode() -get stuff
Modular and Expandable: While starting with a specific block (vehicle control node), the architecture allows for adding support for more Warium blocks or more control functions in the future.
💡** Benefits & Use Cases**
Automation & Scripting: Players who enjoy creating in-game automation can write scripts that adjust vehicle behavior based on world state (e.g. adjust pitch when nearing terrain, deploy landing gear automatically, etc.).
Remote Control: Use computers to remotely operate or fine-tune vehicles, possibly from a distance, or integrate with monitoring systems.
Custom Functionality: Because Lua is programmable, users can build complex control flows (e.g. safety checks, limits, dynamic responses) rather than just flipping switches.
⚠️ Limitations & Considerations
Accuracy of Control: Since functions like setNodePitch(…) take only 1, 0, or -1, control is coarse. More granularity (e.g. any double value) might need further implementation.
Dependency on Warium’s API/NBT: If Warium updates how its block entity stores or handles these values, CC:Warium may require updates to remain compatible.
Only Certain Blocks: For now support is limited to specific blocks (vehicle control node). Expanding to other Warium blocks requires additional code.
Permissions & Safety: Since the mod allows writing to block entity data, ensure only trusted code/computers have access to avoid accidental/world-breaking edits.
🚀 Future Possibilities
Allow finer control (floating-point values for pitch/yaw rather than just ±1/0).
Support more Warium blocks (e.g. weapon systems, sensors) if exposed.
Add read functions (get current pitch, yaw, etc.) so Lua scripts can make decisions based on state.
Add configuration options so players or modpack makers can whitelist which blocks or functions are exposed, or limit value ranges for safety.
📋 Summary
CC:Warium bridges programmable logic (via CC/Tweaked) with the mechanical/vehicle functionality of Warium. It empowers players to script, automate, and control vehicles at a more granular level, opening possibilities for creative contraptions, remote control setups, and smarter in-game behavior.
常见问题
CC:Warium 支持哪些 Minecraft 版本?
CC:Warium 支持 Minecraft Java 版 1.20.1,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。
CC:Warium 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。
评论
登录后评论和评分