- type: entity
  parent: BaseItem
  id: TapePlayer
  name: tape player
  description: A revolution in the art of music, the main enemy of musicians.
  components:
  - type: Appearance
  - type: Sprite
    sprite: _Sunrise/Objects/Devices/tape_player.rsi
    layers:
    - state: "off"
      map: ["enum.TapePlayerVisualLayers.Base"]
  - type: TapePlayer
    rolloffFactor: 3
    maxDistance: 10
    tapeSlot:
      insertSound: /Audio/_Sunrise/TapePlayer/insert_tape.ogg
      ejectSound: /Audio/_Sunrise/TapePlayer/eject_tape.ogg
      whitelist:
        components:
        - MusicTape
    onState: on
    offState: off
    buttonSound: /Audio/_Sunrise/TapePlayer/switch.ogg
  - type: Item
    size: Small
  - type: ItemSlots
  - type: ContainerContainer
    containers:
      tape: !type:ContainerSlot
  - type: ActivatableUI
    key: enum.TapePlayerUiKey.Key
  - type: UserInterface
    interfaces:
      enum.TapePlayerUiKey.Key:
        type: TapePlayerBoundUserInterface
