From df9ea3284858850e599a721303ba019cd5228dfa Mon Sep 17 00:00:00 2001 From: MihailRis Date: Fri, 12 Sep 2025 07:46:44 +0300 Subject: [PATCH] update doc/*/entity-properties.md --- doc/en/entity-properties.md | 16 ++++++++++++++++ doc/ru/entity-properties.md | 16 ++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/doc/en/entity-properties.md b/doc/en/entity-properties.md index f9ff2aa0..a6530191 100644 --- a/doc/en/entity-properties.md +++ b/doc/en/entity-properties.md @@ -20,6 +20,22 @@ Example: ] ``` +You can pass values ​​in ARGS from the entity configuration. +They will be passed both when creating a new entity and when loading a saved one. +The `args` list is used for this: + +```json +"components": [ + { + "name": "base:drop", + "args": { + "item": "base:stone.item", + "count": 1 + } + } +] +``` + The components code should be in `scripts/components`. ## Physics diff --git a/doc/ru/entity-properties.md b/doc/ru/entity-properties.md index ec11306c..3489e3aa 100644 --- a/doc/ru/entity-properties.md +++ b/doc/ru/entity-properties.md @@ -20,6 +20,22 @@ ] ``` +Из конфигурации сущности можно передавать значения в ARGS. +Они будут передаваться как при создании новой сущности, так и при загрузке сохранённой. +Для этого используется список `args`: + +```json +"components": [ + { + "name": "base:drop", + "args": { + "item": "base:stone.item", + "count": 1 + } + } +] +``` + Код компонентов должен находиться в `scripts/components`. ## Физика