minecraft_worlds {rbedrock} | R Documentation |
Utilities for working with Minecraft world folders.
Description
world_dir_path()
returns the path to the minecraftWorlds
directory. Use
options(rbedrock.worlds_dir_path = "custom/path")
to customize the path
as needed.
list_worlds()
returns a data.frame()
containing information about
Minecraft saved games.
create_world()
creates a new Minecraft world.
export_world()
exports a world to an archive file.
Usage
worlds_dir_path(force_default = FALSE)
list_worlds(worlds_dir = worlds_dir_path())
create_world(id = NULL, ..., worlds_dir = worlds_dir_path())
export_world(id, file, worlds_dir = worlds_dir_path(), replace = FALSE)
import_world(file, id = NULL, ..., worlds_dir = worlds_dir_path())
get_world_path(id, worlds_dir = worlds_dir_path())
Arguments
force_default |
If |
worlds_dir |
The path of a |
id |
The path to a world folder. If the path is not absolute or does not
exist, it is assumed to be the base name of a world folder in |
... |
Arguments to customize |
file |
The path to an mcworld file. If exporting, it will be created. If importing, it will be extracted. |
replace |
If |
Examples
## Not run:
create_world(LevelName = "My World", RandomSeed = 10)
## End(Not run)