Skip to content

Commands

DaFuqs edited this page Nov 5, 2024 · 10 revisions

Spectrum comes with a list of commands for debugging and testing for modpack makers or just for OPs to play around with. To view a list of all available ones, type /spectrum.

For Players

/spectrum config

Required permission level: 0

Prints the server-side config to the chat. Nice way to check config edits in modpacks when you are a player.

For Modpack Creators / Server Admins

/spectrum sanity <<namespace>>

Required permission level: 2

Since Spectrum's progression system is notably complex, you as a modpack maker can use this command to run a few checks against the registered recipes and some other components. Notably:

  1. For recipes that have a required advancement set, it checks that the advancement exists (otherwise making it impossible to unlock that recipe)
  2. For Pigment Pedestal recipes, it checks that the gemstone powders in use are available at that tier
  3. Missing loot tables
  4. Missing translations of various kinds (blocks, items, recipe groups, ...)
  5. Recipes that have unlock advancements that do not exist
  6. Items not in any creative tab
  7. ...and much more

This command also lists the amount of gemstone powder used in all recipes for each pedestal tier. This can be used to determine which color is used the most/least often to add some balance.

If the namespace is omitted, it checks the spectrum namespace. Though you can give it a different mod id to check.

/spectrum dump_registries

Required permission level: 2 Dumps all entries of all registries to a subfolder called registry_dump, one file per registry.

/spectrum dump_tags

Required permission level: 2 Dumps all entries of all tags to a subfolder called tag_dump.

/spectrum primordial_fire <<targets>> <<duration in ticks>>

Required permission level: 2

Sets the selected targets on primordial fire for <<duration>> ticks.

/spectrum spawn_shooting_star <<targets>> <<amount>>

Required permission level: 2

Spawns <<amount>> shooting stars for the target entities. This applies regardless of whether a targeted player has unlocked the required progression. To best see the shooting stars, use the command in the night with night vision.

Clone this wiki locally