state: glow
shader: unshaded
- type: MobState
- - type: MobThresholds
- thresholds:
- 0: Alive
- 50: Dead
- type: SlowOnDamage
speedModifierThresholds:
20: 0.5
thresholds:
- trigger:
!type:DamageTrigger
- damage: 50
+ damage: 25
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- map: [ "enum.DamageStateVisualLayers.BaseUnshaded" ]
state: glow
shader: unshaded
- - type: MobThresholds
- thresholds:
- 0: Alive
- 50: Dead
- type: DamageStateVisuals
states:
Alive:
- map: [ "enum.DamageStateVisualLayers.BaseUnshaded" ]
state: glow
shader: unshaded
- - type: MobThresholds
- thresholds:
- 0: Alive
- 40: Dead
- type: DamageStateVisuals
states:
Alive:
components:
- type: Sprite
state: tree06
+
+- type: entity
+ parent: BaseTree
+ id: LightTree01
+ name: glowing tree
+ description: a marvelous tree filled with strange energy.
+ components:
+ - type: PointLight
+ radius: 2.0
+ energy: 4.5
+ color: "#6270bb"
+ - type: Sprite
+ sprite: Objects/Decoration/Flora/flora_treeslight.rsi
+ state: tree01
+ - type: Destructible
+ thresholds:
+ - trigger:
+ !type:DamageTrigger
+ damage: 400
+ behaviors:
+ - !type:DoActsBehavior
+ acts: [ "Destruction" ]
+ - trigger:
+ !type:DamageTrigger
+ damage: 25
+ behaviors:
+ - !type:PlaySoundBehavior
+ sound:
+ path: /Audio/Effects/tree_fell.ogg
+ params:
+ volume: 5
+ variation: 0.05
+ - !type:DoActsBehavior
+ acts: [ "Destruction" ]
+ - !type:SpawnEntitiesBehavior
+ spawn:
+ Log:
+ min: 0
+ max: 1
+ - !type:SpawnEntitiesBehavior
+ spawn:
+ MobLuminousObject:
+ min: 0
+ max: 1
+
+- type: entity
+ parent: LightTree01
+ id: LightTree02
+ components:
+ - type: Sprite
+ sprite: Objects/Decoration/Flora/flora_treeslight.rsi
+ state: tree02
+
+- type: entity
+ parent: LightTree01
+ id: LightTree03
+ components:
+ - type: Sprite
+ sprite: Objects/Decoration/Flora/flora_treeslight.rsi
+ state: tree03
+
+- type: entity
+ parent: LightTree01
+ id: LightTree04
+ components:
+ - type: Sprite
+ sprite: Objects/Decoration/Flora/flora_treeslight.rsi
+ state: tree04
+
+- type: entity
+ parent: LightTree01
+ id: LightTree05
+ components:
+ - type: Sprite
+ sprite: Objects/Decoration/Flora/flora_treeslight.rsi
+ state: tree05
+
+- type: entity
+ parent: LightTree01
+ id: LightTree06
+ components:
+ - type: Sprite
+ sprite: Objects/Decoration/Flora/flora_treeslight.rsi
+ state: tree06
--- /dev/null
+{
+ "version": 1,
+ "license": "CC-BY-SA-3.0",
+ "copyright": "Created by TheShuEd for Space Station 14",
+ "size": {
+ "x": 96,
+ "y": 96
+ },
+ "states": [
+ {
+ "name": "tree01"
+ },
+ {
+ "name": "tree02"
+ },
+ {
+ "name": "tree03"
+ },
+ {
+ "name": "tree04"
+ },
+ {
+ "name": "tree05"
+ },
+ {
+ "name": "tree06"
+ }
+ ]
+}
\ No newline at end of file