
Tree has number of "dying" stages, which is deduced from frame count of shadow if shadow is defined, otherwise from frame count of trunk. Frame count of leaves has to be one less than deduced number stages, as last stage is always assumed to be leafless.
| trunk | :: Animation | If |
If | ||
| leaves | :: Animation | |
| leaf_generation | :: CreateParticleTriggerEffectItem | |
| branch_generation | :: CreateParticleTriggerEffectItem | |
| shadow optional | :: Animation | Shadow must have 1 more |
Shadow must have 1 more | ||
| disable_shadow_distortion_beginning_at_frame optional | :: uint32 | Only loaded if |
Only loaded if | ||
| normal optional | :: Animation | Normal must have the same frame_count as |
Normal must have the same frame_count as | ||
| overlay optional | :: Animation | Overlay must have the same frame_count as |
Overlay must have the same frame_count as | ||
| underwater optional | :: Animation | |
| underwater_layer_offset optional | :: int8 | |
| leaves_when_mined_manually optional | :: uint8 | |
| leaves_when_mined_automatically optional | :: uint8 | |
| leaves_when_damaged optional | :: uint8 | This value is multiplied with the percent of health lost. |
This value is multiplied with the percent of health lost. | ||
| leaves_when_destroyed optional | :: uint8 | |
| branches_when_mined_manually optional | :: uint8 | |
| branches_when_mined_automatically optional | :: uint8 | |
| branches_when_damaged optional | :: uint8 | This value is multiplied with the percent of health lost. |
This value is multiplied with the percent of health lost. | ||
| branches_when_destroyed optional | :: uint8 | |
| water_reflection optional | :: WaterReflectionDefinition | |
| branch_generation | :: CreateParticleTriggerEffectItem | |
| leaf_generation | :: CreateParticleTriggerEffectItem | |
| leaves | :: Animation | |
| trunk | :: Animation | If |
If | ||
| branches_when_damaged optional | :: uint8 | This value is multiplied with the percent of health lost. |
This value is multiplied with the percent of health lost. | ||
| branches_when_destroyed optional | :: uint8 | |
| branches_when_mined_automatically optional | :: uint8 | |
| branches_when_mined_manually optional | :: uint8 | |
| disable_shadow_distortion_beginning_at_frame optional | :: uint32 | Only loaded if |
Only loaded if | ||
| leaves_when_damaged optional | :: uint8 | This value is multiplied with the percent of health lost. |
This value is multiplied with the percent of health lost. | ||
| leaves_when_destroyed optional | :: uint8 | |
| leaves_when_mined_automatically optional | :: uint8 | |
| leaves_when_mined_manually optional | :: uint8 | |
| normal optional | :: Animation | Normal must have the same frame_count as |
Normal must have the same frame_count as | ||
| overlay optional | :: Animation | Overlay must have the same frame_count as |
Overlay must have the same frame_count as | ||
| shadow optional | :: Animation | Shadow must have 1 more |
Shadow must have 1 more | ||
| underwater optional | :: Animation | |
| underwater_layer_offset optional | :: int8 | |
| water_reflection optional | :: WaterReflectionDefinition | |

If shadow is not specified, this has to have one more frame than leaves.




Shadow must have 1 more frame_count than leaves.

Only loaded if shadow is present. Defaults to shadow.frame_count - 1.

Normal must have the same frame_count as leaves.

Overlay must have the same frame_count as leaves. Won't be tinted by the tree color unless apply_runtime_tint is set to true in the sprite definition. See here.


Default: 1

Default: 40

Default: 20

Default: 200
This value is multiplied with the percent of health lost.

Default: 40

Default: 15

Default: 8

Default: 0
This value is multiplied with the percent of health lost.

Default: 15


Prototypes
Types
Defines