Helper functions¶
-
miney.
doc
() → None[source]¶ Open the documention in the webbrower. This is just a shortcut for IDLE or the python interactive console.
- Returns
None
-
miney.
is_miney_available
(ip: str = '127.0.0.1', port: int = 29999, timeout: int = 1.0) → bool[source]¶ Check if there is a running miney game available on an optional given host and/or port. This functions pings mineysocket and waits timeout seconds for a pong.
- Parameters
ip – Optional IP or hostname
port – Optional port
timeout – Optional timeout
- Returns
True or False
-
miney.
run_miney_game
()[source]¶ Run minetest with the miney world. Miney will look for the minetest executable in common places for itself, but it’s also possible to provide the path as parameter or as environment variable
MINETEST_BIN
.- Returns
None
-
miney.
run_minetest
(minetest_path: str = None, show_menu: bool = True, world_path: str = 'Miney', seed: str = '746036489947438842') → None[source]¶ Run minetest. Miney will look for the minetest executable in common places for itself, but it’s also possible to provide the path as parameter or as environment variable ‘MINETEST_BIN’.
- Parameters
minetest_path – Path to the minetest executable
show_menu – Start in the world or in the menu
world_path – Optional world path
seed – Optional world seed
- Returns
None