wooded chestb (#89)
* wooded chestb * Update Resources/Textures/_CP14/Structures/Storage/Crates/woodenchest.rsi/meta.json Co-authored-by: Ed <96445749+TheShuEd@users.noreply.github.com> * Update base_chest.yml * Update chests.yml --------- Co-authored-by: Ed <96445749+TheShuEd@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,69 @@
|
||||
- type: entity
|
||||
parent: BaseStructureDynamic
|
||||
id: CPChestGeneric
|
||||
noSpawn: true
|
||||
name: Chest
|
||||
description: Chest.
|
||||
components:
|
||||
- type: Transform
|
||||
noRot: true
|
||||
- type: Icon
|
||||
sprite: _CP14/Structures/Storage/Crates/woodenchest.rsi
|
||||
state: icon
|
||||
- type: Sprite
|
||||
noRot: true
|
||||
sprite: _CP14/Structures/Storage/Crates/woodenchest.rsi
|
||||
layers:
|
||||
- state: base
|
||||
map: ["enum.StorageVisualLayers.Base"]
|
||||
- state: closed
|
||||
map: ["enum.StorageVisualLayers.Door"]
|
||||
- type: InteractionOutline
|
||||
- type: Physics
|
||||
- type: Fixtures
|
||||
fixtures:
|
||||
fix1:
|
||||
shape:
|
||||
!type:PhysShapeAabb
|
||||
bounds: "-0.4,-0.4,0.4,0.29"
|
||||
density: 50
|
||||
mask:
|
||||
- SmallMobMask #this is so they can go under plastic flaps
|
||||
layer:
|
||||
- MachineLayer
|
||||
- type: EntityStorage
|
||||
- type: PlaceableSurface
|
||||
isPlaceable: false # defaults to closed.
|
||||
- type: Damageable
|
||||
damageContainer: StructuralInorganic
|
||||
damageModifierSet: Metallic
|
||||
- type: Destructible
|
||||
thresholds:
|
||||
- trigger:
|
||||
!type:DamageTrigger
|
||||
damage: 50
|
||||
behaviors:
|
||||
- !type:DoActsBehavior
|
||||
acts: ["Destruction"]
|
||||
- !type:PlaySoundBehavior
|
||||
sound:
|
||||
collection: MetalBreak
|
||||
- type: Appearance
|
||||
- type: EntityStorageVisuals
|
||||
stateDoorOpen: open
|
||||
stateDoorClosed: closed
|
||||
- type: PaperLabel
|
||||
labelSlot:
|
||||
insertVerbText: Attach Label
|
||||
ejectVerbText: Remove Label
|
||||
whitelist:
|
||||
components:
|
||||
- Paper
|
||||
- type: ContainerContainer
|
||||
containers:
|
||||
entity_storage: !type:Container
|
||||
paper_label: !type:ContainerSlot
|
||||
- type: ItemSlots
|
||||
- type: StaticPrice
|
||||
price: 50
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
- type: entity
|
||||
parent: CPChestGeneric
|
||||
id: CPWoodenChest
|
||||
name: wooden chest
|
||||
description: Good wooden chest.
|
||||
components:
|
||||
- type: Icon
|
||||
sprite: _CP14/Structures/Storage/Crates/woodenchest.rsi
|
||||
- type: Sprite
|
||||
sprite: _CP14/Structures/Storage/Crates/woodenchest.rsi
|
||||
layers:
|
||||
- state: base
|
||||
map: ["enum.StorageVisualLayers.Base"]
|
||||
- state: closed
|
||||
map: ["enum.StorageVisualLayers.Door"]
|
||||
- type: Damageable
|
||||
damageModifierSet: Web
|
||||
- type: Destructible
|
||||
thresholds:
|
||||
- trigger:
|
||||
!type:DamageTrigger
|
||||
damage: 150
|
||||
behaviors:
|
||||
- !type:DoActsBehavior
|
||||
acts: ["Destruction"]
|
||||
- !type:PlaySoundBehavior
|
||||
sound:
|
||||
collection: WoodDestroy
|
||||
- !type:SpawnEntitiesBehavior
|
||||
spawn:
|
||||
MaterialWoodPlank:
|
||||
min: 2
|
||||
max: 3
|
||||
- type: EntityStorage
|
||||
closeSound:
|
||||
path: /Audio/Effects/woodenclosetclose.ogg
|
||||
openSound:
|
||||
path: /Audio/Effects/woodenclosetopen.ogg
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 377 B |
Binary file not shown.
|
After Width: | Height: | Size: 354 B |
Binary file not shown.
|
After Width: | Height: | Size: 546 B |
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"version": 1,
|
||||
"license": "CC-BY-SA-3.0",
|
||||
"copyright": "Created by Agoichi (Github) for CrystallPunk",
|
||||
"size": {
|
||||
"x": 32,
|
||||
"y": 32
|
||||
},
|
||||
"states": [
|
||||
{
|
||||
"name": "icon"
|
||||
},
|
||||
{
|
||||
"name": "base"
|
||||
},
|
||||
{
|
||||
"name": "closed"
|
||||
},
|
||||
{
|
||||
"name": "open"
|
||||
}
|
||||
]
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 319 B |
Reference in New Issue
Block a user