#Factory control_ids
1 messages · Page 1 of 1 (latest)
use "factory_variables": [ "$external_variable_1", "$external_variable_2", ... ]
"factory": {
"name": "factory_name",
"control_ids": { ... },
"factory_variables": [ ... ]
}
Does it work well at 1.21.70?
yeah i think
I tried it in that way, but Minecraft ends immediately when Server Form is executed.
It's my first time using factory_varuables, so I want to check if this is the right way to use it.
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
Thank you. Let me check if there is any problem with other parts.