Adds dog bed and bed construction. (#6263)
This commit is contained in:
@@ -4,10 +4,6 @@
|
||||
parent: BaseStructure
|
||||
description: This is used to lie in, sleep in or strap on.
|
||||
components:
|
||||
# So that you can put bedsheets on beds again. Would be cool to have a tag
|
||||
# for this so that only bedsheets can be placed.
|
||||
- type: PlaceableSurface
|
||||
placeCentered: true
|
||||
- type: Physics
|
||||
bodyType: Static
|
||||
- type: Fixtures
|
||||
@@ -24,6 +20,14 @@
|
||||
- type: Strap
|
||||
position: Down
|
||||
rotation: -90
|
||||
# Construction has to be before PlaceableSurface or you'll place things onto the entity instead of deconstructing it.
|
||||
- type: Construction
|
||||
graph: bed
|
||||
node: bed
|
||||
# So that you can put bedsheets on beds again. Would be cool to have a tag
|
||||
# for this so that only bedsheets can be placed.
|
||||
- type: PlaceableSurface
|
||||
placeCentered: true
|
||||
- type: Damageable
|
||||
damageContainer: Inorganic
|
||||
damageModifierSet: Metallic
|
||||
@@ -39,7 +43,37 @@
|
||||
spawn:
|
||||
SheetSteel1:
|
||||
min: 1
|
||||
max: 1
|
||||
MaterialCloth1:
|
||||
max: 2
|
||||
|
||||
- type: entity
|
||||
parent: Bed
|
||||
id: DogBed
|
||||
name: dog bed
|
||||
description: A comfy-looking dog bed. You can even strap your pet in, in case the gravity turns off.
|
||||
components:
|
||||
- type: Sprite
|
||||
state: dogbed
|
||||
- type: Strap
|
||||
position: Stand
|
||||
rotation: 0
|
||||
- type: Construction
|
||||
graph: bed
|
||||
node: dogbed
|
||||
- type: Damageable
|
||||
damageModifierSet: Wood
|
||||
- type: Destructible
|
||||
thresholds:
|
||||
- trigger:
|
||||
!type:DamageTrigger
|
||||
damage: 75
|
||||
behaviors:
|
||||
- !type:DoActsBehavior
|
||||
acts: ["Destruction"]
|
||||
- !type:PlaySoundBehavior
|
||||
sound:
|
||||
path: /Audio/Effects/woodhit.ogg
|
||||
- !type:SpawnEntitiesBehavior
|
||||
spawn:
|
||||
MaterialWoodPlank:
|
||||
min: 1
|
||||
max: 1
|
||||
max: 5
|
||||
|
||||
Reference in New Issue
Block a user