mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 21:11:50 +00:00
add player.is_infinite_items, .set_infinite_items
This commit is contained in:
parent
f4f479d389
commit
14b596140d
6 changed files with 54 additions and 4 deletions
|
|
@ -56,12 +56,19 @@ player.set_noclip(bool)
|
|||
|
||||
Getter and setter for player noclip mode (collisions disabled)
|
||||
|
||||
```lua
|
||||
player.is_infinite_items() -> bool
|
||||
player.set_infinite_items(bool)
|
||||
```
|
||||
|
||||
Getter and setter for infinite items (not removed from inventory after use)
|
||||
|
||||
``` lua
|
||||
player.set_spawnpoint(playerid: int, x: number, y: number, z: number)
|
||||
player.get_spawnpoint(playerid: int) -> number, number, number
|
||||
```
|
||||
|
||||
Point setter and getter added by player
|
||||
Spawn point setter and getter
|
||||
|
||||
```lua
|
||||
player.get_selected_block(playerid: int) -> x,y,z
|
||||
|
|
|
|||
|
|
@ -56,6 +56,13 @@ player.set_noclip(bool)
|
|||
|
||||
Геттер и сеттер noclip режима (выключенная коллизия игрока)
|
||||
|
||||
```lua
|
||||
player.is_infinite_items() -> bool
|
||||
player.set_infinite_items(bool)
|
||||
```
|
||||
|
||||
Геттер и сеттер бесконечных предметов (не удаляются из инвентаря при использовании)
|
||||
|
||||
```lua
|
||||
player.set_spawnpoint(playerid: int, x: number, y: number, z: number)
|
||||
player.get_spawnpoint(playerid: int) -> number, number, number
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue