1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Fix some misinformation in world_format.md

This commit is contained in:
Desour 2025-06-12 21:10:22 +02:00
parent aba2b6638e
commit 9db352c133

View file

@ -401,7 +401,7 @@ See below for description.
Luanti will correct lighting in the day light bank when the block at Luanti will correct lighting in the day light bank when the block at
`(1, 0, 0)` is also loaded. `(1, 0, 0)` is also loaded.
Timestamp and node ID mappings were introduced in map format version 29. Timestamp and node ID mappings come here if map format version >= 29.
* `u32` timestamp * `u32` timestamp
* Timestamp when last saved, as seconds from starting the game. * Timestamp when last saved, as seconds from starting the game.
* `0xffffffff` = invalid/unknown timestamp, nothing should be done with the time * `0xffffffff` = invalid/unknown timestamp, nothing should be done with the time
@ -482,14 +482,6 @@ Timestamp and node ID mappings were introduced in map format version 29.
* `s32` timeout * 1000 * `s32` timeout * 1000
* `s32` elapsed * 1000 * `s32` elapsed * 1000
* Since map format version 25:
* `u8` length of the data of a single timer (always 2+4+4=10)
* `u16` `num_of_timers`
* foreach `num_of_timers`:
* `u16` timer position (`(z*16*16 + y*16 + x)`)
* `s32` timeout * 1000
* `s32` elapsed * 1000
`u8` static object version: `u8` static object version:
* Always 0 * Always 0
@ -516,6 +508,14 @@ Before map format version 29:
* `u16` `name_len` * `u16` `name_len`
* `u8[name_len]` `name` * `u8[name_len]` `name`
Since map format version 25:
* `u8` length of the data of a single timer (always 2+4+4=10)
* `u16` `num_of_timers`
* foreach `num_of_timers`:
* `u16` timer position (`(z*16*16 + y*16 + x)`)
* `s32` timeout * 1000
* `s32` elapsed * 1000
End of File (EOF). End of File (EOF).
# Format of Nodes # Format of Nodes