Rain/Thunder Level (Expression) — Skript

Addon: Skript · Category: Expression

Syntax

[the] (rain|:thunder) level of %instances/weathers%

Description

The rain or thunder level of an instance or a weather, a number between 0 and 1. Values outside of that range are clamped. Only the level of an instance can be changed, as a weather itself can't be modified.

Examples

set rain level of {_instance} to 0.5
add 0.2 to thunder level of {_instance}
set {_level} to rain level of (weather of {_instance})

View source