mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-13 06:51:51 +00:00
document 'script-name' propertyfor items
This commit is contained in:
parent
c023697bcc
commit
c3794191e2
2 changed files with 10 additions and 1 deletions
|
|
@ -60,13 +60,18 @@ Property used via [inventory.use](scripting/builtins/libinventory.md).
|
||||||
|
|
||||||
Property status is displayed in the inventory interface. Display method is defined via `uses-display`.
|
Property status is displayed in the inventory interface. Display method is defined via `uses-display`.
|
||||||
|
|
||||||
### Display of uses - `uses-display`
|
### Display of remaining uses count - `uses-display`
|
||||||
|
|
||||||
- `none` - display disabled
|
- `none` - display disabled
|
||||||
- `number` - number
|
- `number` - number
|
||||||
- `relation` - current value to initial value (x/y)
|
- `relation` - current value to initial value (x/y)
|
||||||
- `vbar` - vertical scale (used by default)
|
- `vbar` - vertical scale (used by default)
|
||||||
|
|
||||||
|
### *script-name*
|
||||||
|
|
||||||
|
Defines the name of the script containing the item's event handlers. By default, equals to the item's string id (name).
|
||||||
|
Allows you to reuse a single script for multiple items.
|
||||||
|
|
||||||
## Tags
|
## Tags
|
||||||
|
|
||||||
Tags allow you to designate general properties of items. Names should be formatted as `prefix:tag_name`.
|
Tags allow you to designate general properties of items. Names should be formatted as `prefix:tag_name`.
|
||||||
|
|
|
||||||
|
|
@ -66,6 +66,10 @@
|
||||||
- `relation` - отношение текущего значения к изначальному (x/y)
|
- `relation` - отношение текущего значения к изначальному (x/y)
|
||||||
- `vbar` - вертикальная шкала (используется по-умолчанию)
|
- `vbar` - вертикальная шкала (используется по-умолчанию)
|
||||||
|
|
||||||
|
### Имя скрипта - `script-name`
|
||||||
|
|
||||||
|
Определяет имя скрипта, содержащего обработчики событий предмета. По-умолчанию соответствует строковому id (имени) предмета.
|
||||||
|
Свойство обеспечивает возможность использования одного скрипта для нескольких предметов.
|
||||||
|
|
||||||
## Теги - *tags*
|
## Теги - *tags*
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue