-- Use this file to set up folder and variables once after installation of the mod -- Afterwards you could disable this part of the code or set a variable that tells -- this code not to run again local mkdir = minetest.mkdir local save_path = yl_cities.settings.save_path local function run_once() local path = yl_cities.worldpath .. DIR_DELIM .. save_path local file = io.open(path, "r") if not file then mkdir(path) else file:close() end end run_once()