mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 14:01:49 +00:00
update doc/en structure
This commit is contained in:
parent
dbe98959d1
commit
09610a3bb3
12 changed files with 17 additions and 12 deletions
|
|
@ -1,39 +0,0 @@
|
|||
# Visual
|
||||
|
||||
## *icon-type* and *icon* itself
|
||||
|
||||
Icon type defines a source of an item image displayed in inventory.
|
||||
- **none** - invisible type, used for *core:empty* only (empty item, like the air block). May be removed in future updates.
|
||||
- **sprite** - default type. 2D image. Requires *icon* set to *atlas_name:texture_name*. Example: *blocks:notfound*.
|
||||
There's two atlases available:
|
||||
- **blocks** (generated from *png* files in *res/textures/blocks/*)
|
||||
- **items** (generated from *png* files in *res/textures/items/*)
|
||||
- **block** - block preview. Block ID must be specified in **icon** property. Example: *base:wood*.
|
||||
|
||||
# Behaviour
|
||||
|
||||
## *placing-block*
|
||||
|
||||
Specifies what block will be placed on RMB click. Automatically specified in generated items.
|
||||
|
||||
Example: an items that places bazalt blocks:
|
||||
|
||||
```json
|
||||
"placing-block": "base:bazalt"
|
||||
```
|
||||
|
||||
## *emission*
|
||||
|
||||
Light emitted when player holds the item in hand.
|
||||
|
||||
An array of 3 integers - R, G, B of light in range \[0, 15\]
|
||||
|
||||
Examples:
|
||||
|
||||
- *\[15, 15, 15\]* - white with maximal intensity
|
||||
- *\[7, 0, 0\]* - dim red light
|
||||
- *\[0, 0, 0\]* - no emission (default value)
|
||||
|
||||
## *stack-size*
|
||||
|
||||
Maximal number of an item units in one slot. Default - 64.
|
||||
Loading…
Add table
Add a link
Reference in a new issue