Inventory & trade
How to sell items, drop junk, and route Bio samples
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 have | Correct route | Result |
|---|---|---|
| A normal sellable item | Shop → sell_all | The stack is sold for credits. |
| A Biology sample | Bio Exchange | The sample follows the Biology order system, not the normal Shop. |
| Junk you want gone | Inventory → drop_all | The 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.

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.
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, anddrop_allstill have those names. - Never replace a failed sale with
drop_allunless 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
- Developer reply explaining Shop sales, Bio Exchange items,
sell_all, and permanentdrop_all. - Official Code: Terraform Steam page for the game's programmable component and automation context.