#Factory control_ids

1 messages · Page 1 of 1 (latest)

lilac comet
#

This time, the factory is working on control_ids, can't it call external variables in control_ids?

void nexus
#

use "factory_variables": [ "$external_variable_1", "$external_variable_2", ... ]

#
"factory": {
  "name": "factory_name",
  "control_ids": { ... },
  "factory_variables": [ ... ]
}
lilac comet
void nexus
#

yeah i think

lilac comet
lilac comet
lilac comet
void nexus
#

it should work

#

mojang uses it like that (worked for me the last time i used it)

#
"icon_overlay_position_factory": {
    "type": "collection_panel",
    "size": [ "100%", "100%" ],
    "collection_name": "icon_overlay_position_factory",
    "factory": {
      "name": "icon_overlay_position_factory",
      "control_ids": {
        "top_left_icon_factory": "@common_store.top_left_icon_factory",
        "top_middle_icon_factory": "@common_store.top_middle_icon_factory",
        "top_right_icon_factory": "@common_store.top_right_icon_factory",
        "left_middle_icon_factory": "@common_store.left_middle_icon_factory",
        "center_icon_factory": "@common_store.center_icon_factory",
        "right_middle_icon_factory": "@common_store.right_middle_icon_factory",
        "bottom_left_icon_factory": "@common_store.bottom_left_icon_factory",
        "bottom_middle_icon_factory": "@common_store.bottom_middle_icon_factory",
        "bottom_right_icon_factory": "@common_store.bottom_right_icon_factory"
      },
      "factory_variables": [
        "$store_factory_collection_details",
        "$store_factory_collection_name",
        "$store_factory_collection_prefix",
        "$offer_binding_type",
        "$offer_collection_name",
        "$offer_collection_details",
        "$offer_collection_prefix"
      ]
    },
#

(example from store_common.json)

#

maybe the problem its being caused by another element

lilac comet
#

Thank you. Let me check if there is any problem with other parts.