Skip to content

About

Sector Space mod: searchable window to spawn any item from the game database into ship cargo.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

ItemSpawner

Banner

A mod for Sector Space that adds a searchable “creative mode” window listing every item in the game database. Pick a row, set a quantity, and spawn the stack straight into your ship's cargo.

It is an SSFML / Fabric-style mixin mod that hooks into the game at runtime, so no game files are modified permanently.

Source: github.com/jpreed00/ItemSpawner

What it does

  • Press backtick / grave (the key left of 1, default) to open or close the Item Spawner window.
  • The left pane lists every item, color-coded by type, with columns for Name, Type, and Value.
  • Search uses the cargo-native filter bar (Filters icon, sort, text field, clear-X). The Filters icon opens the game's own FilterQuickMenu.
  • Click a row to select it. A quantity field and Spawn button inject that stack into Player.ship.cargo using the game's own add-to-cargo path (so it stacks correctly).
  • The right pane shows the game's own item detail rendering (icon + colored name, type-specific stats, description) for the hovered row, falling back to the selected row.

How it works (and why it's light on performance)

  • The only per-frame code is a single key check in game.HeadsUpDisplay.update to detect the toggle key.
  • The catalog is built once from _database.ItemDatabase (every item the game knows about, including ones other mods register).
  • While the window is closed, the mod does effectively nothing. While it is open, drawing and hit-testing are confined to the list / details panes.

This is a cheat / creative tool — it does not change drop tables or markets.

Requirements

  • Sector Space >= 0.6.0.2 (may work with older versions; only tested on this one).
  • SSFML (the Sector Space Fabric Mod Loader) with Fabric Loader >= 0.18.4.
  • JDK 25+ (only needed to build from source, not to play).

Installation (players)

  1. Download itemspawner.jar from GitHub Releases or build from source.
  2. Copy it into the mods\ folder inside your Sector Space install directory, e.g.:
    ...\Steam\steamapps\common\Sector Space\mods\itemspawner.jar
    
  3. Launch Sector Space (with SSFML installed). The mod loads automatically.

Building from source

The mod compiles against the game's own jars, so the project folder is expected to live inside your Sector Space install directory (alongside Sector Space.jar, SSFML.jar, and libs\):

Sector Space\
├─ Sector Space.jar
├─ SSFML.jar
├─ libs\*.jar
├─ mods\
└─ ItemSpawner\        <- this repo
   ├─ itemspawner\mixin\*.java
   ├─ code\window\*.java
   ├─ code\store\*.java
   ├─ fabric.mod.json
   └─ itemspawner.mixins.json
git clone https://github.com/jpreed00/ItemSpawner.git

1. Point to your JDK

Make sure a JDK 25+ javac/jar is on your PATH, or note the path to its bin folder (the bundled Makefile defaults to D:\Java\jdk-25.0.4.1).

2. Build

From the ItemSpawner folder:

make

That compiles the sources against the game jars one directory up and packages ..\mods\itemspawner.jar, ready to load. make run will also launch the game.

From the Sector Space directory, make builds every mod that has a Makefile.

To build by hand instead:

javac -encoding UTF-8 -cp "../Sector Space.jar;../SSFML.jar;../libs/*" -d build/classes itemspawner/mixin/*.java code/window/*.java code/store/*.java
jar --create --file ../mods/itemspawner.jar -C build/classes . -C . fabric.mod.json -C . itemspawner.mixins.json

On Linux/macOS, use : instead of ; as the classpath separator.

Project layout

Path Purpose
itemspawner/mixin/ Mixin: toggle-key check on the HUD update loop
code/window/ The Item Spawner window (list + details pane)
code/store/ Catalog built from the item database
fabric.mod.json Mod metadata, dependencies, and mixin registration
itemspawner.mixins.json Mixin configuration

License

Released under the MIT License.

About

Sector Space mod: searchable window to spawn any item from the game database into ship cargo.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages