mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-13 06:51:51 +00:00
Project wiki moved to doc folder + english translation (#182)
This commit is contained in:
parent
a149c520c6
commit
a5aee06e01
22 changed files with 2536 additions and 0 deletions
40
doc/en/2.Content-packs.md
Normal file
40
doc/en/2.Content-packs.md
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
# Content-packs
|
||||
|
||||
Every content pack must have an ID following requirements:
|
||||
- name can consist of Capital letters A-Z, lowercase letters a-z digits 0-9, and underscore '\_' signs.
|
||||
- the first character must not be a digit.
|
||||
- name length must be in range \[2, 24\]
|
||||
|
||||
Content-pack folder having name same as ID may be created in *res/content*.
|
||||
Content-pack folder must contain file **package.json** with following contents:
|
||||
|
||||
```json
|
||||
{
|
||||
"id": "pack_id",
|
||||
"title": "pack name will be displayed in the content menu",
|
||||
"version": "content-pack version - major.minor",
|
||||
"creator": "content-pack creator",
|
||||
"description": "short description",
|
||||
"dependencies": [
|
||||
"pack",
|
||||
"dependencies"
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
Example:
|
||||
```json
|
||||
{
|
||||
"id": "doors",
|
||||
"title": "DOORS",
|
||||
"creator": "MihailRis",
|
||||
"version": "1.0",
|
||||
"description": "doors test"
|
||||
}
|
||||
```
|
||||
|
||||
Content pack picture should be added as *icon.png* file. Recommended size: 128x128
|
||||
|
||||
See *res/content/base* as an example of content pack structure.
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue