mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 12:31:51 +00:00
update block.compose_state, block.decompose_state semantics
This commit is contained in:
parent
3a1ae57bbf
commit
eefaafd1e7
3 changed files with 20 additions and 8 deletions
|
|
@ -34,10 +34,10 @@ block.place(x: int, y: int, z: int, id: int, states: int, [optional] playerid: i
|
|||
block.destruct(x: int, y: int, z: int, playerid: int)
|
||||
|
||||
-- Compose the complete state as an integer
|
||||
block.compose_state(rotation: int, segment: int, userbits: int) -> int
|
||||
block.compose_state(state: {rotation: int, segment: int, userbits: int}) -> int
|
||||
|
||||
-- Decompose the complete state into: rotation, segment, user bits
|
||||
block.decompose_state(state: int) -> int, int, int
|
||||
block.decompose_state(state: int) -> {int, int, int}
|
||||
```
|
||||
|
||||
> [!WARNING]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue