block-properties ru+en fix (#577)

* Update block-properties.md

improved info about hitboxes

* Update block-properties.md
This commit is contained in:
Alex Rasto 2025-07-28 21:06:43 +03:00 committed by GitHub
parent 635b66a8c6
commit 4040cafac0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 21 additions and 1 deletions

View File

@ -143,6 +143,8 @@ Block is not a physical obstacle if **false**
An array of 6 numbers describing an offset an size of a block hitbox.
The numbers are specified in the range [0.0, 1.0] - i.e. within the block (in the case of an extended block, the hitbox can be larger than one, but must not go beyond the "size" property).
Array *\[0.25, 0.0, 0.5, 0.75, 0.4, 0.3\]* describes hitbox width:
- offset 0.25m east
- offset 0.0m up
@ -151,6 +153,15 @@ Array *\[0.25, 0.0, 0.5, 0.75, 0.4, 0.3\]* describes hitbox width:
- 0.4m height
- 0.3m length (from south to north)
For composite hitboxes, the *hitboxes* property is used - an array of hitboxes, for example:
```json
"hitboxes": [
[0, 0, 0, 1, 0.625, 1],
[0, 0.6875, 0, 1, 0.3125, 1]
]
```
### *grounded*
Is block may only be set on a solid block and destructs on below block destruction.

View File

@ -152,7 +152,7 @@
Массив из 6 чисел описывающих смещение и размер хитбокса блока.
Числа указываются в диапазоне [0.0, 1.0] - т.е в пределах блока.
Числа указываются в диапазоне [0.0, 1.0] - т.е в пределах блока (в случае расширенного блока хитбокс может быть больше единицы, но не должен выходить за пределы size).
Массив `[0.25, 0.0, 0.5, 0.75, 0.4, 0.3]` описывает хитбокс:
- смещен на 0.25 м на запад
@ -162,6 +162,15 @@
- высотой 0.4 м
- длиной (с юга на север) 0.3 м
Для составных хитбоксов используется свойство *hitboxes* - массив хитбоксов, например:
```json
"hitboxes": [
[0, 0, 0, 1, 0.625, 1],
[0, 0.6875, 0, 1, 0.3125, 1]
]
```
### Приземленность - *grounded*
Блок может быть установлен только на полный блок.