MakeYamlFolders: type: world debug: false events: on NLBlackEagleRealms command: - if == update { - flag NLBlackEagleRealms:update duration:5s - foreach { - yaml create id: - yaml 'savefile:../NLBlackEaglesRealm/Worlds//config.yml' 'id:' } - run s@MakeYAMLfiles } on server prestart: - foreach { - yaml create id: - yaml 'savefile:../NLBlackEaglesRealm/Worlds//config.yml' 'id:' } - run s@MakeYAMLfiles MakeYAMLfiles: type: task debug: true script: - foreach { - define 1 - foreach { - if { - define 5 - flag NLBlackEagleRealms:! } - foreach /WorldBiomes]> { - if /.yml]> { - narrate "NLBlackEagleRealms already contains all current biomes." targets: } else if !/.yml]> { - yaml create id: - yaml 'savefile:../NLBlackEaglesRealm/Worlds//.yml' 'id:' - narrate "Biome<&co> was added to world<&co> ." targets: } } } }