CubeBlocks

From Space Engineers Wiki
Jump to navigation Jump to search

Wrapper

In a .sbc file, all blocks are defined in this layout:

<?xml version="1.0"  encoding="utf-8"?>
<Definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <CubeBlocks>
    <!-- One or more block entries here. -->
  </CubeBlocks>
</Definitions>

A block entry would look something like:

    <Definition xsi:type="...">
      <Id>
        <TypeId>...</TypeId>
        <SubtypeId>...</SubtypeId>
      </Id>
      <!-- various elements -->
    </Definition>

However you shouldn't create definitions from scratch like this.
Instead, find the .sbc that has your wanted type in the game folder and copy it to your mod folder, then modify that with the help of the documentation below for that definition.
And don't forget to remove other blocks from the file that you do not wish to override.

All Block Types

First read about TypeId vs xsi:type to have an understanding of the difference.

This is the list of all block types (<TypeId>) paired with their supported definition (xsi:type).

xsi:type

The xsi:type is mentioned inside the definition page.
If the page doesn't exist, you can generate the name from the page name by removing the space and prefix it with "MyObjectBuilder_".
For example: "ExhaustBlock Definition" -> "MyObjectBuilder_ExhaustBlockDefinition".
While the CubeBlock Definition doesn't need an xsi:type, it also doesn't hurt either.

Blocks Table

The table can be sorted by the header to help find all types that support a certain feature.

Pages on the TypeId offer information about the type itself, like what empties it requires in the model.
If the page doesn't exist, check the definition page for hints. You can also look at empties in-game using F11 menu's Debug Draw + Draw Dummies, and/or import the vanilla .fbx from the Mod SDK.

Definition pages are for the SBC elements, and they're also the xsi:type that the specific TypeId should use.

The Finding SBC guide can help find the TypeId of a vanilla block.

Legend

  • Inherent = Can inherently connect to conveyor network (model still needs ports).
  • EntityComp. = ConveyorEndpointComponent can be given to blocks to add conveyor support.
  • LCD = Supports having LCDs (<ScreenAreas>), see Screens tutorial for more info.
  • LCD ModFix = Can use Fix LCD support mod.
  • LCD ModFix+Caution = Can use the above mod but it might break some functionality (because the block already has a custom render component).
  • - = Does not have that thing.

Tip: Can sort by multiple columns using shift+click.

TypeId SBC definition Conveyor LCD Comment
CubeBlockCubeBlock DefinitionEntityComp.-Decorative
EmissiveBlockCubeBlock DefinitionEntityComp.-
TerminalBlockCubeBlock DefinitionEntityComp.-
ControlPanelCubeBlock DefinitionEntityComp.-Not used by vanilla, TerminalBlock is used instead
FunctionalBlockFunctionalBlock DefinitionEntityComp.LCD ModFixBase with on/off; used by Farm Plot and Algae Farm
ExhaustBlockExhaustBlock DefinitionEntityComp.LCD ModFix
HeatVentBlockHeatVentBlock DefinitionEntityComp.LCD ModFix+Caution
Ladder2CubeBlock DefinitionEntityComp.-Climbable
KitchenKitchen DefinitionEntityComp.-Decorative
PassageCubeBlock DefinitionEntityComp.-Decorative
PlanterPlanter DefinitionEntityComp.-Decorative
DoorDoor DefinitionEntityComp.LCD ModFix2 subparts slide outwards
AdvancedDoorAdvancedDoor DefinitionEntityComp.LCD ModFixHighly customizable
AirtightHangarDoorAirtightHangarDoor DefinitionEntityComp.LCD ModFixAny number of stacked sliding subparts, like a piston
AirtightSlideDoorAirtightSlideDoor DefinitionEntityComp.LCD ModFix2 subparts rotating like bus doors
ConveyorCubeBlock DefinitionInherent-Conveyor hub
ConveyorConnectorCubeBlock DefinitionInherent-Conveyor tube
ConveyorSorterConveyorSorter DefinitionInherentLCD ModFix
ShipConnectorShipConnector DefinitionInherentLCD ModFix
CollectorPoweredCargoContainer DefinitionInherentLCD ModFix
CargoContainerCargoContainer DefinitionInherent-
OxygenFarmOxygenFarm DefinitionInherentLCD ModFix (broken)
OxygenGeneratorOxygenGenerator DefinitionInherentLCD ModFixO2/H2 generator
OxygenTankGasTank DefinitionInherentLCD ModFixHydrogen tanks too
AirVentAirVent DefinitionInherentLCD ModFix+Caution
BatteryBlockBatteryBlock DefinitionEntityComp.LCD ModFix
HydrogenEngineHydrogenEngine DefinitionInherentLCD ModFix+Caution
ReactorReactor DefinitionInherentLCD ModFix
SolarPanelSolarPanel DefinitionEntityComp.LCD ModFix (broken)
WindTurbineWindTurbine DefinitionEntityComp.LCD ModFix+Caution
InteriorLightLightingBlock DefinitionEntityComp.LCD ModFix+CautionPoint light
ReflectorLightReflectorBlock DefinitionEntityComp.LCD ModFix+CautionSpotlight
SearchlightSearchlight DefinitionEntityComp.LCD ModFix+CautionLight on a turret
ButtonPanelButtonPanel DefinitionEntityComp.LCDs
TextPanelTextPanel DefinitionEntityComp.LCDsSingle LCD panel
LCDPanelsBlockLCDPanelsBlock DefinitionEntityComp.LCDs
CockpitCockpit DefinitionInherentLCDsAlso passenger seats, couches, and anything else you can sit in
CryoChamberCryoChamber DefinitionInherentLCDs
GyroGyro DefinitionEntityComp.LCD ModFix
ThrustThrust DefinitionInherentLCD ModFix+Caution
LandingGearLandingGear DefinitionEntityComp.LCD ModFix
ParachuteParachute DefinitionInherentLCD ModFix
JumpDriveJumpDrive DefinitionEntityComp.LCD ModFix (broken)
CameraBlockCameraBlock DefinitionEntityComp.LCD ModFix
RemoteControlRemoteControl DefinitionEntityComp.-
BasicMissionBlockBasicMissionBlock DefinitionEntityComp.LCD ModFixAI Basic (Task)
FlightMovementBlockFlightMovementBlock DefinitionEntityComp.LCD ModFix
PathRecorderBlockPathRecorderBlock DefinitionEntityComp.LCD ModFix
OffensiveCombatBlockOffensiveCombatBlock DefinitionEntityComp.LCD ModFix
DefensiveCombatBlockDefensiveCombatBlock DefinitionEntityComp.LCD ModFix
InteriorTurretLargeTurretBase DefinitionEntityComp.LCD ModFix+Caution
LargeGatlingTurretLargeTurretBase DefinitionInherentLCD ModFix+CautionDon't mind the Large in the names
LargeMissileTurretLargeTurretBase DefinitionInherentLCD ModFix
SmallGatlingGunWeaponBlock DefinitionInherentLCD ModFix+CautionDon't mind the Small in the names
SmallMissileLauncherWeaponBlock DefinitionInherentLCD ModFix
SmallMissileLauncherReloadWeaponBlock DefinitionInherentLCD ModFix
WarheadWarhead DefinitionEntityComp.-
DecoyDecoy DefinitionEntityComp.LCD ModFix
TargetDummyBlockTargetDummyBlock DefinitionInherentLCD ModFix (broken)Destructible subparts that can respawn
TurretControlBlockTurretControlBlock DefinitionEntityComp.LCDsCustom Turret Controller
BeaconBeacon DefinitionEntityComp.LCD ModFix
RadioAntennaRadioAntenna DefinitionEntityComp.LCD ModFix
LaserAntennaLaserAntenna DefinitionEntityComp.LCD ModFix
TransponderBlockTransponderBlock DefinitionEntityComp.LCD ModFixAction Relay
BroadcastControllerBroadcastController DefinitionEntityComp.LCD ModFix
EmotionControllerBlockEmotionControllerBlock DefinitionEntityComp.LCDs
EventControllerBlockEventControllerBlock DefinitionEntityComp.LCD ModFix
TimerBlockTimerBlock DefinitionEntityComp.LCD ModFix
SensorBlockSensorBlock DefinitionEntityComp.LCD ModFix
MyProgrammableBlockProgrammableBlock DefinitionEntityComp.LCDs
SoundBlockSoundBlock DefinitionEntityComp.LCD ModFix
JukeboxJukebox DefinitionEntityComp.LCDs
ExtendedPistonBaseExtendedPistonBase DefinitionInherentLCD ModFix
PistonTopCubeBlock DefinitionInherent-Piston head
MotorStatorMotorStator DefinitionInherentLCD ModFixRotors and hinges
MotorRotorCubeBlock DefinitionEntityComp.-Rotor/hinge's top part
MotorAdvancedStatorMotorAdvancedStator DefinitionInherentLCD ModFixRotors and hinges
MotorAdvancedRotorCubeBlock DefinitionInherent-Rotor/hinge's top part
MotorSuspensionMotorSuspension DefinitionEntityComp.LCD ModFix
WheelCubeBlock DefinitionEntityComp.-Suspension wheels and standalone wheels
RealWheelCubeBlock DefinitionEntityComp.-Not used by any vanilla block
OreDetectorOreDetector DefinitionEntityComp.LCD ModFix
DrillShipDrill DefinitionInherentLCD ModFix+Caution
ShipGrinderShipGrinder DefinitionInherentLCD ModFix+Caution
ShipWelderShipWelder DefinitionInherentLCD ModFix
ProjectorProjector DefinitionEntityComp.LCDsFor either buildable or miniature projections
MergeBlockMergeBlock DefinitionEntityComp.LCD ModFix
RefineryRefinery DefinitionInherentLCDs
AssemblerAssembler DefinitionInherentLCDs
UpgradeModuleUpgradeModule DefinitionEntityComp.LCD ModFix
SurvivalKitSurvivalKit DefinitionInherentLCDs
MedicalRoomMedicalRoom DefinitionInherentLCDs
GravityGeneratorGravityGenerator DefinitionEntityComp.LCD ModFix
GravityGeneratorSphereGravityGeneratorSphere DefinitionEntityComp.LCD ModFix
VirtualMassVirtualMass DefinitionEntityComp.LCD ModFixArtificial mass
SpaceBallSpaceBall DefinitionEntityComp.LCD ModFix
SafeZoneBlockSafeZoneBlock DefinitionInherentLCDs
StoreBlockStoreBlock DefinitionInherentLCDs
VendingMachineVendingMachine DefinitionInherentLCDs
ContractBlockContractBlock DefinitionInherentLCDs