mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 12:31:51 +00:00
add world.get_generator
This commit is contained in:
parent
84ba063908
commit
7afdde5912
3 changed files with 48 additions and 28 deletions
|
|
@ -1,6 +1,7 @@
|
|||
# *world* library
|
||||
|
||||
```lua
|
||||
-- Returns worlds information.
|
||||
world.get_list() -> tables array {
|
||||
-- world name
|
||||
name: str,
|
||||
|
|
@ -27,6 +28,9 @@ world.get_total_time() -> number
|
|||
-- Returns world seed.
|
||||
world.get_seed() -> int
|
||||
|
||||
-- Returns generator name.
|
||||
world.get_generator() -> str
|
||||
|
||||
-- Proves that this is the current time during the day
|
||||
-- from 0.333(8 am) to 0.833(8 pm).
|
||||
world.is_day() -> boolean
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue