About Definition Extension API
From Steam WorkshopAPI mod to add a custom <ModExtensions> Tag to any SBC file. Definitions can then be loaded by any mod using DefinitionExtensionsAPI.cs (included in this mod) and adding this mod as a dependency.…
API mod to add a custom <ModExtensions> Tag to any SBC file. Definitions can then be loaded by any mod using DefinitionExtensionsAPI.cs (included in this mod) and adding this mod as a dependency.
Block mods do not need to add this mod as a dependency, just have a text file named DefinitionExtensions.txt in the root of the Data directory listing every sbc or xml file that contains definition extensions.
Supported definitions: CubeBlock Components PhysicalItems PlanetGeneratorDefinitions EnvironmentDefinition
Example tag and tag types below: Multiple tags of the same type are supported, tags with the same "Name" and type will override each other, mods can mod other mod's tags, mod load order determines what is precedent.
<ModExtensions>
<Group Name="TestGroup">
<Text Name="sTest" Value="Test String" /> <!-- strings -->
<Integer Name="Test" Value="10" /> <!-- integer values (whole numbers) Max value 9223372036854775807-->
<Boolean Name="bTest" Value="false" /> <!-- true or false -->
<Decimal Name="dTest" Value="1" /> <!-- any decimal number ex. 0.14333333 -->
<Vector2I Name="v2iTest" X="1" Y="1" /> <!-- Integer valued 2 axis vector -->
<Vector2D Name="v2dTest" X="1" Y="1" /> <!-- Decimal valued 2 axis vector -->
<Vector3I Name="v3iTest" X="1" Y="1" Z="1" /><!-- Integer valued 3 axis vector -->
<Vector3D Name="v3dTest" X="1" Y="1" Z="1" /> <!-- Decimal valued 3 axis vector -->
<Color Name="cTest" R="255" G="0" B="0" A="255" /><!-- Color in R G B A, values can be between 0 and 255-->
</Group>
</ModExtensions>
Mod now also supports custom gamelogic loading. This still is in the experimental stage, so please report any issues on my discord. Format is below. Mods can register a gamelogic component to the name and it will be loaded for any block that includes the SBC tag with the same name.
<ModExtensions>
<ModComponents>
<GameLogicComponent Name="TestComponent" Enabled="true" /> <!-- Enabled is by default true, but can be set to false to disable a custom gamelogic component-->
</ModComponents>
<Group Name="TestGroup">
<Text Name="sTest" Value="Test String" /> <!-- strings -->
<!-- etc -->
</Group>
</ModExtensions>
API also provides an easy method for deploying terminal controls with your MyTSSCommon script! See the API files for details or ask on my discord or in the Keen discord in #modding-programming.
Mods looking to implement this mod and read the assigned values via script can copy Steam\steamapps\workshop\content\244850\2756894170\Data\Scripts\DefinitionExtensions\DefinitionExtensionsAPI.cs into their mod.
Wiki page with examples: SE Wiki (Thanks Digi!)
Questions? Help? Discord link is below.
Discord
Highlights
From source dataFootprint
A 182 KB download, rated a light load on a server.
Last update
Its author last shipped an update 3 yr ago.
Definition Extension API on Nxeon
From our catalogue- One-click install
- Not available. One-click install isn't available for this game's mods yet. Download it and upload it to your server in Files.
- Server load
- light
- Smallest plan we suggest
- Space Engineers — 8 GB (8 GB RAM). This follows our own load rating above, not a benchmark.
- Latest build
- 2024-01-28, released 2024-01-28, 182 KB
Game versions by loader
| Loader | Game versions | Newest |
|---|---|---|
| Workshop |
From 1 recorded build of Definition Extension API.
Run Definition Extension API on a Space Engineers server
Deploy a server above, then upload the file in Files.
What kind of mod it is
From the catalogLibraries & compatibility
Foundations and fixes other mods build on. Usually installed because something else needs it.
Compatibility
- Game
- Space Engineers
- File size
- 182 KB
Verified at the source
- ✓Steam WorkshopOfficial listing, checked 2026-10-10Open ↗
- ✓AuthorDraygoKorvan, as published on Steam Workshop
- ✓LicenseNot published by the sourceFree
