YAML list value (Expression) — skript-yaml
Addon: skript-yaml · Category: Expression · Since: 1.3.3
Syntax
(index|value) %number% (of|in|from) [skript-]y[a]ml list %string% (of|in|from) %string% [without string checks]Description
Gets, sets, removes values from a list from a cached yaml file using an index - Requires index between 1 and the size of the list - Requires the id used/created from the load effect - This expression does not save to file - Using 'without string checks' optional is a tiny bit faster but doesn't check/convert strings for numbers or booleans
Examples
set index 1 in yaml list "test1.test2" from "config" to "test3"
set {_test} to yaml index 1 in list "test1.test2" from "config"
broadcast "%{_test}%"