Skip to content

Inventory & trade

How to sell items, drop junk, and route Bio samples

Last checked September 14, 2026 · Recheck the call names in current Early Access autocomplete

The short answer

Choose by what you want to happen. Use the Shop in an in-game script to sell a normal item for credits. Use Inventory only when you want to delete junk permanently. Take Biology samples to the Bio Exchange instead of the Shop.

The script examples are below. Replace item_id with the exact ID shown in your current game. Dropping gives no credits and cannot be undone.

On this page

1. Pick what you want to happen

What you haveCorrect routeResult
A normal sellable itemShop → sell_allThe stack is sold for credits.
A Biology sampleBio ExchangeThe sample follows the Biology order system, not the normal Shop.
Junk you want goneInventory → drop_allThe stack is permanently deleted for no credits.

If the game returns not_sellable, do not delete the item just to clear the error. Check whether it belongs in another system—Biology samples, for example, go to the Bio Exchange.

Code: Terraform research catalog with Inventory and Shop navigation plus separate infrastructure components
Use the left-side Inventory and Shop entries to find the right system. The in-game script examples are directly below.Open full image ↗

2. Sell a normal item through the Shop

Paste these two lines into the in-game script that manages the item. Replace item_id with the exact ID from your Inventory or current in-game docs:

shop = get_component("shop")
shop.sell_all("item_id")

The first line selects the Shop. The second sells the matching stack, but only if the game treats that item as sellable. After the script runs, check that the stack left your Inventory and your credits increased.

3. Permanently drop an unwanted stack

Use this only when you are sure the entire matching stack is junk. As above, replace item_id with the exact current ID:

inventory = get_component("inventory")
inventory.drop_all("item_id")

The first line selects Inventory. The second deletes every matching item in that stack.

There is no payout and no undo. Copy the current item ID from the game instead of typing a display name from memory.

4. Route Biology samples to the Bio Exchange

Biology samples are not normal Shop stock. If a sample produces not_sellable, stop changing the Shop script and return to the Biology order and Bio Exchange workflow.

Current public instructions confirm that samples go to the Bio Exchange, but they do not show a complete automation script for the transfer. Use the current component docs and autocomplete for that step.

Why you see not_sellable—or nothing happens

  • Make sure the item is in your main Inventory.
  • Copy the exact item ID; the name shown on screen may not be the script ID.
  • Check whether the item belongs in another system instead of the Shop.
  • Use current Early Access autocomplete to confirm shop, inventory, sell_all, and drop_all still have those names.
  • Never replace a failed sale with drop_all unless you genuinely want to delete the whole stack.

Before you run an Early Access script

These calls were described around Demo 0.1.12 and the launch build. Early Access can rename UI labels and script calls, so let the current in-game autocomplete confirm the spelling before you run them.

The important distinction is the result you want: Shop sells for credits, Inventory deletes without payment, and Biology samples go through the Bio Exchange.

Sources for this guide