# SPDX-FileCopyrightText: 2021 AJCM-git <60196617+AJCM-git@users.noreply.github.com>
# SPDX-FileCopyrightText: 2022 Kara <lunarautomaton6@gmail.com>
# SPDX-FileCopyrightText: 2022 Paul Ritter <ritter.paul1@googlemail.com>
# SPDX-FileCopyrightText: 2022 metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 BombasterDS <115770678+BombasterDS@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 Ed <96445749+TheShuEd@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 Gyrandola <pasta.frollagg@gmail.com>
# SPDX-FileCopyrightText: 2024 Ilya246 <57039557+Ilya246@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 lapatison <100279397+lapatison@users.noreply.github.com>
# SPDX-FileCopyrightText: 2025 Aiden <28298836+Aidenkrz@users.noreply.github.com>
#
# SPDX-License-Identifier: AGPL-3.0-or-later
# TODO once tiles can be smoothed and carpets ported over to that, add them to the FloorTile outputs
- type: entity
  name: carpet
  parent: FloorTileItemBase
  id: FloorCarpetItemRed
  suffix: Red
  components:
  - type: Sprite
    state: carpet-red
  - type: Item
    heldPrefix: carpet-red
  - type: FloorTile
    outputs:
      - Plating
  - type: Stack
    stackType: FloorCarpetRed
  - type: SpawnAfterInteract #Nuke after convert to FloorTile
    prototype: Carpet
    doAfter: 0.5
    removeOnInteract: true
  - type: PhysicalComposition #Goobstation - Recycle update
    materialComposition:
      Cloth: 25

- type: entity
  parent: FloorCarpetItemRed
  id: FloorCarpetItemBlack
  suffix: Black
  components:
  - type: Sprite
    state: carpet-black
  - type: Item
    heldPrefix: carpet-black
  - type: Stack
    stackType: FloorCarpetBlack
  - type: SpawnAfterInteract #Nuke after convert to FloorTile
    prototype: CarpetBlack
    doAfter: 0.5
    removeOnInteract: true

- type: entity
  parent: FloorCarpetItemRed
  id: FloorCarpetItemBlue
  suffix: Blue
  components:
  - type: Sprite
    state: carpet-blue
  - type: Item
    heldPrefix: carpet-blue
  - type: Stack
    stackType: FloorCarpetBlue
  - type: SpawnAfterInteract #Nuke after convert to FloorTile
    prototype: CarpetBlue
    doAfter: 0.5
    removeOnInteract: true

- type: entity
  parent: FloorCarpetItemRed
  id: FloorCarpetItemGreen
  suffix: Green
  components:
  - type: Sprite
    state: carpet-green
  - type: Item
    heldPrefix: carpet-green
  - type: Stack
    stackType: FloorCarpetGreen
  - type: SpawnAfterInteract #Nuke after convert to FloorTile
    prototype: CarpetGreen
    doAfter: 0.5
    removeOnInteract: true

- type: entity
  parent: FloorCarpetItemRed
  id: FloorCarpetItemOrange
  suffix: Orange
  components:
  - type: Sprite
    state: carpet-orange
  - type: Item
    heldPrefix: carpet-orange
  - type: Stack
    stackType: FloorCarpetOrange
  - type: SpawnAfterInteract #Nuke after convert to FloorTile
    prototype: CarpetOrange
    doAfter: 0.5
    removeOnInteract: true

- type: entity
  parent: FloorCarpetItemRed
  id: FloorCarpetItemSkyBlue
  suffix: Sky Blue
  components:
  - type: Sprite
    state: carpet-skyblue
  - type: Item
    heldPrefix: carpet-skyblue
  - type: Stack
    stackType: FloorCarpetSkyBlue
  - type: SpawnAfterInteract #Nuke after convert to FloorTile
    prototype: CarpetSBlue
    doAfter: 0.5
    removeOnInteract: true

- type: entity
  parent: FloorCarpetItemRed
  id: FloorCarpetItemPurple
  suffix: Purple
  components:
  - type: Sprite
    state: carpet-purple
  - type: Item
    heldPrefix: carpet-purple
  - type: Stack
    stackType: FloorCarpetPurple
  - type: SpawnAfterInteract #Nuke after convert to FloorTile
    prototype: CarpetPurple
    doAfter: 0.5
    removeOnInteract: true

- type: entity
  parent: FloorCarpetItemRed
  id: FloorCarpetItemPink
  suffix: Pink
  components:
  - type: Sprite
    state: carpet-pink
  - type: Item
    heldPrefix: carpet-pink
  - type: Stack
    stackType: FloorCarpetPink
  - type: SpawnAfterInteract #Nuke after convert to FloorTile
    prototype: CarpetPink
    doAfter: 0.5
    removeOnInteract: true

- type: entity
  parent: FloorCarpetItemRed
  id: FloorCarpetItemCyan
  suffix: Cyan
  components:
  - type: Sprite
    state: carpet-cyan
  - type: Item
    heldPrefix: carpet-cyan
  - type: Stack
    stackType: FloorCarpetCyan
  - type: SpawnAfterInteract #Nuke after convert to FloorTile
    prototype: CarpetCyan
    doAfter: 0.5
    removeOnInteract: true

- type: entity
  parent: FloorCarpetItemRed
  id: FloorCarpetItemWhite
  suffix: White
  components:
  - type: Sprite
    state: carpet-white
  - type: Item
    heldPrefix: carpet-white
  - type: Stack
    stackType: FloorCarpetWhite
  - type: SpawnAfterInteract #Nuke after convert to FloorTile
    prototype: CarpetWhite
    doAfter: 0.5
    removeOnInteract: true
