mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 05:21:49 +00:00
add block.place(...), block.destruct(...)
This commit is contained in:
parent
8082048d39
commit
c9257ec127
5 changed files with 64 additions and 4 deletions
|
|
@ -20,8 +20,17 @@ block.get(x: int, y: int, z: int) -> int
|
|||
-- Used to save complete block information.
|
||||
block.get_states(x: int, y: int, z: int) -> int
|
||||
|
||||
-- Set block with specified integer ID and state (default - 0) at specified position.
|
||||
-- Set block with given integer ID and state (default - 0) at given position.
|
||||
block.set(x: int, y: int, z: int, id: int, states: int)
|
||||
|
||||
-- Places a block with a given integer id and state (default - 0) at given position.
|
||||
-- on behalf of the player, calling the on_placed event.
|
||||
-- playerid is optional
|
||||
block.place(x: int, y: int, z: int, id: int, states: int, [optional] playerid: int)
|
||||
|
||||
-- Breaks a block at the given coordinates on behalf of the player, triggering the on_broken event.
|
||||
-- playerid is optional
|
||||
block.destruct(x: int, y: int, z: int, playerid: int)
|
||||
```
|
||||
|
||||
> [!WARNING]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue