Skip to content

ModelInfos

tremblestarman edited this page Feb 8, 2018 · 3 revisions

模型信息

模型信息记录了方块对应可调用的模型中的所有元素信息,可被动态读取。

文件名为Model.json,是模型名。

Model.json

┏┤ (Compound) Root : 根标签.
┖───┬┤ (List) Enums : 储存了全部的枚举模型.
    └───┬┤ (Compound) An Enum : 一个枚举模型.
        ├───┬┤ (List) Conditions : 该枚举的所有条件.
        │   └───┬┤ (Compound) A Condition : 一个条件.
        │       ├────┤ (String) Params : 条件参数.
        │       └───┬┤ (Compound) RelativeBlocks : 在相对位置的符合条件所有方块.
        │           └───┬┤ (Compound) A RelativeBlock : 在相对位置的符合条件方块.
        │               │                               (表达式同filter_blocks)
        │               ├────┤ (Int) X : X轴相对坐标.
        │               ├────┤ (Int) Y : Y轴相对坐标.
        │               └────┤ (Int) Z : Z轴相对坐标.
        └───┬┤ (List) Elements : 该模型全部的元素.
            └───┬┤ (Compound) An Element : 一个元素.
                ├───┬┤ (String List) from : 元素的起始点.
                │   └────┤ (String) Expression : 坐标表达式.(三个表达式依次代表x,y,z)
                │                   ('$sx'、'$sy'、'$sz'继承BlockInfo中的Size)
                ├───┬┤ (String List) to : 元素的终止点.
                │   └────┤ (String) Expression : 坐标表达式.(三个表达式依次代表x,y,z)
                │                   ('$sx'、'$sy'、'$sz'继承BlockInfo中的Size)
                └────┤ (String) Texture : 材质名 (匹配BlockInfo的Model中的A Texture)

Clone this wiki locally