ru:tutorial:blockstate
Differences
This shows you the differences between two versions of the page.
ru:tutorial:blockstate [2022/03/28 14:21] – допереведу потом furnygo | ru:tutorial:blockstate [2022/03/28 15:40] (current) – furnygo | ||
---|---|---|---|
Line 90: | Line 90: | ||
* '' | * '' | ||
- | * Вариант с именем '' | + | * Вариант с именем '' |
- | * The object assigned to the '' | + | * Объект, |
- | * The '' | + | * Свойству |
- | If you want to have different models for each blockstate, you should add multiple variants. For the same '' | + | Если вы хотите иметь разные модели для каждого состояния блока, вам следует добавить несколько вариантов. Для того же расположения |
<code JavaScript resources/ | <code JavaScript resources/ | ||
Line 105: | Line 105: | ||
</ | </ | ||
- | In this JSON, there are two variants, one for each possibility of the '' | + | В этом |
- | Variants are based on possible permutations of the properties added to your block. A property can be totally ignored in the blockstate | + | Варианты основаны на возможных перестановках свойств, |
- | This is only a simple introduction to blockstate JSONs. All of the tricks you can do with blockstate and model JSONs are documented on the [[https:// | + | Это всего лишь простое введение в JSON файл состояний блока. Все трюки, которые вы можете выполнять с помощью этих JSON, задокументированы на [[https:// |
- | ==== A note about performance | + | ==== Примечание о производительности |
- | Every possible state of a block is registered at the start of the game. This means that if you have 14 boolean properties, the block has 2^14 = 16384 different states and 2^14 states are registered. For this reason blocks should not contain too many blockstate properties. Rather, blockstates should be mostly reserved for visuals, and [[tutorial: | + | Каждое возможное состояние блока регистрируется в начале игры. Это означает, |
ru/tutorial/blockstate.1648477317.txt.gz · Last modified: 2022/03/28 14:21 by furnygo