Hello i have problem with YML and i dont know how to fix it.
i using check this
but it doesnt work. can help me somebody?
Full code.
What i want? i want to write all mobs spawned by spawner to list to the yml file. and if they will die and they are in this list they will removed from this list.
i using check this
code_language.skript:
if yml list "Mobove" from file "plugins/Skript/MoboveSpawner.yml" contains "- %entity uuid of victim%":
Full code.
code_language.skript:
on spawn:
if "%spawn reason%" is "SPAWNER":
add "%entity uuid of entity%" to yml list "Mobove" of file "/plugins/Skript/MoboveSpawner.yml"
broadcast "Pridano"
on death:
if yml list "Mobove" from file "plugins/Skript/MoboveSpawner.yml" contains "%entity uuid of victim%":
remove "%entity uuid of victim%" from yml list "Mobove" of file "plugins/Skript/MoboveSpawner.yml"
broadcast "Smazano"