HomeJavaModsAd Astra Cargo Rockets
Ad Astra Cargo Rockets
Ad Astra Cargo Rockets — screenshot 1
Requires Fabric API Requires F-Tech: Core

EARLY APLPHA!

This mod adds automated rockets you can use to carry cargo between planets. CC:Tweaked computers are used to control the rockets using the API below:

Rocket Launchpad Lua API

This API allows you to control a rocket launchpad from a CC:Tweaked computer. It provides functions to launch rockets, manage inventories, and check energy levels.


Connecting

You must connect the computer to the central block of the launch pad to access the below methods. Connecting to the outer blocks will allow you to access the generic inventory methods.


📦 Inventory Slot Indexing


🧨 launch(planet)

Attempts to launch a rocket to the specified planet. (See getValidDestinations)

Parameters

Errors


📥 moveItemsFromRocketToLaunchPad(rocketSlot, launchPadSlot)

Moves an item from the rocket's inventory to the launchpad's inventory.

Parameters

Errors


📤 moveItemsFromLaunchPadToRocket(launchPadSlot, rocketSlot)

Moves an item from the launchpad's inventory to the rocket's inventory.

Parameters

Errors


getEnergyRequiredForLaunch()

Returns the amount of energy required to launch the rocket.

Returns


🔋 getEnergy()

Returns the current stored energy in the launchpad.

Returns


🔋 getMaxEnergy()

Returns the maximum energy capacity of the launchpad.

Returns


🌍 getValidDestinations()

Returns a table of valid destination planet names, with the key being the planet and the value being the required rocket tier to reach it.

Returns


📦 listLaunchPadInventory()

Returns the current non-empty inventory of the launchpad.

Returns


📥 listLaunchPadInputSlotIndexes()

Lists which slot indexes are considered input slots. These are the slots hoppers and other item transportation mods can insert into.

Returns


📤 listLaunchPadOutputSlotIndexes()

Lists which slot indexes are considered output slots. These are the slots hoppers and other item transportation mods can extract from.

Returns


🚀 isRocketPresent()

Checks whether a rocket is present on the launchpad.

Returns


🚀 listRocketInventory()

Returns the current non-empty inventory of the rocket.

Returns


Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more