mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 05:51:51 +00:00
commit
dc27bd1430
12 changed files with 149 additions and 16 deletions
|
|
@ -241,6 +241,15 @@ Number of block inventory slots. Default - 0 (no inventory).
|
|||
|
||||
Array of three integers. Default value is `[1, 1, 1]`.
|
||||
|
||||
### *grounding-behaviour*
|
||||
|
||||
Defines the behavior of the extended grounded block. Available behavior options:
|
||||
|
||||
- "partial" - at least one segment must be grounded (default)
|
||||
- "complete" - all segments must be grounded
|
||||
- "origin" - origin segment must be grounded
|
||||
|
||||
|
||||
## Block fields
|
||||
|
||||
Block fields allow you to write more data unique to a specified voxel than the user bits allow.
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ block.get_picking_item(id: int) -> int
|
|||
block.get_variant(x: int, y: int, z: int) -> int
|
||||
|
||||
-- Sets the block variant by index
|
||||
block.set_variant(x: int, y: int, z: int, index: int) -> int
|
||||
block.set_variant(x: int, y: int, z: int, index: int)
|
||||
|
||||
-- Checks if an block has specified tag
|
||||
block.has_tag(id: int, tag: str) -> bool
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue