- type: entity
  id: chem_master
  name: ChemMaster 4000
  description: An industrial grade chemical manipulator with pill and bottle production included.
  placement:
    mode: SnapgridCenter
  components:
  - type: Sprite
    sprite: Constructible/Power/mixer.rsi
    layers:
    - state: mixer_empty
    - state: mixer_screens
      shader: unshaded
  - type: Icon
    sprite: Constructible/Power/mixer.rsi
    state: mixer_loaded
  - type: ChemMaster
  - type: PowerReceiver
  - type: Clickable
  - type: InteractionOutline
  - type: Anchorable
  - type: Physics
    mass: 25
    anchored: true
    shapes:
    - !type:PhysShapeAabb
      bounds: "-0.4,-0.25,0.4,0.25"
      layer:
      - Opaque
      - Impassable
      - MobImpassable
      - VaultImpassable
  - type: SnapGrid
    offset: Center
  - type: Damageable
  - type: Destructible
    thresholds:
      50:
        behaviors:
        - !type:SpawnEntitiesBehavior
          spawn:
            chem_master_broken:
              min: 1
              max: 1
        - !type:DoActsBehavior
          acts: [ "Destruction" ]
  - type: UserInterface
    interfaces:
    - key: enum.ChemMasterUiKey.Key
      type: ChemMasterBoundUserInterface
  - type: Pullable

- type: entity
  id: chem_master_broken
  name: ChemMaster 4000 [Broken]
  description: A broken industrial grade chemical manipulator.
  abstract: true
  components:
  - type: Sprite
    sprite: Constructible/Power/mixer.rsi
    layers:
    - state: mixer_empty
    - state: mixer_screen_broken
      shader: unshaded
  - type: Icon
    sprite: Constructible/Power/mixer.rsi
    state: mixer_broken
  - type: Clickable
  - type: InteractionOutline
  - type: Anchorable
  - type: Physics
    mass: 25
    anchored: true
    shapes:
    - !type:PhysShapeAabb
      bounds: "-0.4,-0.25,0.4,0.25"
      layer:
      - Opaque
      - Impassable
      - MobImpassable
      - VaultImpassable
  - type: SnapGrid
    offset: Center
  - type: Damageable
  - type: Destructible
    thresholds:
      25:
        behaviors:
        - !type:SpawnEntitiesBehavior
          spawn:
            SteelSheet1:
              min: 1
              max: 1
        - !type:DoActsBehavior
          acts: [ "Destruction" ]
  - type: UserInterface
    interfaces:
    - key: enum.ChemMasterUiKey.Key
      type: ChemMasterBoundUserInterface
  - type: Pullable
