# SPDX-FileCopyrightText: 2025 Aiden <28298836+Aidenkrz@users.noreply.github.com>
# SPDX-FileCopyrightText: 2025 Aviu00 <93730715+Aviu00@users.noreply.github.com>
# SPDX-FileCopyrightText: 2025 GoobBot <uristmchands@proton.me>
# SPDX-FileCopyrightText: 2025 Ilya246 <57039557+Ilya246@users.noreply.github.com>
# SPDX-FileCopyrightText: 2025 Ilya246 <ilyukarno@gmail.com>
#
# SPDX-License-Identifier: AGPL-3.0-or-later

- type: entity
  id: DimensionPot
  parent: PottedPlantBase
  suffix: Dimension
  components:
  - type: Sprite
    layers:
    - state: plant-01
      map: ["random"]
  - type: RandomSprite
    available:
    - random:
        plant-01: ""
        plant-02: ""
        plant-03: ""
        plant-04: ""
        plant-05: ""
        plant-06: ""
        plant-07: ""
        plant-08: ""
        # no 9
        plant-10: ""
        plant-11: ""
        plant-12: ""
        plant-13: ""
        plant-14: ""
        plant-15: ""
        plant-16: ""
        plant-17: ""
        plant-18: ""
        plant-19: ""
        plant-20: ""
        plant-21: ""
        plant-22: ""
        plant-23: ""
        plant-24: ""
        # no 25
        plant-26: ""
        plant-27: ""
        plant-28: ""
        plant-29: ""
        plant-30: ""
  - type: PocketDimension
  # no (easily) deleting items with it
  - type: Destructible
    thresholds: []
  # nuh uh
  - type: CargoSellBlacklist
  - type: Portal
    canTeleportToOtherMaps: true
    randomTeleport: false
  - type: Fixtures
    fixtures:
      fix1:
        shape:
          !type:PhysShapeCircle
          radius: 0.1
        density: 190
        mask:
        - HighImpassable
      portalFixture:
        shape:
          !type:PhysShapeAabb
          bounds: "-0.25,-0.48,0.25,0.48"
        mask:
        - FullTileMask
        layer:
        - WallLayer
        hard: false